aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k/ath5k.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath5k/ath5k.h')
-rw-r--r--drivers/net/wireless/ath5k/ath5k.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath5k/ath5k.h b/drivers/net/wireless/ath5k/ath5k.h
index 9ea8c549b781..18223d9833f1 100644
--- a/drivers/net/wireless/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath5k/ath5k.h
@@ -263,8 +263,10 @@ enum ath5k_driver_mode {
263/* adding this flag to rate_code enables short preamble, see ar5212_reg.h */ 263/* adding this flag to rate_code enables short preamble, see ar5212_reg.h */
264#define AR5K_SET_SHORT_PREAMBLE 0x04 264#define AR5K_SET_SHORT_PREAMBLE 0x04
265 265
266#define HAS_SHPREAMBLE(_ix) (rt->rates[_ix].modulation == IEEE80211_RATE_SHORT_PREAMBLE) 266#define HAS_SHPREAMBLE(_ix) \
267#define SHPREAMBLE_FLAG(_ix) (HAS_SHPREAMBLE(_ix) ? AR5K_SET_SHORT_PREAMBLE : 0) 267 (rt->rates[_ix].modulation == IEEE80211_RATE_SHORT_PREAMBLE)
268#define SHPREAMBLE_FLAG(_ix) \
269 (HAS_SHPREAMBLE(_ix) ? AR5K_SET_SHORT_PREAMBLE : 0)
268 270
269/****************\ 271/****************\
270 TX DEFINITIONS 272 TX DEFINITIONS
@@ -892,6 +894,8 @@ enum ath5k_capability_type {
892 AR5K_CAP_RFSILENT = 20, /* Supports RFsilent */ 894 AR5K_CAP_RFSILENT = 20, /* Supports RFsilent */
893}; 895};
894 896
897
898/* XXX: we *may* move cap_range stuff to struct wiphy */
895struct ath5k_capabilities { 899struct ath5k_capabilities {
896 /* 900 /*
897 * Supported PHY modes 901 * Supported PHY modes