mac80211: don't tear down aggregation on suspend in case of wowlan->any
authorEliad Peller <eliadx.peller@intel.com>
Mon, 21 Sep 2015 12:50:26 +0000 (15:50 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 29 Sep 2015 13:56:47 +0000 (15:56 +0200)
commit27392719541c89595a5c03d49b599ddfe009e6b8
tree96e2e113390346bb75c02cdbb779f4b24d60a886
parent9f0e13546ef5773b7059b531a667ec47a5f897ee
mac80211: don't tear down aggregation on suspend in case of wowlan->any

In case of "any" wowlan trigger, there is no reason to tear down
aggregations, as we want the device to continue working normally.

Similarly, there's no reason to tear down aggregations on resume,
as they should have been torn down on suspend if needed.
However, since the reconfiguration flow is shared with HW restart,
tear down aggregations on reconfiguration when we are not resuming.

To keep things working after non-wowlan suspend, keep clearing the
WLAN_STA_BLOCK_BA flag.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/pm.c
net/mac80211/util.c