aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/mac.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2010-04-15 17:38:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:21 -0400
commitcee1f625bfcabeed39138547be21d8995357f8e1 (patch)
tree6facde377b0df9ea0239c4ea5a207f628dd91cbb /drivers/net/wireless/ath/ath9k/mac.c
parentceb2644576bcb9fe7b79614512c1efe2bf3c307c (diff)
ath9k_hw: Add abstraction for rx enable
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.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index 4a2060e5a77..ae9d54c9c79 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
@@ -16,6 +16,17 @@
16 16
17#include "hw.h" 17#include "hw.h"
18 18
19static void ar9002_hw_rx_enable(struct ath_hw *ah)
20{
21 REG_WRITE(ah, AR_CR, AR_CR_RXE);
22}
23
24void ar9002_hw_attach_mac_ops(struct ath_hw *ah)
25{
26 struct ath_hw_ops *ops = ath9k_hw_ops(ah);
27
28 ops->rx_enable = ar9002_hw_rx_enable;
29}
19static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah, 30static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah,
20 struct ath9k_tx_queue_info *qi) 31 struct ath9k_tx_queue_info *qi)
21{ 32{
@@ -999,12 +1010,6 @@ void ath9k_hw_putrxbuf(struct ath_hw *ah, u32 rxdp)
999} 1010}
1000EXPORT_SYMBOL(ath9k_hw_putrxbuf); 1011EXPORT_SYMBOL(ath9k_hw_putrxbuf);
1001 1012
1002void ath9k_hw_rxena(struct ath_hw *ah)
1003{
1004 REG_WRITE(ah, AR_CR, AR_CR_RXE);
1005}
1006EXPORT_SYMBOL(ath9k_hw_rxena);
1007
1008void ath9k_hw_startpcureceive(struct ath_hw *ah) 1013void ath9k_hw_startpcureceive(struct ath_hw *ah)
1009{ 1014{
1010 ath9k_enable_mib_counters(ah); 1015 ath9k_enable_mib_counters(ah);