aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-08 06:31:59 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:00:00 -0500
commit5394af4d86ae51b369ff243c3f75b6f9a74e164b (patch)
tree752ff0a1b7feb28e4fce87957047433d5f39a6c2 /net/mac80211/cfg.c
parent039498c6ec67bd718ac1c8e7f6b4e2cfe2146773 (diff)
mac80211: 802.11w - STA flag for MFP
Add flags for setting STA entries and struct ieee80211_if_sta to indicate whether management frame protection (MFP) is used. Signed-off-by: Jouni Malinen <j@w1.fi> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 9d4e4d846ec1..309d9189aa49 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -630,6 +630,10 @@ static void sta_apply_parameters(struct ieee80211_local *local,
630 sta->flags &= ~WLAN_STA_WME; 630 sta->flags &= ~WLAN_STA_WME;
631 if (params->station_flags & STATION_FLAG_WME) 631 if (params->station_flags & STATION_FLAG_WME)
632 sta->flags |= WLAN_STA_WME; 632 sta->flags |= WLAN_STA_WME;
633
634 sta->flags &= ~WLAN_STA_MFP;
635 if (params->station_flags & STATION_FLAG_MFP)
636 sta->flags |= WLAN_STA_MFP;
633 spin_unlock_bh(&sta->lock); 637 spin_unlock_bh(&sta->lock);
634 } 638 }
635 639