lkml.org 
[lkml]   [2012]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 118/262] mac80211: clear bssid on auth/assoc failure
    Date
    From: Greg KH <gregkh@linuxfoundation.org>

    3.5-stable review patch. If anyone has any objections, please let me know.

    ------------------

    From: Eliad Peller <eliad@wizery.com>

    commit 3d2abdfdf14f4d6decc2023708211e19b096f4ca upstream.

    ifmgd->bssid wasn't cleared properly in some
    auth/assoc failure cases, causing mac80211 and
    the low-level driver to go out of sync.

    Clear ifmgd->bssid on failure, and notify the driver.

    Signed-off-by: Eliad Peller <eliad@wizery.com>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    net/mac80211/mlme.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/net/mac80211/mlme.c
    +++ b/net/mac80211/mlme.c
    @@ -3270,6 +3270,8 @@ int ieee80211_mgd_auth(struct ieee80211_
    goto out_unlock;

    err_clear:
    + memset(ifmgd->bssid, 0, ETH_ALEN);
    + ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID);
    ifmgd->auth_data = NULL;
    err_free:
    kfree(auth_data);
    @@ -3449,6 +3451,8 @@ int ieee80211_mgd_assoc(struct ieee80211
    err = 0;
    goto out;
    err_clear:
    + memset(ifmgd->bssid, 0, ETH_ALEN);
    + ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BSSID);
    ifmgd->assoc_data = NULL;
    err_free:
    kfree(assoc_data);



    \
     
     \ /
      Last update: 2012-09-28 22:02    [W:2.141 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site