diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-08 16:13:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-11 15:04:20 -0400 |
commit | b5bfc5683db44a121ad47ec0a9f4efd4aac040e0 (patch) | |
tree | b9d182f42cbbfdea95ad7ab425302617c5f40db9 /drivers/net/wireless/ath/reg.h | |
parent | 9d119f3ebd074bde0b801f476a44ca60d222efb2 (diff) |
ath9k_hw: move the cycle counter tracking to ath
Instead of keeping track of wraparound, clear the counters on every
access and keep separate deltas for ANI and later survey use.
Also moves the function for calculating the 'listen time' for ANI
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/reg.h')
-rw-r--r-- | drivers/net/wireless/ath/reg.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/reg.h b/drivers/net/wireless/ath/reg.h index e798ef476581..298e53f3fa48 100644 --- a/drivers/net/wireless/ath/reg.h +++ b/drivers/net/wireless/ath/reg.h | |||
@@ -17,6 +17,12 @@ | |||
17 | #ifndef ATH_REGISTERS_H | 17 | #ifndef ATH_REGISTERS_H |
18 | #define ATH_REGISTERS_H | 18 | #define ATH_REGISTERS_H |
19 | 19 | ||
20 | #define AR_MIBC 0x0040 | ||
21 | #define AR_MIBC_COW 0x00000001 | ||
22 | #define AR_MIBC_FMC 0x00000002 | ||
23 | #define AR_MIBC_CMC 0x00000004 | ||
24 | #define AR_MIBC_MCS 0x00000008 | ||
25 | |||
20 | /* | 26 | /* |
21 | * BSSID mask registers. See ath_hw_set_bssid_mask() | 27 | * BSSID mask registers. See ath_hw_set_bssid_mask() |
22 | * for detailed documentation about these registers. | 28 | * for detailed documentation about these registers. |
@@ -24,6 +30,11 @@ | |||
24 | #define AR_BSSMSKL 0x80e0 | 30 | #define AR_BSSMSKL 0x80e0 |
25 | #define AR_BSSMSKU 0x80e4 | 31 | #define AR_BSSMSKU 0x80e4 |
26 | 32 | ||
33 | #define AR_TFCNT 0x80ec | ||
34 | #define AR_RFCNT 0x80f0 | ||
35 | #define AR_RCCNT 0x80f4 | ||
36 | #define AR_CCCNT 0x80f8 | ||
37 | |||
27 | #define AR_KEYTABLE_0 0x8800 | 38 | #define AR_KEYTABLE_0 0x8800 |
28 | #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) | 39 | #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) |
29 | #define AR_KEY_CACHE_SIZE 128 | 40 | #define AR_KEY_CACHE_SIZE 128 |