summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/dynack.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-09-30 11:24:23 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-09-30 13:17:48 -0400
commit315dd1149b6048cec805667f511726bbe8e5c975 (patch)
tree6bc8a44734b05bda1b501d820af8d3a675a9912b /drivers/net/wireless/ath/ath9k/dynack.c
parent4d9f634b02e4240f86719f30e4c9e62f6a4c4d36 (diff)
ath9k: fix getting tx duration for dynack
On AR9003, tx control and tx status are in separate descriptor rings. Tx duration is extracted from the tx control descriptor data, which ar9003_hw_proc_txdesc cannot access. Fix getting the duration by adding a separate callback for it. Acked-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/dynack.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/dynack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/dynack.c b/drivers/net/wireless/ath/ath9k/dynack.c
index 6ae8e0bc9e1f..22b3cc4c27cd 100644
--- a/drivers/net/wireless/ath/ath9k/dynack.c
+++ b/drivers/net/wireless/ath/ath9k/dynack.c
@@ -202,7 +202,7 @@ void ath_dynack_sample_tx_ts(struct ath_hw *ah, struct sk_buff *skb,
ridx = ts->ts_rateindex;
da->st_rbf.ts[da->st_rbf.t_rb].tstamp = ts->ts_tstamp;
- da->st_rbf.ts[da->st_rbf.t_rb].dur = ts->duration[ts->ts_rateindex];
+ da->st_rbf.ts[da->st_rbf.t_rb].dur = ts->duration;
ether_addr_copy(da->st_rbf.addr[da->st_rbf.t_rb].h_dest, hdr->addr1);
ether_addr_copy(da->st_rbf.addr[da->st_rbf.t_rb].h_src, hdr->addr2);