summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/txrx.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2013-11-14 10:34:18 +0100
committerKalle Valo <kvalo@qca.qualcomm.com>2013-11-15 11:04:53 +0200
commit5d04e4120a6ef2eac3a3a80bda6a16bb90f2da2c (patch)
tree9ed1e7873716842ea3a1ec4a946cd34127e1ca15 /drivers/net/wireless/ath/ath10k/txrx.c
parent71098615730f01cd5e70c7777b691572ee2bafb0 (diff)
ath10k: clear tx status before submitting to mac80211
Garbage was reported in ieee80211_tx_info. This led to a WARN_ON in cfg80211_calculate_bitrate(). This also fixes some random tx bitrate values reported through `iw` command. Reported-By: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/txrx.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/txrx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c
index df279a31e189..d476b2cc9d78 100644
--- a/drivers/net/wireless/ath/ath10k/txrx.c
+++ b/drivers/net/wireless/ath/ath10k/txrx.c
@@ -75,6 +75,7 @@ void ath10k_txrx_tx_unref(struct ath10k_htt *htt,
ath10k_report_offchan_tx(htt->ar, msdu);
info = IEEE80211_SKB_CB(msdu);
+ memset(info, 0, sizeof(*info));
if (tx_done->discard) {
ieee80211_free_txskb(htt->ar->hw, msdu);