summaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorArik Nemtsov2011-06-27 22:58:45 +0200
committerJohn W. Linville2011-06-29 21:11:00 +0200
commit39df600aa6ac027b53c4ce3089cba57467a960df (patch)
tree3f439b592816832d7d3e3b39bf30a9fe8ff9b1d2 /net/mac80211/cfg.c
parentrtlwifi: use PCI_VENDOR_ID_* (diff)
downloadkernel-qcow2-linux-39df600aa6ac027b53c4ce3089cba57467a960df.tar.gz
kernel-qcow2-linux-39df600aa6ac027b53c4ce3089cba57467a960df.tar.xz
kernel-qcow2-linux-39df600aa6ac027b53c4ce3089cba57467a960df.zip
mac80211: propagate information about STA WME support down
Add a memeber to the ieee80211_sta structure to indicate whether the STA supports WME. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 6e56c6ee7ccd..9fe22cc393c8 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -674,8 +674,11 @@ static void sta_apply_parameters(struct ieee80211_local *local,
if (mask & BIT(NL80211_STA_FLAG_WME)) {
sta->flags &= ~WLAN_STA_WME;
- if (set & BIT(NL80211_STA_FLAG_WME))
+ sta->sta.wme = false;
+ if (set & BIT(NL80211_STA_FLAG_WME)) {
sta->flags |= WLAN_STA_WME;
+ sta->sta.wme = true;
+ }
}
if (mask & BIT(NL80211_STA_FLAG_MFP)) {