[lkml]   [2010]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH 3/3] rtl8187se: Do not send NULL BSSID events when not associated
    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 <>
    .../rtl8187se/ieee80211/ieee80211_softmac.c | 6 ++++--
    1 files changed, 4 insertions(+), 2 deletions(-)

    diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
    index be2d17f..f875425 100644
    --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
    +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
    @@ -2321,9 +2321,11 @@ void ieee80211_disassociate(struct ieee80211_device *ieee)

    - ieee->state = IEEE80211_NOLINK;
    - 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)

     \ /
      Last update: 2010-04-10 00:35    [W:0.021 / U:0.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site