Matt Chen a9e9200d86 mac80211: flush delayed work when entering suspend
The issue was found when entering suspend and resume.
It triggers a warning in:
mac80211/key.c: ieee80211_enable_keys()
...
WARN_ON_ONCE(sdata->crypto_tx_tailroom_needed_cnt ||
             sdata->crypto_tx_tailroom_pending_dec);
...

It points out sdata->crypto_tx_tailroom_pending_dec isn't cleaned up successfully
in a delayed_work during suspend. Add a flush_delayed_work to fix it.

Cc: stable@vger.kernel.org
Signed-off-by: Matt Chen <matt.chen@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-27 14:00:26 +01:00
..
2017-02-09 15:17:30 +01:00
2014-11-04 13:18:21 +01:00
2014-04-09 14:49:43 +02:00
2017-02-10 14:31:51 -05:00
2017-02-09 15:18:24 +01:00
2015-05-11 19:16:04 +02:00
2014-04-09 14:49:43 +02:00
2016-12-13 16:05:09 +01:00
2017-02-09 15:17:30 +01:00
2012-03-13 14:54:16 -04:00