31#define WME_BA_BMP_SIZE 64
32#define WME_MAX_BA WME_BA_BMP_SIZE
33#define ATH_TID_MAX_BUFS (2 * WME_MAX_BA)
38#define ATH_RSSI_DUMMY_MARKER 0x127
39#define ATH_RSSI_LPF_LEN 10
40#define RSSI_LPF_THRESHOLD -20
41#define ATH_RSSI_EP_MULTIPLIER (1<<7)
42#define ATH_EP_MUL(x, mul) ((x) * (mul))
43#define ATH_RSSI_IN(x) (ATH_EP_MUL((x), ATH_RSSI_EP_MULTIPLIER))
44#define ATH_LPF_RSSI(x, y, len) \
45 ((x != ATH_RSSI_DUMMY_MARKER) ? (((x) * ((len) - 1) + (y)) / (len)) : (y))
46#define ATH_RSSI_LPF(x, y) do { \
47 if ((y) >= RSSI_LPF_THRESHOLD) \
48 x = ATH_LPF_RSSI((x), ATH_RSSI_IN((y)), ATH_RSSI_LPF_LEN); \
50#define ATH_EP_RND(x, mul) \
51 ((((x)%(mul)) >= ((mul)/2)) ? ((x) + ((mul) - 1)) / (mul) : (x)/(mul))
59 u16 new_txpow,
u16 *txpower);
void ath9k_cmn_update_ichannel(struct ath9k_channel *ichan, struct net80211_channel *chan)
struct ath9k_channel * ath9k_cmn_get_curchannel(struct net80211_device *dev, struct ath_hw *ah)
void ath9k_cmn_update_txpow(struct ath_hw *ah, u16 cur_txpow, u16 new_txpow, u16 *txpower)
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Structure encapsulating the complete state of an 802.11 device.