diff options
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c index 46b6e8c900e..d2a243a7182 100644 --- a/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c | |||
@@ -2873,11 +2873,16 @@ void ieee80211_disassociate(struct ieee80211_device *ieee) | |||
2873 | if(IS_DOT11D_ENABLE(ieee)) | 2873 | if(IS_DOT11D_ENABLE(ieee)) |
2874 | Dot11d_Reset(ieee); | 2874 | Dot11d_Reset(ieee); |
2875 | #endif | 2875 | #endif |
2876 | ieee->state = IEEE80211_NOLINK; | ||
2877 | ieee->is_set_key = false; | 2876 | ieee->is_set_key = false; |
2878 | ieee->link_change(ieee->dev); | 2877 | ieee->link_change(ieee->dev); |
2879 | //HTSetConnectBwMode(ieee, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); | 2878 | //HTSetConnectBwMode(ieee, HT_CHANNEL_WIDTH_20, HT_EXTCHNL_OFFSET_NO_EXT); |
2880 | notify_wx_assoc_event(ieee); | 2879 | if (ieee->state == IEEE80211_LINKED || |
2880 | ieee->state == IEEE80211_ASSOCIATING) { | ||
2881 | ieee->state = IEEE80211_NOLINK; | ||
2882 | notify_wx_assoc_event(ieee); | ||
2883 | } | ||
2884 | |||
2885 | ieee->state = IEEE80211_NOLINK; | ||
2881 | 2886 | ||
2882 | } | 2887 | } |
2883 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)) | 2888 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)) |