diff options
author | Tamizh chelvam <c_traja@qti.qualcomm.com> | 2015-10-07 01:10:04 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-10-13 04:29:11 -0400 |
commit | 93f0490e5deb9445737cabf0e436f3288a4042b7 (patch) | |
tree | ed4fd5a1730b5a4d6857cc2f6be0dc70e2f5fb33 /net/mac80211/mlme.c | |
parent | 985f2c87a7109a42cac93f56ea595353d53a1746 (diff) |
Revert "mac80211: remove exposing 'mfp' to drivers"
This reverts commit 5c48f1201744233d4f235c7dd916d5196ed20716.
Some device drivers (ath10k) offload part of aggregation including AddBA/DelBA
negotiations to firmware. In such scenario, the PMF configuration of
the station needs to be provided to driver to enable encryption of
AddBA/DelBA action frames.
Signed-off-by: Tamizh chelvam <c_traja@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 56ef9a8e151c..9c450ffdabe8 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -3044,8 +3044,12 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata, | |||
3044 | 3044 | ||
3045 | rate_control_rate_init(sta); | 3045 | rate_control_rate_init(sta); |
3046 | 3046 | ||
3047 | if (ifmgd->flags & IEEE80211_STA_MFP_ENABLED) | 3047 | if (ifmgd->flags & IEEE80211_STA_MFP_ENABLED) { |
3048 | set_sta_flag(sta, WLAN_STA_MFP); | 3048 | set_sta_flag(sta, WLAN_STA_MFP); |
3049 | sta->sta.mfp = true; | ||
3050 | } else { | ||
3051 | sta->sta.mfp = false; | ||
3052 | } | ||
3049 | 3053 | ||
3050 | sta->sta.wme = elems.wmm_param && local->hw.queues >= IEEE80211_NUM_ACS; | 3054 | sta->sta.wme = elems.wmm_param && local->hw.queues >= IEEE80211_NUM_ACS; |
3051 | 3055 | ||