diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-08 15:04:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:19 -0500 |
commit | aa21c004f80bdf943736c62dccf0c0398d7824f3 (patch) | |
tree | 6815328775d3b5ec46bb342c4c256cde0f223863 /drivers/net/wireless/libertas/dev.h | |
parent | f86a93e1b2d05a7a38a48c91f8fb8fc7e8f1c734 (diff) |
libertas: kill struct lbs_adapter
There seems to be no reason for a separate structure; move it all
into struct lbs_private.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/dev.h')
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 97 |
1 files changed, 48 insertions, 49 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index eaa45d4bb9d2..21b0d382096b 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /** | 1 | /** |
2 | * This file contains definitions and data structures specific | 2 | * This file contains definitions and data structures specific |
3 | * to Marvell 802.11 NIC. It contains the Device Information | 3 | * to Marvell 802.11 NIC. It contains the Device Information |
4 | * structure struct lbs_adapter. | 4 | * structure struct lbs_private.. |
5 | */ | 5 | */ |
6 | #ifndef _LBS_DEV_H_ | 6 | #ifndef _LBS_DEV_H_ |
7 | #define _LBS_DEV_H_ | 7 | #define _LBS_DEV_H_ |
@@ -109,7 +109,6 @@ struct lbs_private { | |||
109 | char name[DEV_NAME_LEN]; | 109 | char name[DEV_NAME_LEN]; |
110 | 110 | ||
111 | void *card; | 111 | void *card; |
112 | struct lbs_adapter *adapter; | ||
113 | struct net_device *dev; | 112 | struct net_device *dev; |
114 | 113 | ||
115 | struct net_device_stats stats; | 114 | struct net_device_stats stats; |
@@ -156,54 +155,10 @@ struct lbs_private { | |||
156 | int (*hw_host_to_card) (struct lbs_private *priv, u8 type, u8 *payload, u16 nb); | 155 | int (*hw_host_to_card) (struct lbs_private *priv, u8 type, u8 *payload, u16 nb); |
157 | int (*hw_get_int_status) (struct lbs_private *priv, u8 *); | 156 | int (*hw_get_int_status) (struct lbs_private *priv, u8 *); |
158 | int (*hw_read_event_cause) (struct lbs_private *); | 157 | int (*hw_read_event_cause) (struct lbs_private *); |
159 | }; | ||
160 | |||
161 | /** Association request | ||
162 | * | ||
163 | * Encapsulates all the options that describe a specific assocation request | ||
164 | * or configuration of the wireless card's radio, mode, and security settings. | ||
165 | */ | ||
166 | struct assoc_request { | ||
167 | #define ASSOC_FLAG_SSID 1 | ||
168 | #define ASSOC_FLAG_CHANNEL 2 | ||
169 | #define ASSOC_FLAG_BAND 3 | ||
170 | #define ASSOC_FLAG_MODE 4 | ||
171 | #define ASSOC_FLAG_BSSID 5 | ||
172 | #define ASSOC_FLAG_WEP_KEYS 6 | ||
173 | #define ASSOC_FLAG_WEP_TX_KEYIDX 7 | ||
174 | #define ASSOC_FLAG_WPA_MCAST_KEY 8 | ||
175 | #define ASSOC_FLAG_WPA_UCAST_KEY 9 | ||
176 | #define ASSOC_FLAG_SECINFO 10 | ||
177 | #define ASSOC_FLAG_WPA_IE 11 | ||
178 | unsigned long flags; | ||
179 | |||
180 | u8 ssid[IW_ESSID_MAX_SIZE + 1]; | ||
181 | u8 ssid_len; | ||
182 | u8 channel; | ||
183 | u8 band; | ||
184 | u8 mode; | ||
185 | u8 bssid[ETH_ALEN]; | ||
186 | |||
187 | /** WEP keys */ | ||
188 | struct enc_key wep_keys[4]; | ||
189 | u16 wep_tx_keyidx; | ||
190 | |||
191 | /** WPA keys */ | ||
192 | struct enc_key wpa_mcast_key; | ||
193 | struct enc_key wpa_unicast_key; | ||
194 | |||
195 | struct lbs_802_11_security secinfo; | ||
196 | 158 | ||
197 | /** WPA Information Elements*/ | 159 | /* was struct lbs_adapter from here... */ |
198 | u8 wpa_ie[MAX_WPA_IE_LEN]; | ||
199 | u8 wpa_ie_len; | ||
200 | |||
201 | /* BSS to associate with for infrastructure of Ad-Hoc join */ | ||
202 | struct bss_descriptor bss; | ||
203 | }; | ||
204 | 160 | ||
205 | /** Wlan adapter data structure*/ | 161 | /** Wlan adapter data structure*/ |
206 | struct lbs_adapter { | ||
207 | /** STATUS variables */ | 162 | /** STATUS variables */ |
208 | u8 fwreleasenumber[4]; | 163 | u8 fwreleasenumber[4]; |
209 | u32 fwcapinfo; | 164 | u32 fwcapinfo; |
@@ -229,7 +184,7 @@ struct lbs_adapter { | |||
229 | struct list_head cmdpendingq; | 184 | struct list_head cmdpendingq; |
230 | 185 | ||
231 | wait_queue_head_t cmd_pending; | 186 | wait_queue_head_t cmd_pending; |
232 | /* command related variables protected by adapter->driver_lock */ | 187 | /* command related variables protected by priv->driver_lock */ |
233 | 188 | ||
234 | /** Async and Sync Event variables */ | 189 | /** Async and Sync Event variables */ |
235 | u32 intcounter; | 190 | u32 intcounter; |
@@ -366,4 +321,48 @@ struct lbs_adapter { | |||
366 | u8 fw_ready; | 321 | u8 fw_ready; |
367 | }; | 322 | }; |
368 | 323 | ||
324 | /** Association request | ||
325 | * | ||
326 | * Encapsulates all the options that describe a specific assocation request | ||
327 | * or configuration of the wireless card's radio, mode, and security settings. | ||
328 | */ | ||
329 | struct assoc_request { | ||
330 | #define ASSOC_FLAG_SSID 1 | ||
331 | #define ASSOC_FLAG_CHANNEL 2 | ||
332 | #define ASSOC_FLAG_BAND 3 | ||
333 | #define ASSOC_FLAG_MODE 4 | ||
334 | #define ASSOC_FLAG_BSSID 5 | ||
335 | #define ASSOC_FLAG_WEP_KEYS 6 | ||
336 | #define ASSOC_FLAG_WEP_TX_KEYIDX 7 | ||
337 | #define ASSOC_FLAG_WPA_MCAST_KEY 8 | ||
338 | #define ASSOC_FLAG_WPA_UCAST_KEY 9 | ||
339 | #define ASSOC_FLAG_SECINFO 10 | ||
340 | #define ASSOC_FLAG_WPA_IE 11 | ||
341 | unsigned long flags; | ||
342 | |||
343 | u8 ssid[IW_ESSID_MAX_SIZE + 1]; | ||
344 | u8 ssid_len; | ||
345 | u8 channel; | ||
346 | u8 band; | ||
347 | u8 mode; | ||
348 | u8 bssid[ETH_ALEN]; | ||
349 | |||
350 | /** WEP keys */ | ||
351 | struct enc_key wep_keys[4]; | ||
352 | u16 wep_tx_keyidx; | ||
353 | |||
354 | /** WPA keys */ | ||
355 | struct enc_key wpa_mcast_key; | ||
356 | struct enc_key wpa_unicast_key; | ||
357 | |||
358 | struct lbs_802_11_security secinfo; | ||
359 | |||
360 | /** WPA Information Elements*/ | ||
361 | u8 wpa_ie[MAX_WPA_IE_LEN]; | ||
362 | u8 wpa_ie_len; | ||
363 | |||
364 | /* BSS to associate with for infrastructure of Ad-Hoc join */ | ||
365 | struct bss_descriptor bss; | ||
366 | }; | ||
367 | |||
369 | #endif | 368 | #endif |