diff options
author | Nick Kossifidis <mickflemm@gmail.com> | 2011-11-25 13:40:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-28 14:44:19 -0500 |
commit | 86f62d9b705cdd4f04da5387a5c71ca6ee0a37c9 (patch) | |
tree | be7b6efd601ad74a238e7520740cdd3b59e18559 /drivers/net/wireless/ath/ath5k/ath5k.h | |
parent | 84e1e7373b961713bde371b9391d91fe7150d7f2 (diff) |
ath5k: MRR support and 2GHz radio override belong in ah_capabilities
MRR support and 2GHz radio override belong in ah_capabilities and we
should use them (e.g. so far we used to set mrr descriptor without
checking if MRR support is enabled + we checked for MRR support 2
times, one by trying to set up an MRR descriptor and another one based
on MAC version).
Signed-off-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ath5k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ath5k.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index 819c4db5aab3..c3815f708382 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h | |||
@@ -1159,6 +1159,8 @@ struct ath5k_capabilities { | |||
1159 | } cap_queues; | 1159 | } cap_queues; |
1160 | 1160 | ||
1161 | bool cap_has_phyerr_counters; | 1161 | bool cap_has_phyerr_counters; |
1162 | bool cap_has_mrr_support; | ||
1163 | bool cap_needs_2GHz_ovr; | ||
1162 | }; | 1164 | }; |
1163 | 1165 | ||
1164 | /* size of noise floor history (keep it a power of two) */ | 1166 | /* size of noise floor history (keep it a power of two) */ |
@@ -1274,13 +1276,11 @@ struct ath5k_hw { | |||
1274 | dma_addr_t desc_daddr; /* DMA (physical) address */ | 1276 | dma_addr_t desc_daddr; /* DMA (physical) address */ |
1275 | size_t desc_len; /* size of TX/RX descriptors */ | 1277 | size_t desc_len; /* size of TX/RX descriptors */ |
1276 | 1278 | ||
1277 | DECLARE_BITMAP(status, 6); | 1279 | DECLARE_BITMAP(status, 4); |
1278 | #define ATH_STAT_INVALID 0 /* disable hardware accesses */ | 1280 | #define ATH_STAT_INVALID 0 /* disable hardware accesses */ |
1279 | #define ATH_STAT_MRRETRY 1 /* multi-rate retry support */ | 1281 | #define ATH_STAT_PROMISC 1 |
1280 | #define ATH_STAT_PROMISC 2 | 1282 | #define ATH_STAT_LEDSOFT 2 /* enable LED gpio status */ |
1281 | #define ATH_STAT_LEDSOFT 3 /* enable LED gpio status */ | 1283 | #define ATH_STAT_STARTED 3 /* opened & irqs enabled */ |
1282 | #define ATH_STAT_STARTED 4 /* opened & irqs enabled */ | ||
1283 | #define ATH_STAT_2G_DISABLED 5 /* multiband radio without 2G */ | ||
1284 | 1284 | ||
1285 | unsigned int filter_flags; /* HW flags, AR5K_RX_FILTER_* */ | 1285 | unsigned int filter_flags; /* HW flags, AR5K_RX_FILTER_* */ |
1286 | struct ieee80211_channel *curchan; /* current h/w channel */ | 1286 | struct ieee80211_channel *curchan; /* current h/w channel */ |