diff options
author | Eliad Peller <eliad@wizery.com> | 2012-07-27 05:33:22 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-31 10:11:04 -0400 |
commit | ab09587740fddf6b4116be7b6716ab47f34d2634 (patch) | |
tree | 18c304410c82725356a3a8d6076b2f9af173b21a /net/mac80211/ieee80211_i.h | |
parent | 2b2b64380785bdcaaa9a123e7e5829acc749c4ca (diff) |
mac80211: add PS flag to bss_conf
Currently, ps mode is indicated per device (rather than
per interface), which doesn't make a lot of sense.
Moreover, there are subtle bugs caused by the inability
to indicate ps change along with other changes
(e.g. when the AP deauth us, we'd like to indicate
CHANGED_PS | CHANGED_ASSOC, as changing PS before
notifying about disassociation will result in null-packets
being sent (if IEEE80211_HW_SUPPORTS_DYNAMIC_PS) while
the sta is already disconnected.)
Keep the current per-device notifications, and add
parallel per-vif notifications.
In order to keep it simple, the per-device ps and
the per-vif ps are orthogonal - the per-vif ps
configuration is determined only by the user
configuration (enable/disable) and the connection
state, and is not affected by other vifs state and
(temporary) dynamic_ps/offchannel operations
(unlike per-device ps).
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 3e2f03b1b50e..8e65ad9c870a 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -1203,6 +1203,7 @@ int ieee80211_mgd_disassoc(struct ieee80211_sub_if_data *sdata, | |||
1203 | void ieee80211_send_pspoll(struct ieee80211_local *local, | 1203 | void ieee80211_send_pspoll(struct ieee80211_local *local, |
1204 | struct ieee80211_sub_if_data *sdata); | 1204 | struct ieee80211_sub_if_data *sdata); |
1205 | void ieee80211_recalc_ps(struct ieee80211_local *local, s32 latency); | 1205 | void ieee80211_recalc_ps(struct ieee80211_local *local, s32 latency); |
1206 | void ieee80211_recalc_ps_vif(struct ieee80211_sub_if_data *sdata); | ||
1206 | int ieee80211_max_network_latency(struct notifier_block *nb, | 1207 | int ieee80211_max_network_latency(struct notifier_block *nb, |
1207 | unsigned long data, void *dummy); | 1208 | unsigned long data, void *dummy); |
1208 | int ieee80211_set_arp_filter(struct ieee80211_sub_if_data *sdata); | 1209 | int ieee80211_set_arp_filter(struct ieee80211_sub_if_data *sdata); |