diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-15 18:05:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:46 -0500 |
commit | 1007832103d016d1563fab71d4cf2b057a0bcceb (patch) | |
tree | 3b5080b01bee6e1f98cc9489382c534e963ac748 /drivers/net/wireless/libertas/cmdresp.c | |
parent | 9a62f73b1a3bbd35a6f84fcd6636e672b09981ec (diff) |
libertas: move to uniform lbs_/LBS_ namespace
This patch unifies the namespace of variables, functions defines
and structures. It does:
- rename libertas_XXX to lbs_XXX
- rename LIBERTAS_XXX to lbs_XXX
- rename wlan_XXX to lbs_XXX
- rename WLAN_XXX to LBS_XXX (but only those that were
defined in libertas-local *.h files, e.g. not defines
from net/ieee80211.h)
While passing, I fixed some checkpatch.pl errors too.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 174 |
1 files changed, 87 insertions, 87 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 8f90892ea22e..6c1fdb8f11fb 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -20,15 +20,15 @@ | |||
20 | * reports disconnect to upper layer, clean tx/rx packets, | 20 | * reports disconnect to upper layer, clean tx/rx packets, |
21 | * reset link state etc. | 21 | * reset link state etc. |
22 | * | 22 | * |
23 | * @param priv A pointer to wlan_private structure | 23 | * @param priv A pointer to lbs_private structure |
24 | * @return n/a | 24 | * @return n/a |
25 | */ | 25 | */ |
26 | void libertas_mac_event_disconnected(wlan_private * priv) | 26 | void lbs_mac_event_disconnected(lbs_private * priv) |
27 | { | 27 | { |
28 | wlan_adapter *adapter = priv->adapter; | 28 | lbs_adapter *adapter = priv->adapter; |
29 | union iwreq_data wrqu; | 29 | union iwreq_data wrqu; |
30 | 30 | ||
31 | if (adapter->connect_status != LIBERTAS_CONNECTED) | 31 | if (adapter->connect_status != LBS_CONNECTED) |
32 | return; | 32 | return; |
33 | 33 | ||
34 | lbs_deb_enter(LBS_DEB_CMD); | 34 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -65,7 +65,7 @@ void libertas_mac_event_disconnected(wlan_private * priv) | |||
65 | adapter->curbssparams.ssid_len), | 65 | adapter->curbssparams.ssid_len), |
66 | adapter->curbssparams.ssid_len); | 66 | adapter->curbssparams.ssid_len); |
67 | 67 | ||
68 | adapter->connect_status = LIBERTAS_DISCONNECTED; | 68 | adapter->connect_status = LBS_DISCONNECTED; |
69 | 69 | ||
70 | /* Clear out associated SSID and BSSID since connection is | 70 | /* Clear out associated SSID and BSSID since connection is |
71 | * no longer valid. | 71 | * no longer valid. |
@@ -77,7 +77,7 @@ void libertas_mac_event_disconnected(wlan_private * priv) | |||
77 | if (adapter->psstate != PS_STATE_FULL_POWER) { | 77 | if (adapter->psstate != PS_STATE_FULL_POWER) { |
78 | /* make firmware to exit PS mode */ | 78 | /* make firmware to exit PS mode */ |
79 | lbs_deb_cmd("disconnected, so exit PS mode\n"); | 79 | lbs_deb_cmd("disconnected, so exit PS mode\n"); |
80 | libertas_ps_wakeup(priv, 0); | 80 | lbs_ps_wakeup(priv, 0); |
81 | } | 81 | } |
82 | lbs_deb_leave(LBS_DEB_CMD); | 82 | lbs_deb_leave(LBS_DEB_CMD); |
83 | } | 83 | } |
@@ -85,11 +85,11 @@ void libertas_mac_event_disconnected(wlan_private * priv) | |||
85 | /** | 85 | /** |
86 | * @brief This function handles MIC failure event. | 86 | * @brief This function handles MIC failure event. |
87 | * | 87 | * |
88 | * @param priv A pointer to wlan_private structure | 88 | * @param priv A pointer to lbs_private structure |
89 | * @para event the event id | 89 | * @para event the event id |
90 | * @return n/a | 90 | * @return n/a |
91 | */ | 91 | */ |
92 | static void handle_mic_failureevent(wlan_private * priv, u32 event) | 92 | static void handle_mic_failureevent(lbs_private * priv, u32 event) |
93 | { | 93 | { |
94 | char buf[50]; | 94 | char buf[50]; |
95 | 95 | ||
@@ -104,15 +104,15 @@ static void handle_mic_failureevent(wlan_private * priv, u32 event) | |||
104 | strcat(buf, "multicast "); | 104 | strcat(buf, "multicast "); |
105 | } | 105 | } |
106 | 106 | ||
107 | libertas_send_iwevcustom_event(priv, buf); | 107 | lbs_send_iwevcustom_event(priv, buf); |
108 | lbs_deb_leave(LBS_DEB_CMD); | 108 | lbs_deb_leave(LBS_DEB_CMD); |
109 | } | 109 | } |
110 | 110 | ||
111 | static int wlan_ret_reg_access(wlan_private * priv, | 111 | static int lbs_ret_reg_access(lbs_private * priv, |
112 | u16 type, struct cmd_ds_command *resp) | 112 | u16 type, struct cmd_ds_command *resp) |
113 | { | 113 | { |
114 | int ret = 0; | 114 | int ret = 0; |
115 | wlan_adapter *adapter = priv->adapter; | 115 | lbs_adapter *adapter = priv->adapter; |
116 | 116 | ||
117 | lbs_deb_enter(LBS_DEB_CMD); | 117 | lbs_deb_enter(LBS_DEB_CMD); |
118 | 118 | ||
@@ -152,12 +152,12 @@ static int wlan_ret_reg_access(wlan_private * priv, | |||
152 | return ret; | 152 | return ret; |
153 | } | 153 | } |
154 | 154 | ||
155 | static int wlan_ret_get_hw_spec(wlan_private * priv, | 155 | static int lbs_ret_get_hw_spec(lbs_private * priv, |
156 | struct cmd_ds_command *resp) | 156 | struct cmd_ds_command *resp) |
157 | { | 157 | { |
158 | u32 i; | 158 | u32 i; |
159 | struct cmd_ds_get_hw_spec *hwspec = &resp->params.hwspec; | 159 | struct cmd_ds_get_hw_spec *hwspec = &resp->params.hwspec; |
160 | wlan_adapter *adapter = priv->adapter; | 160 | lbs_adapter *adapter = priv->adapter; |
161 | int ret = 0; | 161 | int ret = 0; |
162 | DECLARE_MAC_BUF(mac); | 162 | DECLARE_MAC_BUF(mac); |
163 | 163 | ||
@@ -183,7 +183,7 @@ static int wlan_ret_get_hw_spec(wlan_private * priv, | |||
183 | 183 | ||
184 | for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) { | 184 | for (i = 0; i < MRVDRV_MAX_REGION_CODE; i++) { |
185 | /* use the region code to search for the index */ | 185 | /* use the region code to search for the index */ |
186 | if (adapter->regioncode == libertas_region_code_to_index[i]) { | 186 | if (adapter->regioncode == lbs_region_code_to_index[i]) { |
187 | break; | 187 | break; |
188 | } | 188 | } |
189 | } | 189 | } |
@@ -201,12 +201,12 @@ static int wlan_ret_get_hw_spec(wlan_private * priv, | |||
201 | if (priv->mesh_dev) | 201 | if (priv->mesh_dev) |
202 | memcpy(priv->mesh_dev->dev_addr, adapter->current_addr, ETH_ALEN); | 202 | memcpy(priv->mesh_dev->dev_addr, adapter->current_addr, ETH_ALEN); |
203 | 203 | ||
204 | if (libertas_set_regiontable(priv, adapter->regioncode, 0)) { | 204 | if (lbs_set_regiontable(priv, adapter->regioncode, 0)) { |
205 | ret = -1; | 205 | ret = -1; |
206 | goto done; | 206 | goto done; |
207 | } | 207 | } |
208 | 208 | ||
209 | if (libertas_set_universaltable(priv, 0)) { | 209 | if (lbs_set_universaltable(priv, 0)) { |
210 | ret = -1; | 210 | ret = -1; |
211 | goto done; | 211 | goto done; |
212 | } | 212 | } |
@@ -216,11 +216,11 @@ done: | |||
216 | return ret; | 216 | return ret; |
217 | } | 217 | } |
218 | 218 | ||
219 | static int wlan_ret_802_11_sleep_params(wlan_private * priv, | 219 | static int lbs_ret_802_11_sleep_params(lbs_private * priv, |
220 | struct cmd_ds_command *resp) | 220 | struct cmd_ds_command *resp) |
221 | { | 221 | { |
222 | struct cmd_ds_802_11_sleep_params *sp = &resp->params.sleep_params; | 222 | struct cmd_ds_802_11_sleep_params *sp = &resp->params.sleep_params; |
223 | wlan_adapter *adapter = priv->adapter; | 223 | lbs_adapter *adapter = priv->adapter; |
224 | 224 | ||
225 | lbs_deb_enter(LBS_DEB_CMD); | 225 | lbs_deb_enter(LBS_DEB_CMD); |
226 | 226 | ||
@@ -240,14 +240,14 @@ static int wlan_ret_802_11_sleep_params(wlan_private * priv, | |||
240 | return 0; | 240 | return 0; |
241 | } | 241 | } |
242 | 242 | ||
243 | static int wlan_ret_802_11_stat(wlan_private * priv, | 243 | static int lbs_ret_802_11_stat(lbs_private * priv, |
244 | struct cmd_ds_command *resp) | 244 | struct cmd_ds_command *resp) |
245 | { | 245 | { |
246 | lbs_deb_enter(LBS_DEB_CMD); | 246 | lbs_deb_enter(LBS_DEB_CMD); |
247 | /* currently adapter->wlan802_11Stat is unused | 247 | /* currently adapter->wlan802_11Stat is unused |
248 | 248 | ||
249 | struct cmd_ds_802_11_get_stat *p11Stat = &resp->params.gstat; | 249 | struct cmd_ds_802_11_get_stat *p11Stat = &resp->params.gstat; |
250 | wlan_adapter *adapter = priv->adapter; | 250 | lbs_adapter *adapter = priv->adapter; |
251 | 251 | ||
252 | // TODO Convert it to Big endian befor copy | 252 | // TODO Convert it to Big endian befor copy |
253 | memcpy(&adapter->wlan802_11Stat, | 253 | memcpy(&adapter->wlan802_11Stat, |
@@ -257,7 +257,7 @@ static int wlan_ret_802_11_stat(wlan_private * priv, | |||
257 | return 0; | 257 | return 0; |
258 | } | 258 | } |
259 | 259 | ||
260 | static int wlan_ret_802_11_snmp_mib(wlan_private * priv, | 260 | static int lbs_ret_802_11_snmp_mib(lbs_private * priv, |
261 | struct cmd_ds_command *resp) | 261 | struct cmd_ds_command *resp) |
262 | { | 262 | { |
263 | struct cmd_ds_802_11_snmp_mib *smib = &resp->params.smib; | 263 | struct cmd_ds_802_11_snmp_mib *smib = &resp->params.smib; |
@@ -299,12 +299,12 @@ static int wlan_ret_802_11_snmp_mib(wlan_private * priv, | |||
299 | return 0; | 299 | return 0; |
300 | } | 300 | } |
301 | 301 | ||
302 | static int wlan_ret_802_11_key_material(wlan_private * priv, | 302 | static int lbs_ret_802_11_key_material(lbs_private * priv, |
303 | struct cmd_ds_command *resp) | 303 | struct cmd_ds_command *resp) |
304 | { | 304 | { |
305 | struct cmd_ds_802_11_key_material *pkeymaterial = | 305 | struct cmd_ds_802_11_key_material *pkeymaterial = |
306 | &resp->params.keymaterial; | 306 | &resp->params.keymaterial; |
307 | wlan_adapter *adapter = priv->adapter; | 307 | lbs_adapter *adapter = priv->adapter; |
308 | u16 action = le16_to_cpu(pkeymaterial->action); | 308 | u16 action = le16_to_cpu(pkeymaterial->action); |
309 | 309 | ||
310 | lbs_deb_enter(LBS_DEB_CMD); | 310 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -355,11 +355,11 @@ static int wlan_ret_802_11_key_material(wlan_private * priv, | |||
355 | return 0; | 355 | return 0; |
356 | } | 356 | } |
357 | 357 | ||
358 | static int wlan_ret_802_11_mac_address(wlan_private * priv, | 358 | static int lbs_ret_802_11_mac_address(lbs_private * priv, |
359 | struct cmd_ds_command *resp) | 359 | struct cmd_ds_command *resp) |
360 | { | 360 | { |
361 | struct cmd_ds_802_11_mac_address *macadd = &resp->params.macadd; | 361 | struct cmd_ds_802_11_mac_address *macadd = &resp->params.macadd; |
362 | wlan_adapter *adapter = priv->adapter; | 362 | lbs_adapter *adapter = priv->adapter; |
363 | 363 | ||
364 | lbs_deb_enter(LBS_DEB_CMD); | 364 | lbs_deb_enter(LBS_DEB_CMD); |
365 | 365 | ||
@@ -369,11 +369,11 @@ static int wlan_ret_802_11_mac_address(wlan_private * priv, | |||
369 | return 0; | 369 | return 0; |
370 | } | 370 | } |
371 | 371 | ||
372 | static int wlan_ret_802_11_rf_tx_power(wlan_private * priv, | 372 | static int lbs_ret_802_11_rf_tx_power(lbs_private * priv, |
373 | struct cmd_ds_command *resp) | 373 | struct cmd_ds_command *resp) |
374 | { | 374 | { |
375 | struct cmd_ds_802_11_rf_tx_power *rtp = &resp->params.txp; | 375 | struct cmd_ds_802_11_rf_tx_power *rtp = &resp->params.txp; |
376 | wlan_adapter *adapter = priv->adapter; | 376 | lbs_adapter *adapter = priv->adapter; |
377 | 377 | ||
378 | lbs_deb_enter(LBS_DEB_CMD); | 378 | lbs_deb_enter(LBS_DEB_CMD); |
379 | 379 | ||
@@ -385,11 +385,11 @@ static int wlan_ret_802_11_rf_tx_power(wlan_private * priv, | |||
385 | return 0; | 385 | return 0; |
386 | } | 386 | } |
387 | 387 | ||
388 | static int wlan_ret_802_11_rate_adapt_rateset(wlan_private * priv, | 388 | static int lbs_ret_802_11_rate_adapt_rateset(lbs_private * priv, |
389 | struct cmd_ds_command *resp) | 389 | struct cmd_ds_command *resp) |
390 | { | 390 | { |
391 | struct cmd_ds_802_11_rate_adapt_rateset *rates = &resp->params.rateset; | 391 | struct cmd_ds_802_11_rate_adapt_rateset *rates = &resp->params.rateset; |
392 | wlan_adapter *adapter = priv->adapter; | 392 | lbs_adapter *adapter = priv->adapter; |
393 | 393 | ||
394 | lbs_deb_enter(LBS_DEB_CMD); | 394 | lbs_deb_enter(LBS_DEB_CMD); |
395 | 395 | ||
@@ -402,11 +402,11 @@ static int wlan_ret_802_11_rate_adapt_rateset(wlan_private * priv, | |||
402 | return 0; | 402 | return 0; |
403 | } | 403 | } |
404 | 404 | ||
405 | static int wlan_ret_802_11_data_rate(wlan_private * priv, | 405 | static int lbs_ret_802_11_data_rate(lbs_private * priv, |
406 | struct cmd_ds_command *resp) | 406 | struct cmd_ds_command *resp) |
407 | { | 407 | { |
408 | struct cmd_ds_802_11_data_rate *pdatarate = &resp->params.drate; | 408 | struct cmd_ds_802_11_data_rate *pdatarate = &resp->params.drate; |
409 | wlan_adapter *adapter = priv->adapter; | 409 | lbs_adapter *adapter = priv->adapter; |
410 | 410 | ||
411 | lbs_deb_enter(LBS_DEB_CMD); | 411 | lbs_deb_enter(LBS_DEB_CMD); |
412 | 412 | ||
@@ -416,18 +416,18 @@ static int wlan_ret_802_11_data_rate(wlan_private * priv, | |||
416 | /* FIXME: get actual rates FW can do if this command actually returns | 416 | /* FIXME: get actual rates FW can do if this command actually returns |
417 | * all data rates supported. | 417 | * all data rates supported. |
418 | */ | 418 | */ |
419 | adapter->cur_rate = libertas_fw_index_to_data_rate(pdatarate->rates[0]); | 419 | adapter->cur_rate = lbs_fw_index_to_data_rate(pdatarate->rates[0]); |
420 | lbs_deb_cmd("DATA_RATE: current rate 0x%02x\n", adapter->cur_rate); | 420 | lbs_deb_cmd("DATA_RATE: current rate 0x%02x\n", adapter->cur_rate); |
421 | 421 | ||
422 | lbs_deb_leave(LBS_DEB_CMD); | 422 | lbs_deb_leave(LBS_DEB_CMD); |
423 | return 0; | 423 | return 0; |
424 | } | 424 | } |
425 | 425 | ||
426 | static int wlan_ret_802_11_rf_channel(wlan_private * priv, | 426 | static int lbs_ret_802_11_rf_channel(lbs_private * priv, |
427 | struct cmd_ds_command *resp) | 427 | struct cmd_ds_command *resp) |
428 | { | 428 | { |
429 | struct cmd_ds_802_11_rf_channel *rfchannel = &resp->params.rfchannel; | 429 | struct cmd_ds_802_11_rf_channel *rfchannel = &resp->params.rfchannel; |
430 | wlan_adapter *adapter = priv->adapter; | 430 | lbs_adapter *adapter = priv->adapter; |
431 | u16 action = le16_to_cpu(rfchannel->action); | 431 | u16 action = le16_to_cpu(rfchannel->action); |
432 | u16 newchannel = le16_to_cpu(rfchannel->currentchannel); | 432 | u16 newchannel = le16_to_cpu(rfchannel->currentchannel); |
433 | 433 | ||
@@ -446,11 +446,11 @@ static int wlan_ret_802_11_rf_channel(wlan_private * priv, | |||
446 | return 0; | 446 | return 0; |
447 | } | 447 | } |
448 | 448 | ||
449 | static int wlan_ret_802_11_rssi(wlan_private * priv, | 449 | static int lbs_ret_802_11_rssi(lbs_private * priv, |
450 | struct cmd_ds_command *resp) | 450 | struct cmd_ds_command *resp) |
451 | { | 451 | { |
452 | struct cmd_ds_802_11_rssi_rsp *rssirsp = &resp->params.rssirsp; | 452 | struct cmd_ds_802_11_rssi_rsp *rssirsp = &resp->params.rssirsp; |
453 | wlan_adapter *adapter = priv->adapter; | 453 | lbs_adapter *adapter = priv->adapter; |
454 | 454 | ||
455 | lbs_deb_enter(LBS_DEB_CMD); | 455 | lbs_deb_enter(LBS_DEB_CMD); |
456 | 456 | ||
@@ -477,12 +477,12 @@ static int wlan_ret_802_11_rssi(wlan_private * priv, | |||
477 | return 0; | 477 | return 0; |
478 | } | 478 | } |
479 | 479 | ||
480 | static int wlan_ret_802_11_eeprom_access(wlan_private * priv, | 480 | static int lbs_ret_802_11_eeprom_access(lbs_private * priv, |
481 | struct cmd_ds_command *resp) | 481 | struct cmd_ds_command *resp) |
482 | { | 482 | { |
483 | wlan_adapter *adapter = priv->adapter; | 483 | lbs_adapter *adapter = priv->adapter; |
484 | struct wlan_ioctl_regrdwr *pbuf; | 484 | struct lbs_ioctl_regrdwr *pbuf; |
485 | pbuf = (struct wlan_ioctl_regrdwr *) adapter->prdeeprom; | 485 | pbuf = (struct lbs_ioctl_regrdwr *) adapter->prdeeprom; |
486 | 486 | ||
487 | lbs_deb_enter_args(LBS_DEB_CMD, "len %d", | 487 | lbs_deb_enter_args(LBS_DEB_CMD, "len %d", |
488 | le16_to_cpu(resp->params.rdeeprom.bytecount)); | 488 | le16_to_cpu(resp->params.rdeeprom.bytecount)); |
@@ -503,11 +503,11 @@ static int wlan_ret_802_11_eeprom_access(wlan_private * priv, | |||
503 | return 0; | 503 | return 0; |
504 | } | 504 | } |
505 | 505 | ||
506 | static int wlan_ret_get_log(wlan_private * priv, | 506 | static int lbs_ret_get_log(lbs_private * priv, |
507 | struct cmd_ds_command *resp) | 507 | struct cmd_ds_command *resp) |
508 | { | 508 | { |
509 | struct cmd_ds_802_11_get_log *logmessage = &resp->params.glog; | 509 | struct cmd_ds_802_11_get_log *logmessage = &resp->params.glog; |
510 | wlan_adapter *adapter = priv->adapter; | 510 | lbs_adapter *adapter = priv->adapter; |
511 | 511 | ||
512 | lbs_deb_enter(LBS_DEB_CMD); | 512 | lbs_deb_enter(LBS_DEB_CMD); |
513 | 513 | ||
@@ -518,11 +518,11 @@ static int wlan_ret_get_log(wlan_private * priv, | |||
518 | return 0; | 518 | return 0; |
519 | } | 519 | } |
520 | 520 | ||
521 | static int libertas_ret_802_11_enable_rsn(wlan_private * priv, | 521 | static int lbs_ret_802_11_enable_rsn(lbs_private * priv, |
522 | struct cmd_ds_command *resp) | 522 | struct cmd_ds_command *resp) |
523 | { | 523 | { |
524 | struct cmd_ds_802_11_enable_rsn *enable_rsn = &resp->params.enbrsn; | 524 | struct cmd_ds_802_11_enable_rsn *enable_rsn = &resp->params.enbrsn; |
525 | wlan_adapter *adapter = priv->adapter; | 525 | lbs_adapter *adapter = priv->adapter; |
526 | u32 * pdata_buf = adapter->cur_cmd->pdata_buf; | 526 | u32 * pdata_buf = adapter->cur_cmd->pdata_buf; |
527 | 527 | ||
528 | lbs_deb_enter(LBS_DEB_CMD); | 528 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -538,11 +538,11 @@ static int libertas_ret_802_11_enable_rsn(wlan_private * priv, | |||
538 | 538 | ||
539 | static inline int handle_cmd_response(u16 respcmd, | 539 | static inline int handle_cmd_response(u16 respcmd, |
540 | struct cmd_ds_command *resp, | 540 | struct cmd_ds_command *resp, |
541 | wlan_private *priv) | 541 | lbs_private *priv) |
542 | { | 542 | { |
543 | int ret = 0; | 543 | int ret = 0; |
544 | unsigned long flags; | 544 | unsigned long flags; |
545 | wlan_adapter *adapter = priv->adapter; | 545 | lbs_adapter *adapter = priv->adapter; |
546 | 546 | ||
547 | lbs_deb_enter(LBS_DEB_HOST); | 547 | lbs_deb_enter(LBS_DEB_HOST); |
548 | 548 | ||
@@ -550,47 +550,47 @@ static inline int handle_cmd_response(u16 respcmd, | |||
550 | case CMD_RET(CMD_MAC_REG_ACCESS): | 550 | case CMD_RET(CMD_MAC_REG_ACCESS): |
551 | case CMD_RET(CMD_BBP_REG_ACCESS): | 551 | case CMD_RET(CMD_BBP_REG_ACCESS): |
552 | case CMD_RET(CMD_RF_REG_ACCESS): | 552 | case CMD_RET(CMD_RF_REG_ACCESS): |
553 | ret = wlan_ret_reg_access(priv, respcmd, resp); | 553 | ret = lbs_ret_reg_access(priv, respcmd, resp); |
554 | break; | 554 | break; |
555 | 555 | ||
556 | case CMD_RET(CMD_GET_HW_SPEC): | 556 | case CMD_RET(CMD_GET_HW_SPEC): |
557 | ret = wlan_ret_get_hw_spec(priv, resp); | 557 | ret = lbs_ret_get_hw_spec(priv, resp); |
558 | break; | 558 | break; |
559 | 559 | ||
560 | case CMD_RET(CMD_802_11_SCAN): | 560 | case CMD_RET(CMD_802_11_SCAN): |
561 | ret = libertas_ret_80211_scan(priv, resp); | 561 | ret = lbs_ret_80211_scan(priv, resp); |
562 | break; | 562 | break; |
563 | 563 | ||
564 | case CMD_RET(CMD_802_11_GET_LOG): | 564 | case CMD_RET(CMD_802_11_GET_LOG): |
565 | ret = wlan_ret_get_log(priv, resp); | 565 | ret = lbs_ret_get_log(priv, resp); |
566 | break; | 566 | break; |
567 | 567 | ||
568 | case CMD_RET_802_11_ASSOCIATE: | 568 | case CMD_RET_802_11_ASSOCIATE: |
569 | case CMD_RET(CMD_802_11_ASSOCIATE): | 569 | case CMD_RET(CMD_802_11_ASSOCIATE): |
570 | case CMD_RET(CMD_802_11_REASSOCIATE): | 570 | case CMD_RET(CMD_802_11_REASSOCIATE): |
571 | ret = libertas_ret_80211_associate(priv, resp); | 571 | ret = lbs_ret_80211_associate(priv, resp); |
572 | break; | 572 | break; |
573 | 573 | ||
574 | case CMD_RET(CMD_802_11_DISASSOCIATE): | 574 | case CMD_RET(CMD_802_11_DISASSOCIATE): |
575 | case CMD_RET(CMD_802_11_DEAUTHENTICATE): | 575 | case CMD_RET(CMD_802_11_DEAUTHENTICATE): |
576 | ret = libertas_ret_80211_disassociate(priv, resp); | 576 | ret = lbs_ret_80211_disassociate(priv, resp); |
577 | break; | 577 | break; |
578 | 578 | ||
579 | case CMD_RET(CMD_802_11_AD_HOC_START): | 579 | case CMD_RET(CMD_802_11_AD_HOC_START): |
580 | case CMD_RET(CMD_802_11_AD_HOC_JOIN): | 580 | case CMD_RET(CMD_802_11_AD_HOC_JOIN): |
581 | ret = libertas_ret_80211_ad_hoc_start(priv, resp); | 581 | ret = lbs_ret_80211_ad_hoc_start(priv, resp); |
582 | break; | 582 | break; |
583 | 583 | ||
584 | case CMD_RET(CMD_802_11_GET_STAT): | 584 | case CMD_RET(CMD_802_11_GET_STAT): |
585 | ret = wlan_ret_802_11_stat(priv, resp); | 585 | ret = lbs_ret_802_11_stat(priv, resp); |
586 | break; | 586 | break; |
587 | 587 | ||
588 | case CMD_RET(CMD_802_11_SNMP_MIB): | 588 | case CMD_RET(CMD_802_11_SNMP_MIB): |
589 | ret = wlan_ret_802_11_snmp_mib(priv, resp); | 589 | ret = lbs_ret_802_11_snmp_mib(priv, resp); |
590 | break; | 590 | break; |
591 | 591 | ||
592 | case CMD_RET(CMD_802_11_RF_TX_POWER): | 592 | case CMD_RET(CMD_802_11_RF_TX_POWER): |
593 | ret = wlan_ret_802_11_rf_tx_power(priv, resp); | 593 | ret = lbs_ret_802_11_rf_tx_power(priv, resp); |
594 | break; | 594 | break; |
595 | 595 | ||
596 | case CMD_RET(CMD_802_11_SET_AFC): | 596 | case CMD_RET(CMD_802_11_SET_AFC): |
@@ -612,45 +612,45 @@ static inline int handle_cmd_response(u16 respcmd, | |||
612 | break; | 612 | break; |
613 | 613 | ||
614 | case CMD_RET(CMD_802_11_ENABLE_RSN): | 614 | case CMD_RET(CMD_802_11_ENABLE_RSN): |
615 | ret = libertas_ret_802_11_enable_rsn(priv, resp); | 615 | ret = lbs_ret_802_11_enable_rsn(priv, resp); |
616 | break; | 616 | break; |
617 | 617 | ||
618 | case CMD_RET(CMD_802_11_DATA_RATE): | 618 | case CMD_RET(CMD_802_11_DATA_RATE): |
619 | ret = wlan_ret_802_11_data_rate(priv, resp); | 619 | ret = lbs_ret_802_11_data_rate(priv, resp); |
620 | break; | 620 | break; |
621 | case CMD_RET(CMD_802_11_RATE_ADAPT_RATESET): | 621 | case CMD_RET(CMD_802_11_RATE_ADAPT_RATESET): |
622 | ret = wlan_ret_802_11_rate_adapt_rateset(priv, resp); | 622 | ret = lbs_ret_802_11_rate_adapt_rateset(priv, resp); |
623 | break; | 623 | break; |
624 | case CMD_RET(CMD_802_11_RF_CHANNEL): | 624 | case CMD_RET(CMD_802_11_RF_CHANNEL): |
625 | ret = wlan_ret_802_11_rf_channel(priv, resp); | 625 | ret = lbs_ret_802_11_rf_channel(priv, resp); |
626 | break; | 626 | break; |
627 | 627 | ||
628 | case CMD_RET(CMD_802_11_RSSI): | 628 | case CMD_RET(CMD_802_11_RSSI): |
629 | ret = wlan_ret_802_11_rssi(priv, resp); | 629 | ret = lbs_ret_802_11_rssi(priv, resp); |
630 | break; | 630 | break; |
631 | 631 | ||
632 | case CMD_RET(CMD_802_11_MAC_ADDRESS): | 632 | case CMD_RET(CMD_802_11_MAC_ADDRESS): |
633 | ret = wlan_ret_802_11_mac_address(priv, resp); | 633 | ret = lbs_ret_802_11_mac_address(priv, resp); |
634 | break; | 634 | break; |
635 | 635 | ||
636 | case CMD_RET(CMD_802_11_AD_HOC_STOP): | 636 | case CMD_RET(CMD_802_11_AD_HOC_STOP): |
637 | ret = libertas_ret_80211_ad_hoc_stop(priv, resp); | 637 | ret = lbs_ret_80211_ad_hoc_stop(priv, resp); |
638 | break; | 638 | break; |
639 | 639 | ||
640 | case CMD_RET(CMD_802_11_KEY_MATERIAL): | 640 | case CMD_RET(CMD_802_11_KEY_MATERIAL): |
641 | ret = wlan_ret_802_11_key_material(priv, resp); | 641 | ret = lbs_ret_802_11_key_material(priv, resp); |
642 | break; | 642 | break; |
643 | 643 | ||
644 | case CMD_RET(CMD_802_11_EEPROM_ACCESS): | 644 | case CMD_RET(CMD_802_11_EEPROM_ACCESS): |
645 | ret = wlan_ret_802_11_eeprom_access(priv, resp); | 645 | ret = lbs_ret_802_11_eeprom_access(priv, resp); |
646 | break; | 646 | break; |
647 | 647 | ||
648 | case CMD_RET(CMD_802_11D_DOMAIN_INFO): | 648 | case CMD_RET(CMD_802_11D_DOMAIN_INFO): |
649 | ret = libertas_ret_802_11d_domain_info(priv, resp); | 649 | ret = lbs_ret_802_11d_domain_info(priv, resp); |
650 | break; | 650 | break; |
651 | 651 | ||
652 | case CMD_RET(CMD_802_11_SLEEP_PARAMS): | 652 | case CMD_RET(CMD_802_11_SLEEP_PARAMS): |
653 | ret = wlan_ret_802_11_sleep_params(priv, resp); | 653 | ret = lbs_ret_802_11_sleep_params(priv, resp); |
654 | break; | 654 | break; |
655 | case CMD_RET(CMD_802_11_INACTIVITY_TIMEOUT): | 655 | case CMD_RET(CMD_802_11_INACTIVITY_TIMEOUT): |
656 | spin_lock_irqsave(&adapter->driver_lock, flags); | 656 | spin_lock_irqsave(&adapter->driver_lock, flags); |
@@ -713,11 +713,11 @@ static inline int handle_cmd_response(u16 respcmd, | |||
713 | return ret; | 713 | return ret; |
714 | } | 714 | } |
715 | 715 | ||
716 | int libertas_process_rx_command(wlan_private * priv) | 716 | int lbs_process_rx_command(lbs_private * priv) |
717 | { | 717 | { |
718 | u16 respcmd; | 718 | u16 respcmd; |
719 | struct cmd_ds_command *resp; | 719 | struct cmd_ds_command *resp; |
720 | wlan_adapter *adapter = priv->adapter; | 720 | lbs_adapter *adapter = priv->adapter; |
721 | int ret = 0; | 721 | int ret = 0; |
722 | ulong flags; | 722 | ulong flags; |
723 | u16 result; | 723 | u16 result; |
@@ -749,7 +749,7 @@ int libertas_process_rx_command(wlan_private * priv) | |||
749 | if (!(respcmd & 0x8000)) { | 749 | if (!(respcmd & 0x8000)) { |
750 | lbs_deb_host("invalid response!\n"); | 750 | lbs_deb_host("invalid response!\n"); |
751 | adapter->cur_cmd_retcode = -1; | 751 | adapter->cur_cmd_retcode = -1; |
752 | __libertas_cleanup_and_insert_cmd(priv, adapter->cur_cmd); | 752 | __lbs_cleanup_and_insert_cmd(priv, adapter->cur_cmd); |
753 | adapter->nr_cmd_pending--; | 753 | adapter->nr_cmd_pending--; |
754 | adapter->cur_cmd = NULL; | 754 | adapter->cur_cmd = NULL; |
755 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 755 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
@@ -774,27 +774,27 @@ int libertas_process_rx_command(wlan_private * priv) | |||
774 | /* | 774 | /* |
775 | * We should not re-try enter-ps command in | 775 | * We should not re-try enter-ps command in |
776 | * ad-hoc mode. It takes place in | 776 | * ad-hoc mode. It takes place in |
777 | * libertas_execute_next_command(). | 777 | * lbs_execute_next_command(). |
778 | */ | 778 | */ |
779 | if (adapter->mode == IW_MODE_ADHOC && | 779 | if (adapter->mode == IW_MODE_ADHOC && |
780 | action == CMD_SUBCMD_ENTER_PS) | 780 | action == CMD_SUBCMD_ENTER_PS) |
781 | adapter->psmode = WLAN802_11POWERMODECAM; | 781 | adapter->psmode = LBS802_11POWERMODECAM; |
782 | } else if (action == CMD_SUBCMD_ENTER_PS) { | 782 | } else if (action == CMD_SUBCMD_ENTER_PS) { |
783 | adapter->needtowakeup = 0; | 783 | adapter->needtowakeup = 0; |
784 | adapter->psstate = PS_STATE_AWAKE; | 784 | adapter->psstate = PS_STATE_AWAKE; |
785 | 785 | ||
786 | lbs_deb_host("CMD_RESP: ENTER_PS command response\n"); | 786 | lbs_deb_host("CMD_RESP: ENTER_PS command response\n"); |
787 | if (adapter->connect_status != LIBERTAS_CONNECTED) { | 787 | if (adapter->connect_status != LBS_CONNECTED) { |
788 | /* | 788 | /* |
789 | * When Deauth Event received before Enter_PS command | 789 | * When Deauth Event received before Enter_PS command |
790 | * response, We need to wake up the firmware. | 790 | * response, We need to wake up the firmware. |
791 | */ | 791 | */ |
792 | lbs_deb_host( | 792 | lbs_deb_host( |
793 | "disconnected, invoking libertas_ps_wakeup\n"); | 793 | "disconnected, invoking lbs_ps_wakeup\n"); |
794 | 794 | ||
795 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 795 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
796 | mutex_unlock(&adapter->lock); | 796 | mutex_unlock(&adapter->lock); |
797 | libertas_ps_wakeup(priv, 0); | 797 | lbs_ps_wakeup(priv, 0); |
798 | mutex_lock(&adapter->lock); | 798 | mutex_lock(&adapter->lock); |
799 | spin_lock_irqsave(&adapter->driver_lock, flags); | 799 | spin_lock_irqsave(&adapter->driver_lock, flags); |
800 | } | 800 | } |
@@ -806,7 +806,7 @@ int libertas_process_rx_command(wlan_private * priv) | |||
806 | lbs_deb_host("CMD_RESP: PS action 0x%X\n", action); | 806 | lbs_deb_host("CMD_RESP: PS action 0x%X\n", action); |
807 | } | 807 | } |
808 | 808 | ||
809 | __libertas_cleanup_and_insert_cmd(priv, adapter->cur_cmd); | 809 | __lbs_cleanup_and_insert_cmd(priv, adapter->cur_cmd); |
810 | adapter->nr_cmd_pending--; | 810 | adapter->nr_cmd_pending--; |
811 | adapter->cur_cmd = NULL; | 811 | adapter->cur_cmd = NULL; |
812 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 812 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
@@ -837,7 +837,7 @@ int libertas_process_rx_command(wlan_private * priv) | |||
837 | 837 | ||
838 | } | 838 | } |
839 | 839 | ||
840 | __libertas_cleanup_and_insert_cmd(priv, adapter->cur_cmd); | 840 | __lbs_cleanup_and_insert_cmd(priv, adapter->cur_cmd); |
841 | adapter->nr_cmd_pending--; | 841 | adapter->nr_cmd_pending--; |
842 | adapter->cur_cmd = NULL; | 842 | adapter->cur_cmd = NULL; |
843 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 843 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
@@ -853,7 +853,7 @@ int libertas_process_rx_command(wlan_private * priv) | |||
853 | spin_lock_irqsave(&adapter->driver_lock, flags); | 853 | spin_lock_irqsave(&adapter->driver_lock, flags); |
854 | if (adapter->cur_cmd) { | 854 | if (adapter->cur_cmd) { |
855 | /* Clean up and Put current command back to cmdfreeq */ | 855 | /* Clean up and Put current command back to cmdfreeq */ |
856 | __libertas_cleanup_and_insert_cmd(priv, adapter->cur_cmd); | 856 | __lbs_cleanup_and_insert_cmd(priv, adapter->cur_cmd); |
857 | adapter->nr_cmd_pending--; | 857 | adapter->nr_cmd_pending--; |
858 | WARN_ON(adapter->nr_cmd_pending > 128); | 858 | WARN_ON(adapter->nr_cmd_pending > 128); |
859 | adapter->cur_cmd = NULL; | 859 | adapter->cur_cmd = NULL; |
@@ -866,10 +866,10 @@ done: | |||
866 | return ret; | 866 | return ret; |
867 | } | 867 | } |
868 | 868 | ||
869 | int libertas_process_event(wlan_private * priv) | 869 | int lbs_process_event(lbs_private * priv) |
870 | { | 870 | { |
871 | int ret = 0; | 871 | int ret = 0; |
872 | wlan_adapter *adapter = priv->adapter; | 872 | lbs_adapter *adapter = priv->adapter; |
873 | u32 eventcause; | 873 | u32 eventcause; |
874 | 874 | ||
875 | lbs_deb_enter(LBS_DEB_CMD); | 875 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -887,17 +887,17 @@ int libertas_process_event(wlan_private * priv) | |||
887 | 887 | ||
888 | case MACREG_INT_CODE_DEAUTHENTICATED: | 888 | case MACREG_INT_CODE_DEAUTHENTICATED: |
889 | lbs_deb_cmd("EVENT: deauthenticated\n"); | 889 | lbs_deb_cmd("EVENT: deauthenticated\n"); |
890 | libertas_mac_event_disconnected(priv); | 890 | lbs_mac_event_disconnected(priv); |
891 | break; | 891 | break; |
892 | 892 | ||
893 | case MACREG_INT_CODE_DISASSOCIATED: | 893 | case MACREG_INT_CODE_DISASSOCIATED: |
894 | lbs_deb_cmd("EVENT: disassociated\n"); | 894 | lbs_deb_cmd("EVENT: disassociated\n"); |
895 | libertas_mac_event_disconnected(priv); | 895 | lbs_mac_event_disconnected(priv); |
896 | break; | 896 | break; |
897 | 897 | ||
898 | case MACREG_INT_CODE_LINK_LOSE_NO_SCAN: | 898 | case MACREG_INT_CODE_LINK_LOSE_NO_SCAN: |
899 | lbs_deb_cmd("EVENT: link lost\n"); | 899 | lbs_deb_cmd("EVENT: link lost\n"); |
900 | libertas_mac_event_disconnected(priv); | 900 | lbs_mac_event_disconnected(priv); |
901 | break; | 901 | break; |
902 | 902 | ||
903 | case MACREG_INT_CODE_PS_SLEEP: | 903 | case MACREG_INT_CODE_PS_SLEEP: |
@@ -911,7 +911,7 @@ int libertas_process_event(wlan_private * priv) | |||
911 | } | 911 | } |
912 | adapter->psstate = PS_STATE_PRE_SLEEP; | 912 | adapter->psstate = PS_STATE_PRE_SLEEP; |
913 | 913 | ||
914 | libertas_ps_confirm_sleep(priv, (u16) adapter->psmode); | 914 | lbs_ps_confirm_sleep(priv, (u16) adapter->psmode); |
915 | 915 | ||
916 | break; | 916 | break; |
917 | 917 | ||
@@ -932,10 +932,10 @@ int libertas_process_event(wlan_private * priv) | |||
932 | * wait for the command processing to finish | 932 | * wait for the command processing to finish |
933 | * before resuming sending | 933 | * before resuming sending |
934 | * adapter->needtowakeup will be set to FALSE | 934 | * adapter->needtowakeup will be set to FALSE |
935 | * in libertas_ps_wakeup() | 935 | * in lbs_ps_wakeup() |
936 | */ | 936 | */ |
937 | lbs_deb_cmd("waking up ...\n"); | 937 | lbs_deb_cmd("waking up ...\n"); |
938 | libertas_ps_wakeup(priv, 0); | 938 | lbs_ps_wakeup(priv, 0); |
939 | } | 939 | } |
940 | break; | 940 | break; |
941 | 941 | ||
@@ -979,7 +979,7 @@ int libertas_process_event(wlan_private * priv) | |||
979 | break; | 979 | break; |
980 | } | 980 | } |
981 | lbs_pr_info("EVENT: MESH_AUTO_STARTED\n"); | 981 | lbs_pr_info("EVENT: MESH_AUTO_STARTED\n"); |
982 | adapter->connect_status = LIBERTAS_CONNECTED; | 982 | adapter->connect_status = LBS_CONNECTED; |
983 | if (priv->mesh_open == 1) { | 983 | if (priv->mesh_open == 1) { |
984 | netif_wake_queue(priv->mesh_dev); | 984 | netif_wake_queue(priv->mesh_dev); |
985 | netif_carrier_on(priv->mesh_dev); | 985 | netif_carrier_on(priv->mesh_dev); |