diff options
author | Zhu Yi <yi.zhu@intel.com> | 2007-05-09 13:41:52 +0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-05-29 10:34:05 -0400 |
commit | f11b0f0eb2ea7562db63a01c60d398ec52d5ea46 (patch) | |
tree | a78c86b88e243f7f2865bc1bbf5ea1632d6ea4b0 /net/mac80211/ieee80211_sta.c | |
parent | c420bc9f09a0926b708c3edb27eacba434a4f4ba (diff) | |
download | blackbird-op-linux-f11b0f0eb2ea7562db63a01c60d398ec52d5ea46.tar.gz blackbird-op-linux-f11b0f0eb2ea7562db63a01c60d398ec52d5ea46.zip |
[PATCH] mac80211: fail back to use associate from reassociate
Some APs have strict checking between associate and reassociate. In
a case when an AP is restarted during a connection, it denies the
mac80211 reassoc request since this is a new association for the AP.
To fix this problem, we need to check the status code against
WLAN_STATUS_REASSOC_NO_ASSOC and clear ifsta->prev_bssid_set in
handling the association failure response.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index 3e07e9d6fa42..dbac8583f394 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c @@ -1155,6 +1155,8 @@ static void ieee80211_rx_mgmt_assoc_resp(struct net_device *dev, if (status_code != WLAN_STATUS_SUCCESS) { printk(KERN_DEBUG "%s: AP denied association (code=%d)\n", dev->name, status_code); + if (status_code == WLAN_STATUS_REASSOC_NO_ASSOC) + ifsta->prev_bssid_set = 0; return; } |