forked from Minki/linux
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>
This commit is contained in:
parent
e83e6541ce
commit
19c3b8303d
@ -3357,10 +3357,13 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* prepare assoc data */
|
/* prepare assoc data */
|
||||||
|
|
||||||
ifmgd->flags &= ~IEEE80211_STA_DISABLE_11N;
|
/*
|
||||||
ifmgd->flags &= ~IEEE80211_STA_NULLFUNC_ACKED;
|
* keep only the 40 MHz disable bit set as it might have
|
||||||
ifmgd->flags &= ~IEEE80211_STA_DISABLE_VHT;
|
* been set during authentication already, all other bits
|
||||||
|
* should be reset for a new connection
|
||||||
|
*/
|
||||||
|
ifmgd->flags &= IEEE80211_STA_DISABLE_40MHZ;
|
||||||
|
|
||||||
ifmgd->beacon_crc_valid = false;
|
ifmgd->beacon_crc_valid = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user