mac80211: fix race with suspend and dynamic_ps_disable_work
[firefly-linux-kernel-4.4.55.git] / net / mac80211 / tx.c
index eaa4118de988929df0a0458e0a67a65f8998e302..d39819745abf3c81cfacc380bf7a44a03972f749 100644 (file)
@@ -1401,6 +1401,7 @@ static void ieee80211_xmit(struct ieee80211_sub_if_data *sdata,
 
        if ((local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK) &&
            local->hw.conf.dynamic_ps_timeout > 0 &&
+           !local->quiescing &&
            !(local->scanning) && local->ps_sdata) {
                if (local->hw.conf.flags & IEEE80211_CONF_PS) {
                        ieee80211_stop_queues_by_reason(&local->hw,