aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index e11cd0e033ef..f1a80da4e56a 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1334,6 +1334,8 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
1334 if (WARN_ON(!ifmgd->associated)) 1334 if (WARN_ON(!ifmgd->associated))
1335 return; 1335 return;
1336 1336
1337 ieee80211_stop_poll(sdata);
1338
1337 memcpy(bssid, ifmgd->associated->bssid, ETH_ALEN); 1339 memcpy(bssid, ifmgd->associated->bssid, ETH_ALEN);
1338 1340
1339 ifmgd->associated = NULL; 1341 ifmgd->associated = NULL;
@@ -2588,8 +2590,6 @@ static void ieee80211_sta_connection_lost(struct ieee80211_sub_if_data *sdata,
2588 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; 2590 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
2589 u8 frame_buf[DEAUTH_DISASSOC_LEN]; 2591 u8 frame_buf[DEAUTH_DISASSOC_LEN];
2590 2592
2591 ieee80211_stop_poll(sdata);
2592
2593 ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DEAUTH, reason, 2593 ieee80211_set_disassoc(sdata, IEEE80211_STYPE_DEAUTH, reason,
2594 false, frame_buf); 2594 false, frame_buf);
2595 mutex_unlock(&ifmgd->mtx); 2595 mutex_unlock(&ifmgd->mtx);
@@ -3080,7 +3080,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
3080 } 3080 }
3081 3081
3082 local->oper_channel = cbss->channel; 3082 local->oper_channel = cbss->channel;
3083 ieee80211_hw_config(local, 0); 3083 ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_CHANNEL);
3084 3084
3085 if (sta) { 3085 if (sta) {
3086 u32 rates = 0, basic_rates = 0; 3086 u32 rates = 0, basic_rates = 0;