ath10k: make ath10k report discarded packets to mac80211
authorIgnacio Nunez Hernanz <nacho.nunez@aoifes.com>
Mon, 26 Feb 2018 10:16:46 +0000 (12:16 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 26 Feb 2018 14:44:26 +0000 (16:44 +0200)
commitabb374fe84606ba48cf6c31c14460dfbfb4959e0
tree7478e49ccfbb0a10ee0d750a8af83a892888c3f0
parentf74290fdb363665538743d14c4f00aeacdb68d87
ath10k: make ath10k report discarded packets to mac80211

Whenever ath10k firmware discards a packet (HTT_TX_COMPL_STATE_DISCARD
flag), the skb is freed and mac80211 does not get feedback through
ieee80211_tx_status().

Instead, make sure that the IEEE80211_TX_STAT_ACK flag is disabled and
let the packet go through, like ath9k does.

Signed-off-by: Ignacio Nunez Hernanz <nacho.nunez@aoifes.com>
[kvalo@codeaurora.org: rebase patch manually]
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/txrx.c