aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-10-29 15:08:01 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-11-06 07:25:06 -0500
commit488dd7b53de9ea41edf7a475be63da51bdd05093 (patch)
treeb82d9759fe904962dab69d4b641c512d3202a8f6 /include/net
parent0ee453552f0b1ea87f6f50a077b0ed9d9ac7d6ac (diff)
mac80211: pass P2P powersave parameters to driver
While connected to a GO, parse the P2P NoA attribute and pass the CT Window and opportunistic powersave parameters to the driver. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/mac80211.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index dfa589b721b6..23803addca3c 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -208,6 +208,8 @@ struct ieee80211_chanctx_conf {
208 * @BSS_CHANGED_AP_PROBE_RESP: Probe Response changed for this BSS (AP mode) 208 * @BSS_CHANGED_AP_PROBE_RESP: Probe Response changed for this BSS (AP mode)
209 * @BSS_CHANGED_PS: PS changed for this BSS (STA mode) 209 * @BSS_CHANGED_PS: PS changed for this BSS (STA mode)
210 * @BSS_CHANGED_TXPOWER: TX power setting changed for this interface 210 * @BSS_CHANGED_TXPOWER: TX power setting changed for this interface
211 * @BSS_CHANGED_P2P_PS: P2P powersave settings (CTWindow, opportunistic PS)
212 * changed (currently only in P2P client mode, GO mode will be later)
211 */ 213 */
212enum ieee80211_bss_change { 214enum ieee80211_bss_change {
213 BSS_CHANGED_ASSOC = 1<<0, 215 BSS_CHANGED_ASSOC = 1<<0,
@@ -229,6 +231,7 @@ enum ieee80211_bss_change {
229 BSS_CHANGED_AP_PROBE_RESP = 1<<16, 231 BSS_CHANGED_AP_PROBE_RESP = 1<<16,
230 BSS_CHANGED_PS = 1<<17, 232 BSS_CHANGED_PS = 1<<17,
231 BSS_CHANGED_TXPOWER = 1<<18, 233 BSS_CHANGED_TXPOWER = 1<<18,
234 BSS_CHANGED_P2P_PS = 1<<19,
232 235
233 /* when adding here, make sure to change ieee80211_reconfig */ 236 /* when adding here, make sure to change ieee80211_reconfig */
234}; 237};
@@ -312,6 +315,8 @@ enum ieee80211_rssi_event {
312 * @ssid_len: Length of SSID given in @ssid. 315 * @ssid_len: Length of SSID given in @ssid.
313 * @hidden_ssid: The SSID of the current vif is hidden. Only valid in AP-mode. 316 * @hidden_ssid: The SSID of the current vif is hidden. Only valid in AP-mode.
314 * @txpower: TX power in dBm 317 * @txpower: TX power in dBm
318 * @p2p_ctwindow: P2P CTWindow, only for P2P client interfaces
319 * @p2p_oppps: P2P opportunistic PS is enabled
315 */ 320 */
316struct ieee80211_bss_conf { 321struct ieee80211_bss_conf {
317 const u8 *bssid; 322 const u8 *bssid;
@@ -345,6 +350,8 @@ struct ieee80211_bss_conf {
345 size_t ssid_len; 350 size_t ssid_len;
346 bool hidden_ssid; 351 bool hidden_ssid;
347 int txpower; 352 int txpower;
353 u8 p2p_ctwindow;
354 bool p2p_oppps;
348}; 355};
349 356
350/** 357/**