diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.h b/drivers/net/wireless/ath/ath5k/base.h index a28c42f32c9d..7e1a88a5abdb 100644 --- a/drivers/net/wireless/ath/ath5k/base.h +++ b/drivers/net/wireless/ath/ath5k/base.h | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | /* | 38 | /* |
39 | * Defintions for the Atheros Wireless LAN controller driver. | 39 | * Definitions for the Atheros Wireless LAN controller driver. |
40 | */ | 40 | */ |
41 | #ifndef _DEV_ATH_ATHVAR_H | 41 | #ifndef _DEV_ATH_ATHVAR_H |
42 | #define _DEV_ATH_ATHVAR_H | 42 | #define _DEV_ATH_ATHVAR_H |
@@ -115,10 +115,8 @@ struct ath5k_rfkill { | |||
115 | * associated with an instance of a device */ | 115 | * associated with an instance of a device */ |
116 | struct ath5k_softc { | 116 | struct ath5k_softc { |
117 | struct pci_dev *pdev; /* for dma mapping */ | 117 | struct pci_dev *pdev; /* for dma mapping */ |
118 | struct ath_common common; | ||
119 | void __iomem *iobase; /* address of the device */ | 118 | void __iomem *iobase; /* address of the device */ |
120 | struct mutex lock; /* dev-level lock */ | 119 | struct mutex lock; /* dev-level lock */ |
121 | struct ieee80211_tx_queue_stats tx_stats[AR5K_NUM_TX_QUEUES]; | ||
122 | struct ieee80211_low_level_stats ll_stats; | 120 | struct ieee80211_low_level_stats ll_stats; |
123 | struct ieee80211_hw *hw; /* IEEE 802.11 common */ | 121 | struct ieee80211_hw *hw; /* IEEE 802.11 common */ |
124 | struct ieee80211_supported_band sbands[IEEE80211_NUM_BANDS]; | 122 | struct ieee80211_supported_band sbands[IEEE80211_NUM_BANDS]; |
@@ -154,8 +152,6 @@ struct ath5k_softc { | |||
154 | 152 | ||
155 | enum ath5k_int imask; /* interrupt mask copy */ | 153 | enum ath5k_int imask; /* interrupt mask copy */ |
156 | 154 | ||
157 | DECLARE_BITMAP(keymap, AR5K_KEYCACHE_SIZE); /* key use bit map */ | ||
158 | |||
159 | u8 bssidmask[ETH_ALEN]; | 155 | u8 bssidmask[ETH_ALEN]; |
160 | 156 | ||
161 | unsigned int led_pin, /* GPIO pin for driving LED */ | 157 | unsigned int led_pin, /* GPIO pin for driving LED */ |
@@ -193,7 +189,7 @@ struct ath5k_softc { | |||
193 | struct ath5k_txq *cabq; /* content after beacon */ | 189 | struct ath5k_txq *cabq; /* content after beacon */ |
194 | 190 | ||
195 | int power_level; /* Requested tx power in dbm */ | 191 | int power_level; /* Requested tx power in dbm */ |
196 | bool assoc; /* assocate state */ | 192 | bool assoc; /* associate state */ |
197 | bool enable_beacon; /* true if beacons are on */ | 193 | bool enable_beacon; /* true if beacons are on */ |
198 | }; | 194 | }; |
199 | 195 | ||
@@ -202,15 +198,4 @@ struct ath5k_softc { | |||
202 | #define ath5k_hw_hasveol(_ah) \ | 198 | #define ath5k_hw_hasveol(_ah) \ |
203 | (ath5k_hw_get_capability(_ah, AR5K_CAP_VEOL, 0, NULL) == 0) | 199 | (ath5k_hw_get_capability(_ah, AR5K_CAP_VEOL, 0, NULL) == 0) |
204 | 200 | ||
205 | static inline struct ath_common *ath5k_hw_common(struct ath5k_hw *ah) | ||
206 | { | ||
207 | return &ah->ah_sc->common; | ||
208 | } | ||
209 | |||
210 | static inline struct ath_regulatory *ath5k_hw_regulatory(struct ath5k_hw *ah) | ||
211 | { | ||
212 | return &(ath5k_hw_common(ah)->regulatory); | ||
213 | |||
214 | } | ||
215 | |||
216 | #endif | 201 | #endif |