aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
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,
674 674
675 if (mask & BIT(NL80211_STA_FLAG_WME)) { 675 if (mask & BIT(NL80211_STA_FLAG_WME)) {
676 sta->flags &= ~WLAN_STA_WME; 676 sta->flags &= ~WLAN_STA_WME;
677 if (set & BIT(NL80211_STA_FLAG_WME)) 677 sta->sta.wme = false;
678 if (set & BIT(NL80211_STA_FLAG_WME)) {
678 sta->flags |= WLAN_STA_WME; 679 sta->flags |= WLAN_STA_WME;
680 sta->sta.wme = true;
681 }
679 } 682 }
680 683
681 if (mask & BIT(NL80211_STA_FLAG_MFP)) { 684 if (mask & BIT(NL80211_STA_FLAG_MFP)) {