staging: wfx: fix status of dropped frames
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Fri, 15 May 2020 08:33:13 +0000 (10:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 14:00:52 +0000 (16:00 +0200)
When wfx_flush() is called, the status of pending frames are reported to
mac80211 with random status. mac80211 probably won't interpret this
status in this case, but it is cleaner to return a correctly initialized
status.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200515083325.378539-8-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/data_tx.c

index a125902..5d029b0 100644 (file)
@@ -613,6 +613,7 @@ void wfx_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
                wfx_pending_drop(wdev, &dropped);
        while ((skb = skb_dequeue(&dropped)) != NULL) {
                tx_priv = wfx_skb_tx_priv(skb);
+               ieee80211_tx_info_clear_status(IEEE80211_SKB_CB(skb));
                wfx_skb_dtor(wdev, skb, tx_priv->has_sta);
        }
 }