diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-11-14 04:34:18 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-11-15 04:04:53 -0500 |
commit | 5d04e4120a6ef2eac3a3a80bda6a16bb90f2da2c (patch) | |
tree | 9ed1e7873716842ea3a1ec4a946cd34127e1ca15 /drivers | |
parent | 71098615730f01cd5e70c7777b691572ee2bafb0 (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')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/txrx.c | 1 |
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, | |||
75 | ath10k_report_offchan_tx(htt->ar, msdu); | 75 | ath10k_report_offchan_tx(htt->ar, msdu); |
76 | 76 | ||
77 | info = IEEE80211_SKB_CB(msdu); | 77 | info = IEEE80211_SKB_CB(msdu); |
78 | memset(info, 0, sizeof(*info)); | ||
78 | 79 | ||
79 | if (tx_done->discard) { | 80 | if (tx_done->discard) { |
80 | ieee80211_free_txskb(htt->ar->hw, msdu); | 81 | ieee80211_free_txskb(htt->ar->hw, msdu); |