]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] mac80211: fail back to use associate from reassociate
authorZhu Yi <yi.zhu@intel.com>
Wed, 9 May 2007 05:41:52 +0000 (13:41 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 May 2007 14:34:05 +0000 (10:34 -0400)
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>
net/mac80211/ieee80211_sta.c

index 3e07e9d6fa426f8dd7184c9ee4244b312ff52f7b..dbac8583f394b72d4a16058b6ce12c10558709a4 100644 (file)
@@ -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;
        }