lkml.org 
[lkml]   [2010]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [24/223] mac80211: Fix ibss station got expired immediately
    Date
    2.6.35-longterm review patch.  If anyone has any objections, please let me know.

    ------------------
    From: Rajkumar Manoharan <rmanoharan@atheros.com>

    commit c8716d9dc13c7f6ee92f2bfc6cc3b723b417bff8 upstream.

    Station addition in ieee80211_ibss_rx_queued_mgmt is not updating
    sta->last_rx which is causing station expiry in ieee80211_ibss_work
    path. So sta addition and deletion happens repeatedly.

    Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Andi Kleen <ak@linux.intel.com>

    ---
    net/mac80211/ibss.c | 1 +
    1 file changed, 1 insertion(+)

    Index: linux/net/mac80211/ibss.c
    ===================================================================
    --- linux.orig/net/mac80211/ibss.c
    +++ linux/net/mac80211/ibss.c
    @@ -427,6 +427,7 @@ struct sta_info *ieee80211_ibss_add_sta(
    if (!sta)
    return NULL;

    + sta->last_rx = jiffies;
    set_sta_flags(sta, WLAN_STA_AUTHORIZED);

    /* make sure mandatory rates are always added */

    \
     
     \ /
      Last update: 2010-12-13 00:49    [W:4.235 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site