diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-11-14 10:34:18 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-11-15 10:04:53 +0100 |
commit | 5d04e4120a6ef2eac3a3a80bda6a16bb90f2da2c (patch) | |
tree | 9ed1e7873716842ea3a1ec4a946cd34127e1ca15 /drivers/net/wireless/ath/ath10k/txrx.c | |
parent | ath10k: expand the wmi mgmt queue limit to 128 (diff) | |
download | linux-5d04e4120a6ef2eac3a3a80bda6a16bb90f2da2c.tar.xz linux-5d04e4120a6ef2eac3a3a80bda6a16bb90f2da2c.zip |
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.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, 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); |