Commit 2ef6e4440926668cfa9eac4b79e63528ebcbe0c1
Committed by
John W. Linville
1 parent
d419b9f0fa
Exists in
master
and in
7 other branches
mac80211: keep auth state when assoc fails
When association fails, we should stay authenticated, which in mac80211 is represented by the existence of the mlme work struct, so we cannot free that, instead we need to just set it to idle. (Brought to you by the hacking session at Kernel Summit 2009 in Tokyo, Japan. -- JWL) Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
net/mac80211/mlme.c
... | ... | @@ -1457,8 +1457,7 @@ |
1457 | 1457 | if (status_code != WLAN_STATUS_SUCCESS) { |
1458 | 1458 | printk(KERN_DEBUG "%s: AP denied association (code=%d)\n", |
1459 | 1459 | sdata->dev->name, status_code); |
1460 | - list_del(&wk->list); | |
1461 | - kfree(wk); | |
1460 | + wk->state = IEEE80211_MGD_STATE_IDLE; | |
1462 | 1461 | return RX_MGMT_CFG80211_ASSOC; |
1463 | 1462 | } |
1464 | 1463 |