summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/mac.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2010-04-15 17:38:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:25 -0400
commit3f3a1c8031fd87a7d0195d0a8e8101d04c283fcc (patch)
tree5846cd9276548dd2a6bf92e21d17b71fc1475533 /drivers/net/wireless/ath/ath9k/mac.c
parent162c3be3780dcb241ce0c9d49626c6cfb90f9f61 (diff)
downloadtalos-obmc-linux-3f3a1c8031fd87a7d0195d0a8e8101d04c283fcc.tar.gz
talos-obmc-linux-3f3a1c8031fd87a7d0195d0a8e8101d04c283fcc.zip
ath9k_hw: Move code which populates ds_data to ath9k_hw
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/mac.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index ae9d54c9c79a..0c9c378616c6 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
@@ -220,10 +220,13 @@ EXPORT_SYMBOL(ath9k_hw_stoptxdma);
void ath9k_hw_filltxdesc(struct ath_hw *ah, struct ath_desc *ds,
u32 segLen, bool firstSeg,
- bool lastSeg, const struct ath_desc *ds0)
+ bool lastSeg, const struct ath_desc *ds0,
+ dma_addr_t buf_addr)
{
struct ar5416_desc *ads = AR5416DESC(ds);
+ ads->ds_data = buf_addr;
+
if (firstSeg) {
ads->ds_ctl1 |= segLen | (lastSeg ? 0 : AR_TxMore);
} else if (lastSeg) {
OpenPOWER on IntegriCloud