Do not emit a warning in that case, since there is nothing else in mac80211
that would effectively prevent more work from being queued.
BUG=chrome-os-partner:10785
TEST=per crosbug.com/p/10785#c54
Change-Id: Ic14aee400184772cbe19af65f01de11f683559fe
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: mukesh agrawal <quiche@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/32602
*/
static bool ieee80211_can_queue_work(struct ieee80211_local *local)
{
+ if (local->quiescing)
+ return false;
+
if (WARN(local->suspended && !local->resuming,
"queueing ieee80211 work while going to suspend\n"))
return false;