diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-04-01 10:23:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:39 -0400 |
commit | 66174bbea0b9c5bd4b7d060fed26bf5ec912c422 (patch) | |
tree | 25994c4dcbdaee2ae36db0df8a9cfa9f3fbc445b /net | |
parent | 5ef2d41afb7fce2315d12a8aaebe0c9f1b50755b (diff) |
mac80211: Report rejected association to user space SME
When using nl80211 association, we need to send association response
with a failure code to user space SME instead of just internally
trying to send out the same (re)association request again couple of
times. This fixes problems in association process getting stuck on a
failure when user space is not notified in any way that something
actually failed.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mlme.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 4ce5b9c22324..90267afa8e69 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1374,6 +1374,11 @@ static void ieee80211_rx_mgmt_assoc_resp(struct ieee80211_sub_if_data *sdata, | |||
1374 | * association next time. This works around some broken APs | 1374 | * association next time. This works around some broken APs |
1375 | * which do not correctly reject reassociation requests. */ | 1375 | * which do not correctly reject reassociation requests. */ |
1376 | ifmgd->flags &= ~IEEE80211_STA_PREV_BSSID_SET; | 1376 | ifmgd->flags &= ~IEEE80211_STA_PREV_BSSID_SET; |
1377 | cfg80211_send_rx_assoc(sdata->dev, (u8 *) mgmt, len); | ||
1378 | if (ifmgd->flags & IEEE80211_STA_EXT_SME) { | ||
1379 | /* Wait for SME to decide what to do next */ | ||
1380 | ifmgd->state = IEEE80211_STA_MLME_DISABLED; | ||
1381 | } | ||
1377 | return; | 1382 | return; |
1378 | } | 1383 | } |
1379 | 1384 | ||