CHROMIUM: mac80211: prevent work queueing while quiescing on suspend

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=compile

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
(cherry picked from commit ddad6add241e62e3bc143bd2d259f32205401e80)
Reviewed-on: https://gerrit.chromium.org/gerrit/33136
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 32f7a3b..7a9e421 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -534,6 +534,9 @@
  */
 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;