Skip to content

Commit

Permalink
mac80211: fix ADDBA declined after suspend with wowlan
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eyal Shapira committed May 30, 2012
1 parent df0d736 commit 582af6f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions net/mac80211/util.c
Expand Up @@ -1293,6 +1293,12 @@ int ieee80211_reconfig(struct ieee80211_local *local)
}
}

/* 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.
Expand All @@ -1314,12 +1320,6 @@ int ieee80211_reconfig(struct ieee80211_local *local)
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);

Expand Down Expand Up @@ -1735,4 +1735,4 @@ bool ieee80211_suspending(struct ieee80211_hw *hw)

return local->quiescing;
}
EXPORT_SYMBOL(ieee80211_suspending);
EXPORT_SYMBOL(ieee80211_suspending);

0 comments on commit 582af6f

Please sign in to comment.