lkml.org 
[lkml]   [2012]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[ 18/82] mac80211: fix ADDBA declined after suspend with wowlan
    3.4-stable review patch.  If anyone has any objections, please let me know.

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

    From: Eyal Shapira <eyal@wizery.com>

    commit 7b21aea04d084916ac4e0e8852dcc9cd60ec0d1d upstream.

    WLAN_STA_BLOCK_BA is set while suspending but doesn't get cleared
    when resuming in case of wowlan. This causes further ADDBA requests
    received to be rejected. Fix it by clearing it in the wowlan path
    as well.

    Signed-off-by: Eyal Shapira <eyal@wizery.com>
    Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    net/mac80211/util.c | 12 ++++++------
    1 file changed, 6 insertions(+), 6 deletions(-)

    --- a/net/mac80211/util.c
    +++ b/net/mac80211/util.c
    @@ -1321,6 +1321,12 @@ int ieee80211_reconfig(struct ieee80211_
    }
    }

    + /* add back keys */
    + list_for_each_entry(sdata, &local->interfaces, list)
    + if (ieee80211_sdata_running(sdata))
    + ieee80211_enable_keys(sdata);
    +
    + wake_up:
    /*
    * Clear the WLAN_STA_BLOCK_BA flag so new aggregation
    * sessions can be established after a resume.
    @@ -1342,12 +1348,6 @@ int ieee80211_reconfig(struct ieee80211_
    mutex_unlock(&local->sta_mtx);
    }

    - /* add back keys */
    - list_for_each_entry(sdata, &local->interfaces, list)
    - if (ieee80211_sdata_running(sdata))
    - ieee80211_enable_keys(sdata);
    -
    - wake_up:
    ieee80211_wake_queues_by_reason(hw,
    IEEE80211_QUEUE_STOP_REASON_SUSPEND);




    \
     
     \ /
      Last update: 2012-06-07 07:42    [W:4.514 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site