aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r--drivers/net/wireless/libertas/wext.c164
1 files changed, 84 insertions, 80 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index 2231a65a537d..b8c93c0adb2e 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -21,7 +21,7 @@
21#include "assoc.h" 21#include "assoc.h"
22 22
23 23
24static inline void lbs_postpone_association_work(lbs_private *priv) 24static inline void lbs_postpone_association_work(struct lbs_private *priv)
25{ 25{
26 if (priv->adapter->surpriseremoved) 26 if (priv->adapter->surpriseremoved)
27 return; 27 return;
@@ -29,7 +29,7 @@ static inline void lbs_postpone_association_work(lbs_private *priv)
29 queue_delayed_work(priv->work_thread, &priv->assoc_work, HZ / 2); 29 queue_delayed_work(priv->work_thread, &priv->assoc_work, HZ / 2);
30} 30}
31 31
32static inline void lbs_cancel_association_work(lbs_private *priv) 32static inline void lbs_cancel_association_work(struct lbs_private *priv)
33{ 33{
34 cancel_delayed_work(&priv->assoc_work); 34 cancel_delayed_work(&priv->assoc_work);
35 kfree(priv->adapter->pending_assoc_req); 35 kfree(priv->adapter->pending_assoc_req);
@@ -40,13 +40,15 @@ static inline void lbs_cancel_association_work(lbs_private *priv)
40/** 40/**
41 * @brief Find the channel frequency power info with specific channel 41 * @brief Find the channel frequency power info with specific channel
42 * 42 *
43 * @param adapter A pointer to lbs_adapter structure 43 * @param adapter A pointer to struct lbs_adapter structure
44 * @param band it can be BAND_A, BAND_G or BAND_B 44 * @param band it can be BAND_A, BAND_G or BAND_B
45 * @param channel the channel for looking 45 * @param channel the channel for looking
46 * @return A pointer to struct chan_freq_power structure or NULL if not find. 46 * @return A pointer to struct chan_freq_power structure or NULL if not find.
47 */ 47 */
48struct chan_freq_power *lbs_find_cfp_by_band_and_channel(lbs_adapter *adapter, 48struct chan_freq_power *lbs_find_cfp_by_band_and_channel(
49 u8 band, u16 channel) 49 struct lbs_adapter *adapter,
50 u8 band,
51 u16 channel)
50{ 52{
51 struct chan_freq_power *cfp = NULL; 53 struct chan_freq_power *cfp = NULL;
52 struct region_channel *rc; 54 struct region_channel *rc;
@@ -79,13 +81,15 @@ struct chan_freq_power *lbs_find_cfp_by_band_and_channel(lbs_adapter *adapter,
79/** 81/**
80 * @brief Find the channel frequency power info with specific frequency 82 * @brief Find the channel frequency power info with specific frequency
81 * 83 *
82 * @param adapter A pointer to lbs_adapter structure 84 * @param adapter A pointer to struct lbs_adapter structure
83 * @param band it can be BAND_A, BAND_G or BAND_B 85 * @param band it can be BAND_A, BAND_G or BAND_B
84 * @param freq the frequency for looking 86 * @param freq the frequency for looking
85 * @return A pointer to struct chan_freq_power structure or NULL if not find. 87 * @return A pointer to struct chan_freq_power structure or NULL if not find.
86 */ 88 */
87static struct chan_freq_power *find_cfp_by_band_and_freq(lbs_adapter *adapter, 89static struct chan_freq_power *find_cfp_by_band_and_freq(
88 u8 band, u32 freq) 90 struct lbs_adapter *adapter,
91 u8 band,
92 u32 freq)
89{ 93{
90 struct chan_freq_power *cfp = NULL; 94 struct chan_freq_power *cfp = NULL;
91 struct region_channel *rc; 95 struct region_channel *rc;
@@ -119,14 +123,14 @@ static struct chan_freq_power *find_cfp_by_band_and_freq(lbs_adapter *adapter,
119/** 123/**
120 * @brief Set Radio On/OFF 124 * @brief Set Radio On/OFF
121 * 125 *
122 * @param priv A pointer to lbs_private structure 126 * @param priv A pointer to struct lbs_private structure
123 * @option Radio Option 127 * @option Radio Option
124 * @return 0 --success, otherwise fail 128 * @return 0 --success, otherwise fail
125 */ 129 */
126static int lbs_radio_ioctl(lbs_private *priv, u8 option) 130static int lbs_radio_ioctl(struct lbs_private *priv, u8 option)
127{ 131{
128 int ret = 0; 132 int ret = 0;
129 lbs_adapter *adapter = priv->adapter; 133 struct lbs_adapter *adapter = priv->adapter;
130 134
131 lbs_deb_enter(LBS_DEB_WEXT); 135 lbs_deb_enter(LBS_DEB_WEXT);
132 136
@@ -147,10 +151,10 @@ static int lbs_radio_ioctl(lbs_private *priv, u8 option)
147/** 151/**
148 * @brief Copy active data rates based on adapter mode and status 152 * @brief Copy active data rates based on adapter mode and status
149 * 153 *
150 * @param adapter A pointer to lbs_adapter structure 154 * @param adapter A pointer to struct lbs_adapter structure
151 * @param rate The buf to return the active rates 155 * @param rate The buf to return the active rates
152 */ 156 */
153static void copy_active_data_rates(lbs_adapter *adapter, u8 *rates) 157static void copy_active_data_rates(struct lbs_adapter *adapter, u8 *rates)
154{ 158{
155 lbs_deb_enter(LBS_DEB_WEXT); 159 lbs_deb_enter(LBS_DEB_WEXT);
156 160
@@ -179,8 +183,8 @@ static int lbs_get_name(struct net_device *dev, struct iw_request_info *info,
179static int lbs_get_freq(struct net_device *dev, struct iw_request_info *info, 183static int lbs_get_freq(struct net_device *dev, struct iw_request_info *info,
180 struct iw_freq *fwrq, char *extra) 184 struct iw_freq *fwrq, char *extra)
181{ 185{
182 lbs_private *priv = dev->priv; 186 struct lbs_private *priv = dev->priv;
183 lbs_adapter *adapter = priv->adapter; 187 struct lbs_adapter *adapter = priv->adapter;
184 struct chan_freq_power *cfp; 188 struct chan_freq_power *cfp;
185 189
186 lbs_deb_enter(LBS_DEB_WEXT); 190 lbs_deb_enter(LBS_DEB_WEXT);
@@ -206,8 +210,8 @@ static int lbs_get_freq(struct net_device *dev, struct iw_request_info *info,
206static int lbs_get_wap(struct net_device *dev, struct iw_request_info *info, 210static int lbs_get_wap(struct net_device *dev, struct iw_request_info *info,
207 struct sockaddr *awrq, char *extra) 211 struct sockaddr *awrq, char *extra)
208{ 212{
209 lbs_private *priv = dev->priv; 213 struct lbs_private *priv = dev->priv;
210 lbs_adapter *adapter = priv->adapter; 214 struct lbs_adapter *adapter = priv->adapter;
211 215
212 lbs_deb_enter(LBS_DEB_WEXT); 216 lbs_deb_enter(LBS_DEB_WEXT);
213 217
@@ -225,8 +229,8 @@ static int lbs_get_wap(struct net_device *dev, struct iw_request_info *info,
225static int lbs_set_nick(struct net_device *dev, struct iw_request_info *info, 229static int lbs_set_nick(struct net_device *dev, struct iw_request_info *info,
226 struct iw_point *dwrq, char *extra) 230 struct iw_point *dwrq, char *extra)
227{ 231{
228 lbs_private *priv = dev->priv; 232 struct lbs_private *priv = dev->priv;
229 lbs_adapter *adapter = priv->adapter; 233 struct lbs_adapter *adapter = priv->adapter;
230 234
231 lbs_deb_enter(LBS_DEB_WEXT); 235 lbs_deb_enter(LBS_DEB_WEXT);
232 236
@@ -250,8 +254,8 @@ static int lbs_set_nick(struct net_device *dev, struct iw_request_info *info,
250static int lbs_get_nick(struct net_device *dev, struct iw_request_info *info, 254static int lbs_get_nick(struct net_device *dev, struct iw_request_info *info,
251 struct iw_point *dwrq, char *extra) 255 struct iw_point *dwrq, char *extra)
252{ 256{
253 lbs_private *priv = dev->priv; 257 struct lbs_private *priv = dev->priv;
254 lbs_adapter *adapter = priv->adapter; 258 struct lbs_adapter *adapter = priv->adapter;
255 259
256 lbs_deb_enter(LBS_DEB_WEXT); 260 lbs_deb_enter(LBS_DEB_WEXT);
257 261
@@ -268,8 +272,8 @@ static int lbs_get_nick(struct net_device *dev, struct iw_request_info *info,
268static int mesh_get_nick(struct net_device *dev, struct iw_request_info *info, 272static int mesh_get_nick(struct net_device *dev, struct iw_request_info *info,
269 struct iw_point *dwrq, char *extra) 273 struct iw_point *dwrq, char *extra)
270{ 274{
271 lbs_private *priv = dev->priv; 275 struct lbs_private *priv = dev->priv;
272 lbs_adapter *adapter = priv->adapter; 276 struct lbs_adapter *adapter = priv->adapter;
273 277
274 lbs_deb_enter(LBS_DEB_WEXT); 278 lbs_deb_enter(LBS_DEB_WEXT);
275 279
@@ -294,8 +298,8 @@ static int lbs_set_rts(struct net_device *dev, struct iw_request_info *info,
294 struct iw_param *vwrq, char *extra) 298 struct iw_param *vwrq, char *extra)
295{ 299{
296 int ret = 0; 300 int ret = 0;
297 lbs_private *priv = dev->priv; 301 struct lbs_private *priv = dev->priv;
298 lbs_adapter *adapter = priv->adapter; 302 struct lbs_adapter *adapter = priv->adapter;
299 u32 rthr = vwrq->value; 303 u32 rthr = vwrq->value;
300 304
301 lbs_deb_enter(LBS_DEB_WEXT); 305 lbs_deb_enter(LBS_DEB_WEXT);
@@ -320,8 +324,8 @@ static int lbs_get_rts(struct net_device *dev, struct iw_request_info *info,
320 struct iw_param *vwrq, char *extra) 324 struct iw_param *vwrq, char *extra)
321{ 325{
322 int ret = 0; 326 int ret = 0;
323 lbs_private *priv = dev->priv; 327 struct lbs_private *priv = dev->priv;
324 lbs_adapter *adapter = priv->adapter; 328 struct lbs_adapter *adapter = priv->adapter;
325 329
326 lbs_deb_enter(LBS_DEB_WEXT); 330 lbs_deb_enter(LBS_DEB_WEXT);
327 331
@@ -347,8 +351,8 @@ static int lbs_set_frag(struct net_device *dev, struct iw_request_info *info,
347{ 351{
348 int ret = 0; 352 int ret = 0;
349 u32 fthr = vwrq->value; 353 u32 fthr = vwrq->value;
350 lbs_private *priv = dev->priv; 354 struct lbs_private *priv = dev->priv;
351 lbs_adapter *adapter = priv->adapter; 355 struct lbs_adapter *adapter = priv->adapter;
352 356
353 lbs_deb_enter(LBS_DEB_WEXT); 357 lbs_deb_enter(LBS_DEB_WEXT);
354 358
@@ -373,8 +377,8 @@ static int lbs_get_frag(struct net_device *dev, struct iw_request_info *info,
373 struct iw_param *vwrq, char *extra) 377 struct iw_param *vwrq, char *extra)
374{ 378{
375 int ret = 0; 379 int ret = 0;
376 lbs_private *priv = dev->priv; 380 struct lbs_private *priv = dev->priv;
377 lbs_adapter *adapter = priv->adapter; 381 struct lbs_adapter *adapter = priv->adapter;
378 382
379 lbs_deb_enter(LBS_DEB_WEXT); 383 lbs_deb_enter(LBS_DEB_WEXT);
380 384
@@ -399,8 +403,8 @@ out:
399static int lbs_get_mode(struct net_device *dev, 403static int lbs_get_mode(struct net_device *dev,
400 struct iw_request_info *info, u32 * uwrq, char *extra) 404 struct iw_request_info *info, u32 * uwrq, char *extra)
401{ 405{
402 lbs_private *priv = dev->priv; 406 struct lbs_private *priv = dev->priv;
403 lbs_adapter *adapter = priv->adapter; 407 struct lbs_adapter *adapter = priv->adapter;
404 408
405 lbs_deb_enter(LBS_DEB_WEXT); 409 lbs_deb_enter(LBS_DEB_WEXT);
406 410
@@ -427,8 +431,8 @@ static int lbs_get_txpow(struct net_device *dev,
427 struct iw_param *vwrq, char *extra) 431 struct iw_param *vwrq, char *extra)
428{ 432{
429 int ret = 0; 433 int ret = 0;
430 lbs_private *priv = dev->priv; 434 struct lbs_private *priv = dev->priv;
431 lbs_adapter *adapter = priv->adapter; 435 struct lbs_adapter *adapter = priv->adapter;
432 436
433 lbs_deb_enter(LBS_DEB_WEXT); 437 lbs_deb_enter(LBS_DEB_WEXT);
434 438
@@ -459,8 +463,8 @@ static int lbs_set_retry(struct net_device *dev, struct iw_request_info *info,
459 struct iw_param *vwrq, char *extra) 463 struct iw_param *vwrq, char *extra)
460{ 464{
461 int ret = 0; 465 int ret = 0;
462 lbs_private *priv = dev->priv; 466 struct lbs_private *priv = dev->priv;
463 lbs_adapter *adapter = priv->adapter; 467 struct lbs_adapter *adapter = priv->adapter;
464 468
465 lbs_deb_enter(LBS_DEB_WEXT); 469 lbs_deb_enter(LBS_DEB_WEXT);
466 470
@@ -494,8 +498,8 @@ out:
494static int lbs_get_retry(struct net_device *dev, struct iw_request_info *info, 498static int lbs_get_retry(struct net_device *dev, struct iw_request_info *info,
495 struct iw_param *vwrq, char *extra) 499 struct iw_param *vwrq, char *extra)
496{ 500{
497 lbs_private *priv = dev->priv; 501 struct lbs_private *priv = dev->priv;
498 lbs_adapter *adapter = priv->adapter; 502 struct lbs_adapter *adapter = priv->adapter;
499 int ret = 0; 503 int ret = 0;
500 504
501 lbs_deb_enter(LBS_DEB_WEXT); 505 lbs_deb_enter(LBS_DEB_WEXT);
@@ -563,8 +567,8 @@ static int lbs_get_range(struct net_device *dev, struct iw_request_info *info,
563 struct iw_point *dwrq, char *extra) 567 struct iw_point *dwrq, char *extra)
564{ 568{
565 int i, j; 569 int i, j;
566 lbs_private *priv = dev->priv; 570 struct lbs_private *priv = dev->priv;
567 lbs_adapter *adapter = priv->adapter; 571 struct lbs_adapter *adapter = priv->adapter;
568 struct iw_range *range = (struct iw_range *)extra; 572 struct iw_range *range = (struct iw_range *)extra;
569 struct chan_freq_power *cfp; 573 struct chan_freq_power *cfp;
570 u8 rates[MAX_RATES + 1]; 574 u8 rates[MAX_RATES + 1];
@@ -740,8 +744,8 @@ out:
740static int lbs_set_power(struct net_device *dev, struct iw_request_info *info, 744static int lbs_set_power(struct net_device *dev, struct iw_request_info *info,
741 struct iw_param *vwrq, char *extra) 745 struct iw_param *vwrq, char *extra)
742{ 746{
743 lbs_private *priv = dev->priv; 747 struct lbs_private *priv = dev->priv;
744 lbs_adapter *adapter = priv->adapter; 748 struct lbs_adapter *adapter = priv->adapter;
745 749
746 lbs_deb_enter(LBS_DEB_WEXT); 750 lbs_deb_enter(LBS_DEB_WEXT);
747 751
@@ -784,8 +788,8 @@ static int lbs_set_power(struct net_device *dev, struct iw_request_info *info,
784static int lbs_get_power(struct net_device *dev, struct iw_request_info *info, 788static int lbs_get_power(struct net_device *dev, struct iw_request_info *info,
785 struct iw_param *vwrq, char *extra) 789 struct iw_param *vwrq, char *extra)
786{ 790{
787 lbs_private *priv = dev->priv; 791 struct lbs_private *priv = dev->priv;
788 lbs_adapter *adapter = priv->adapter; 792 struct lbs_adapter *adapter = priv->adapter;
789 int mode; 793 int mode;
790 794
791 lbs_deb_enter(LBS_DEB_WEXT); 795 lbs_deb_enter(LBS_DEB_WEXT);
@@ -815,8 +819,8 @@ static struct iw_statistics *lbs_get_wireless_stats(struct net_device *dev)
815 EXCELLENT = 95, 819 EXCELLENT = 95,
816 PERFECT = 100 820 PERFECT = 100
817 }; 821 };
818 lbs_private *priv = dev->priv; 822 struct lbs_private *priv = dev->priv;
819 lbs_adapter *adapter = priv->adapter; 823 struct lbs_adapter *adapter = priv->adapter;
820 u32 rssi_qual; 824 u32 rssi_qual;
821 u32 tx_qual; 825 u32 tx_qual;
822 u32 quality = 0; 826 u32 quality = 0;
@@ -919,8 +923,8 @@ static int lbs_set_freq(struct net_device *dev, struct iw_request_info *info,
919 struct iw_freq *fwrq, char *extra) 923 struct iw_freq *fwrq, char *extra)
920{ 924{
921 int ret = -EINVAL; 925 int ret = -EINVAL;
922 lbs_private *priv = dev->priv; 926 struct lbs_private *priv = dev->priv;
923 lbs_adapter *adapter = priv->adapter; 927 struct lbs_adapter *adapter = priv->adapter;
924 struct chan_freq_power *cfp; 928 struct chan_freq_power *cfp;
925 struct assoc_request * assoc_req; 929 struct assoc_request * assoc_req;
926 930
@@ -976,8 +980,8 @@ out:
976static int lbs_set_rate(struct net_device *dev, struct iw_request_info *info, 980static int lbs_set_rate(struct net_device *dev, struct iw_request_info *info,
977 struct iw_param *vwrq, char *extra) 981 struct iw_param *vwrq, char *extra)
978{ 982{
979 lbs_private *priv = dev->priv; 983 struct lbs_private *priv = dev->priv;
980 lbs_adapter *adapter = priv->adapter; 984 struct lbs_adapter *adapter = priv->adapter;
981 u32 new_rate; 985 u32 new_rate;
982 u16 action; 986 u16 action;
983 int ret = -EINVAL; 987 int ret = -EINVAL;
@@ -1020,8 +1024,8 @@ out:
1020static int lbs_get_rate(struct net_device *dev, struct iw_request_info *info, 1024static int lbs_get_rate(struct net_device *dev, struct iw_request_info *info,
1021 struct iw_param *vwrq, char *extra) 1025 struct iw_param *vwrq, char *extra)
1022{ 1026{
1023 lbs_private *priv = dev->priv; 1027 struct lbs_private *priv = dev->priv;
1024 lbs_adapter *adapter = priv->adapter; 1028 struct lbs_adapter *adapter = priv->adapter;
1025 1029
1026 lbs_deb_enter(LBS_DEB_WEXT); 1030 lbs_deb_enter(LBS_DEB_WEXT);
1027 1031
@@ -1046,8 +1050,8 @@ static int lbs_set_mode(struct net_device *dev,
1046 struct iw_request_info *info, u32 * uwrq, char *extra) 1050 struct iw_request_info *info, u32 * uwrq, char *extra)
1047{ 1051{
1048 int ret = 0; 1052 int ret = 0;
1049 lbs_private *priv = dev->priv; 1053 struct lbs_private *priv = dev->priv;
1050 lbs_adapter *adapter = priv->adapter; 1054 struct lbs_adapter *adapter = priv->adapter;
1051 struct assoc_request * assoc_req; 1055 struct assoc_request * assoc_req;
1052 1056
1053 lbs_deb_enter(LBS_DEB_WEXT); 1057 lbs_deb_enter(LBS_DEB_WEXT);
@@ -1092,8 +1096,8 @@ static int lbs_get_encode(struct net_device *dev,
1092 struct iw_request_info *info, 1096 struct iw_request_info *info,
1093 struct iw_point *dwrq, u8 * extra) 1097 struct iw_point *dwrq, u8 * extra)
1094{ 1098{
1095 lbs_private *priv = dev->priv; 1099 struct lbs_private *priv = dev->priv;
1096 lbs_adapter *adapter = priv->adapter; 1100 struct lbs_adapter *adapter = priv->adapter;
1097 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1; 1101 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
1098 1102
1099 lbs_deb_enter(LBS_DEB_WEXT); 1103 lbs_deb_enter(LBS_DEB_WEXT);
@@ -1297,8 +1301,8 @@ static int lbs_set_encode(struct net_device *dev,
1297 struct iw_point *dwrq, char *extra) 1301 struct iw_point *dwrq, char *extra)
1298{ 1302{
1299 int ret = 0; 1303 int ret = 0;
1300 lbs_private *priv = dev->priv; 1304 struct lbs_private *priv = dev->priv;
1301 lbs_adapter *adapter = priv->adapter; 1305 struct lbs_adapter *adapter = priv->adapter;
1302 struct assoc_request * assoc_req; 1306 struct assoc_request * assoc_req;
1303 u16 is_default = 0, index = 0, set_tx_key = 0; 1307 u16 is_default = 0, index = 0, set_tx_key = 0;
1304 1308
@@ -1374,8 +1378,8 @@ static int lbs_get_encodeext(struct net_device *dev,
1374 char *extra) 1378 char *extra)
1375{ 1379{
1376 int ret = -EINVAL; 1380 int ret = -EINVAL;
1377 lbs_private *priv = dev->priv; 1381 struct lbs_private *priv = dev->priv;
1378 lbs_adapter *adapter = priv->adapter; 1382 struct lbs_adapter *adapter = priv->adapter;
1379 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; 1383 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
1380 int index, max_key_len; 1384 int index, max_key_len;
1381 1385
@@ -1481,8 +1485,8 @@ static int lbs_set_encodeext(struct net_device *dev,
1481 char *extra) 1485 char *extra)
1482{ 1486{
1483 int ret = 0; 1487 int ret = 0;
1484 lbs_private *priv = dev->priv; 1488 struct lbs_private *priv = dev->priv;
1485 lbs_adapter *adapter = priv->adapter; 1489 struct lbs_adapter *adapter = priv->adapter;
1486 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; 1490 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
1487 int alg = ext->alg; 1491 int alg = ext->alg;
1488 struct assoc_request * assoc_req; 1492 struct assoc_request * assoc_req;
@@ -1606,8 +1610,8 @@ static int lbs_set_genie(struct net_device *dev,
1606 struct iw_point *dwrq, 1610 struct iw_point *dwrq,
1607 char *extra) 1611 char *extra)
1608{ 1612{
1609 lbs_private *priv = dev->priv; 1613 struct lbs_private *priv = dev->priv;
1610 lbs_adapter *adapter = priv->adapter; 1614 struct lbs_adapter *adapter = priv->adapter;
1611 int ret = 0; 1615 int ret = 0;
1612 struct assoc_request * assoc_req; 1616 struct assoc_request * assoc_req;
1613 1617
@@ -1653,8 +1657,8 @@ static int lbs_get_genie(struct net_device *dev,
1653 char *extra) 1657 char *extra)
1654{ 1658{
1655 int ret = 0; 1659 int ret = 0;
1656 lbs_private *priv = dev->priv; 1660 struct lbs_private *priv = dev->priv;
1657 lbs_adapter *adapter = priv->adapter; 1661 struct lbs_adapter *adapter = priv->adapter;
1658 1662
1659 lbs_deb_enter(LBS_DEB_WEXT); 1663 lbs_deb_enter(LBS_DEB_WEXT);
1660 1664
@@ -1682,8 +1686,8 @@ static int lbs_set_auth(struct net_device *dev,
1682 struct iw_param *dwrq, 1686 struct iw_param *dwrq,
1683 char *extra) 1687 char *extra)
1684{ 1688{
1685 lbs_private *priv = dev->priv; 1689 struct lbs_private *priv = dev->priv;
1686 lbs_adapter *adapter = priv->adapter; 1690 struct lbs_adapter *adapter = priv->adapter;
1687 struct assoc_request * assoc_req; 1691 struct assoc_request * assoc_req;
1688 int ret = 0; 1692 int ret = 0;
1689 int updated = 0; 1693 int updated = 0;
@@ -1782,8 +1786,8 @@ static int lbs_get_auth(struct net_device *dev,
1782 char *extra) 1786 char *extra)
1783{ 1787{
1784 int ret = 0; 1788 int ret = 0;
1785 lbs_private *priv = dev->priv; 1789 struct lbs_private *priv = dev->priv;
1786 lbs_adapter *adapter = priv->adapter; 1790 struct lbs_adapter *adapter = priv->adapter;
1787 1791
1788 lbs_deb_enter(LBS_DEB_WEXT); 1792 lbs_deb_enter(LBS_DEB_WEXT);
1789 1793
@@ -1820,8 +1824,8 @@ static int lbs_set_txpow(struct net_device *dev, struct iw_request_info *info,
1820 struct iw_param *vwrq, char *extra) 1824 struct iw_param *vwrq, char *extra)
1821{ 1825{
1822 int ret = 0; 1826 int ret = 0;
1823 lbs_private *priv = dev->priv; 1827 struct lbs_private *priv = dev->priv;
1824 lbs_adapter *adapter = priv->adapter; 1828 struct lbs_adapter *adapter = priv->adapter;
1825 1829
1826 u16 dbm; 1830 u16 dbm;
1827 1831
@@ -1862,8 +1866,8 @@ static int lbs_set_txpow(struct net_device *dev, struct iw_request_info *info,
1862static int lbs_get_essid(struct net_device *dev, struct iw_request_info *info, 1866static int lbs_get_essid(struct net_device *dev, struct iw_request_info *info,
1863 struct iw_point *dwrq, char *extra) 1867 struct iw_point *dwrq, char *extra)
1864{ 1868{
1865 lbs_private *priv = dev->priv; 1869 struct lbs_private *priv = dev->priv;
1866 lbs_adapter *adapter = priv->adapter; 1870 struct lbs_adapter *adapter = priv->adapter;
1867 1871
1868 lbs_deb_enter(LBS_DEB_WEXT); 1872 lbs_deb_enter(LBS_DEB_WEXT);
1869 1873
@@ -1898,8 +1902,8 @@ static int lbs_get_essid(struct net_device *dev, struct iw_request_info *info,
1898static int lbs_set_essid(struct net_device *dev, struct iw_request_info *info, 1902static int lbs_set_essid(struct net_device *dev, struct iw_request_info *info,
1899 struct iw_point *dwrq, char *extra) 1903 struct iw_point *dwrq, char *extra)
1900{ 1904{
1901 lbs_private *priv = dev->priv; 1905 struct lbs_private *priv = dev->priv;
1902 lbs_adapter *adapter = priv->adapter; 1906 struct lbs_adapter *adapter = priv->adapter;
1903 int ret = 0; 1907 int ret = 0;
1904 u8 ssid[IW_ESSID_MAX_SIZE]; 1908 u8 ssid[IW_ESSID_MAX_SIZE];
1905 u8 ssid_len = 0; 1909 u8 ssid_len = 0;
@@ -1970,8 +1974,8 @@ out:
1970static int lbs_set_wap(struct net_device *dev, struct iw_request_info *info, 1974static int lbs_set_wap(struct net_device *dev, struct iw_request_info *info,
1971 struct sockaddr *awrq, char *extra) 1975 struct sockaddr *awrq, char *extra)
1972{ 1976{
1973 lbs_private *priv = dev->priv; 1977 struct lbs_private *priv = dev->priv;
1974 lbs_adapter *adapter = priv->adapter; 1978 struct lbs_adapter *adapter = priv->adapter;
1975 struct assoc_request * assoc_req; 1979 struct assoc_request * assoc_req;
1976 int ret = 0; 1980 int ret = 0;
1977 DECLARE_MAC_BUF(mac); 1981 DECLARE_MAC_BUF(mac);
@@ -2002,7 +2006,7 @@ static int lbs_set_wap(struct net_device *dev, struct iw_request_info *info,
2002 return ret; 2006 return ret;
2003} 2007}
2004 2008
2005void lbs_get_fwversion(lbs_adapter *adapter, char *fwversion, int maxlen) 2009void lbs_get_fwversion(struct lbs_adapter *adapter, char *fwversion, int maxlen)
2006{ 2010{
2007 char fwver[32]; 2011 char fwver[32];
2008 2012