aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-08-01 14:13:36 -0400
committerJohannes Berg <johannes.berg@intel.com>2012-08-01 14:13:36 -0400
commit19c3b8303d4686aa373c669ee833609b3fb403cc (patch)
treef21c93a2e7a24981da3a09c42cad1eea9bb84158 /net
parente83e6541cee0a12bc445b0f4fad5214df5803087 (diff)
mac80211: reset station MLME flags upon new association
When associating anew, the old station MLME flags should be cleared. The only exception is the 40 MHz disable flag as it might have been set while the channel was set in a previous authentication attempt so it needs to be kept intact. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/mlme.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index c416a08d90f..9d60b499363 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3357,10 +3357,13 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
3357 } 3357 }
3358 3358
3359 /* prepare assoc data */ 3359 /* prepare assoc data */
3360 3360
3361 ifmgd->flags &= ~IEEE80211_STA_DISABLE_11N; 3361 /*
3362 ifmgd->flags &= ~IEEE80211_STA_NULLFUNC_ACKED; 3362 * keep only the 40 MHz disable bit set as it might have
3363 ifmgd->flags &= ~IEEE80211_STA_DISABLE_VHT; 3363 * been set during authentication already, all other bits
3364 * should be reset for a new connection
3365 */
3366 ifmgd->flags &= IEEE80211_STA_DISABLE_40MHZ;
3364 3367
3365 ifmgd->beacon_crc_valid = false; 3368 ifmgd->beacon_crc_valid = false;
3366 3369