diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-10-14 19:20:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-10-14 19:20:05 +0000 |
commit | 01e1878a8a67107d9ba15257d21c163dae6fb056 (patch) | |
tree | 1bce192d3c4a21db0dd90ea30302d869e52d3eea /package/kernel/mac80211/patches | |
parent | 6a30d14811ec1d911f45b3e924fb6d0a1bdb0196 (diff) | |
download | master-187ad058-01e1878a8a67107d9ba15257d21c163dae6fb056.tar.gz master-187ad058-01e1878a8a67107d9ba15257d21c163dae6fb056.tar.bz2 master-187ad058-01e1878a8a67107d9ba15257d21c163dae6fb056.zip |
ath5k: fix tx status processing errors (causing packet loss and throughput issues)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38396 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches')
-rw-r--r-- | package/kernel/mac80211/patches/300-pending_work.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/300-pending_work.patch b/package/kernel/mac80211/patches/300-pending_work.patch index 42b6809305..91781f92fd 100644 --- a/package/kernel/mac80211/patches/300-pending_work.patch +++ b/package/kernel/mac80211/patches/300-pending_work.patch @@ -9170,3 +9170,24 @@ (ah->curchan->channel < caldata->channel) && (ah->curchan->channel >= caldata->channel - 20)) return; +--- a/drivers/net/wireless/ath/ath5k/base.c ++++ b/drivers/net/wireless/ath/ath5k/base.c +@@ -1628,15 +1628,15 @@ ath5k_tx_frame_completed(struct ath5k_hw + ah->stats.tx_bytes_count += skb->len; + info = IEEE80211_SKB_CB(skb); + ++ size = min_t(int, sizeof(info->status.rates), sizeof(bf->rates)); ++ memcpy(info->status.rates, bf->rates, size); ++ + tries[0] = info->status.rates[0].count; + tries[1] = info->status.rates[1].count; + tries[2] = info->status.rates[2].count; + + ieee80211_tx_info_clear_status(info); + +- size = min_t(int, sizeof(info->status.rates), sizeof(bf->rates)); +- memcpy(info->status.rates, bf->rates, size); +- + for (i = 0; i < ts->ts_final_idx; i++) { + struct ieee80211_tx_rate *r = + &info->status.rates[i]; |