]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/mac80211/offchannel.c
mac80211: Add flushes before going off-channel
[karo-tx-linux.git] / net / mac80211 / offchannel.c
index 4c3ee3e8285c139dc7b7348e322de77a6139ad8a..cc79b4a2e821c9232c41135da3f4397dbba67b8d 100644 (file)
@@ -114,8 +114,13 @@ void ieee80211_offchannel_stop_vifs(struct ieee80211_local *local)
         * STA interfaces.
         */
 
+       /*
+        * Stop queues and transmit all frames queued by the driver
+        * before sending nullfunc to enable powersave at the AP.
+        */
        ieee80211_stop_queues_by_reason(&local->hw,
                                        IEEE80211_QUEUE_STOP_REASON_OFFCHANNEL);
+       drv_flush(local, false);
 
        mutex_lock(&local->iflist_mtx);
        list_for_each_entry(sdata, &local->interfaces, list) {