|
@@ -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;
|
|
|
}
|
|
|
|
|
@@ -2995,7 +2997,7 @@ struct sta_info * ieee80211_ibss_add_sta(struct net_device *dev,
|
|
|
{
|
|
|
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
|
|
|
struct sta_info *sta;
|
|
|
- struct ieee80211_sub_if_data *sdata = NULL;
|
|
|
+ struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
|
|
|
|
|
|
/* TODO: Could consider removing the least recently used entry and
|
|
|
* allow new one to be added. */
|