diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/common.h | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.h b/drivers/net/wireless/ath/ath9k/common.h index 97809d39c73f..77ec288b5a70 100644 --- a/drivers/net/wireless/ath/ath9k/common.h +++ b/drivers/net/wireless/ath/ath9k/common.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2009 Atheros Communications Inc. | 2 | * Copyright (c) 2009-2011 Atheros Communications Inc. |
3 | * | 3 | * |
4 | * Permission to use, copy, modify, and/or distribute this software for any | 4 | * Permission to use, copy, modify, and/or distribute this software for any |
5 | * purpose with or without fee is hereby granted, provided that the above | 5 | * purpose with or without fee is hereby granted, provided that the above |
@@ -17,24 +17,22 @@ | |||
17 | #include <net/mac80211.h> | 17 | #include <net/mac80211.h> |
18 | 18 | ||
19 | #include "../ath.h" | 19 | #include "../ath.h" |
20 | #include "../debug.h" | ||
21 | 20 | ||
22 | #include "hw.h" | 21 | #include "hw.h" |
23 | #include "hw-ops.h" | 22 | #include "hw-ops.h" |
24 | 23 | ||
25 | /* Common header for Atheros 802.11n base driver cores */ | 24 | /* Common header for Atheros 802.11n base driver cores */ |
26 | 25 | ||
27 | #define IEEE80211_WEP_NKID 4 | ||
28 | |||
29 | #define WME_NUM_TID 16 | 26 | #define WME_NUM_TID 16 |
30 | #define WME_BA_BMP_SIZE 64 | 27 | #define WME_BA_BMP_SIZE 64 |
31 | #define WME_MAX_BA WME_BA_BMP_SIZE | 28 | #define WME_MAX_BA WME_BA_BMP_SIZE |
32 | #define ATH_TID_MAX_BUFS (2 * WME_MAX_BA) | 29 | #define ATH_TID_MAX_BUFS (2 * WME_MAX_BA) |
33 | 30 | ||
34 | #define WME_AC_BE 0 | 31 | /* These must match mac80211 skb queue mapping numbers */ |
35 | #define WME_AC_BK 1 | 32 | #define WME_AC_VO 0 |
36 | #define WME_AC_VI 2 | 33 | #define WME_AC_VI 1 |
37 | #define WME_AC_VO 3 | 34 | #define WME_AC_BE 2 |
35 | #define WME_AC_BK 3 | ||
38 | #define WME_NUM_AC 4 | 36 | #define WME_NUM_AC 4 |
39 | 37 | ||
40 | #define ATH_RSSI_DUMMY_MARKER 0x127 | 38 | #define ATH_RSSI_DUMMY_MARKER 0x127 |
@@ -54,14 +52,13 @@ | |||
54 | 52 | ||
55 | int ath9k_cmn_padpos(__le16 frame_control); | 53 | int ath9k_cmn_padpos(__le16 frame_control); |
56 | int ath9k_cmn_get_hw_crypto_keytype(struct sk_buff *skb); | 54 | int ath9k_cmn_get_hw_crypto_keytype(struct sk_buff *skb); |
57 | void ath9k_cmn_update_ichannel(struct ieee80211_hw *hw, | 55 | void ath9k_cmn_update_ichannel(struct ath9k_channel *ichan, |
58 | struct ath9k_channel *ichan); | 56 | struct ieee80211_channel *chan, |
57 | enum nl80211_channel_type channel_type); | ||
59 | struct ath9k_channel *ath9k_cmn_get_curchannel(struct ieee80211_hw *hw, | 58 | struct ath9k_channel *ath9k_cmn_get_curchannel(struct ieee80211_hw *hw, |
60 | struct ath_hw *ah); | 59 | struct ath_hw *ah); |
61 | int ath9k_cmn_key_config(struct ath_common *common, | ||
62 | struct ieee80211_vif *vif, | ||
63 | struct ieee80211_sta *sta, | ||
64 | struct ieee80211_key_conf *key); | ||
65 | void ath9k_cmn_key_delete(struct ath_common *common, | ||
66 | struct ieee80211_key_conf *key); | ||
67 | int ath9k_cmn_count_streams(unsigned int chainmask, int max); | 60 | int ath9k_cmn_count_streams(unsigned int chainmask, int max); |
61 | void ath9k_cmn_btcoex_bt_stomp(struct ath_common *common, | ||
62 | enum ath_stomp_type stomp_type); | ||
63 | void ath9k_cmn_update_txpow(struct ath_hw *ah, u16 cur_txpow, | ||
64 | u16 new_txpow, u16 *txpower); | ||