Skip to content

Commit

Permalink
Staging: rtl8187se: Do not send NULL BSSID events when not associated
Browse files Browse the repository at this point in the history
If we're not associated, we should not send wireless events to let userspace
know that we just left an ESSID, simply because we havent yet joined it.
If we keep on doing that, wpa_supplicant could receive such events while
actually trying to join an ESSID, and thus decide to stop trying. This leads
to a lot of connection failures as this driver seems to be sending GIWAP
events quite a lot.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Samuel Ortiz authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 3eec314 commit 592010b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2322,9 +2322,11 @@ void ieee80211_disassociate(struct ieee80211_device *ieee)

if(IS_DOT11D_ENABLE(ieee))
Dot11d_Reset(ieee);
ieee->state = IEEE80211_NOLINK;

ieee->link_change(ieee->dev);
notify_wx_assoc_event(ieee);
if (ieee->state == IEEE80211_LINKED)
notify_wx_assoc_event(ieee);
ieee->state = IEEE80211_NOLINK;

}
void ieee80211_associate_retry_wq(struct work_struct *work)
Expand Down

0 comments on commit 592010b

Please sign in to comment.