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/cmd.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/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 274 |
1 files changed, 137 insertions, 137 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index be5cfd8402c7..5b2a1c7c5f05 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -37,7 +37,7 @@ static u8 is_command_allowed_in_ps(__le16 command) | |||
37 | return 0; | 37 | return 0; |
38 | } | 38 | } |
39 | 39 | ||
40 | static int wlan_cmd_hw_spec(wlan_private * priv, struct cmd_ds_command *cmd) | 40 | static int lbs_cmd_hw_spec(lbs_private * priv, struct cmd_ds_command *cmd) |
41 | { | 41 | { |
42 | struct cmd_ds_get_hw_spec *hwspec = &cmd->params.hwspec; | 42 | struct cmd_ds_get_hw_spec *hwspec = &cmd->params.hwspec; |
43 | 43 | ||
@@ -51,7 +51,7 @@ static int wlan_cmd_hw_spec(wlan_private * priv, struct cmd_ds_command *cmd) | |||
51 | return 0; | 51 | return 0; |
52 | } | 52 | } |
53 | 53 | ||
54 | static int wlan_cmd_802_11_ps_mode(wlan_private * priv, | 54 | static int lbs_cmd_802_11_ps_mode(lbs_private * priv, |
55 | struct cmd_ds_command *cmd, | 55 | struct cmd_ds_command *cmd, |
56 | u16 cmd_action) | 56 | u16 cmd_action) |
57 | { | 57 | { |
@@ -90,7 +90,7 @@ static int wlan_cmd_802_11_ps_mode(wlan_private * priv, | |||
90 | return 0; | 90 | return 0; |
91 | } | 91 | } |
92 | 92 | ||
93 | static int wlan_cmd_802_11_inactivity_timeout(wlan_private * priv, | 93 | static int lbs_cmd_802_11_inactivity_timeout(lbs_private * priv, |
94 | struct cmd_ds_command *cmd, | 94 | struct cmd_ds_command *cmd, |
95 | u16 cmd_action, void *pdata_buf) | 95 | u16 cmd_action, void *pdata_buf) |
96 | { | 96 | { |
@@ -114,11 +114,11 @@ static int wlan_cmd_802_11_inactivity_timeout(wlan_private * priv, | |||
114 | return 0; | 114 | return 0; |
115 | } | 115 | } |
116 | 116 | ||
117 | static int wlan_cmd_802_11_sleep_params(wlan_private * priv, | 117 | static int lbs_cmd_802_11_sleep_params(lbs_private * priv, |
118 | struct cmd_ds_command *cmd, | 118 | struct cmd_ds_command *cmd, |
119 | u16 cmd_action) | 119 | u16 cmd_action) |
120 | { | 120 | { |
121 | wlan_adapter *adapter = priv->adapter; | 121 | lbs_adapter *adapter = priv->adapter; |
122 | struct cmd_ds_802_11_sleep_params *sp = &cmd->params.sleep_params; | 122 | struct cmd_ds_802_11_sleep_params *sp = &cmd->params.sleep_params; |
123 | 123 | ||
124 | lbs_deb_enter(LBS_DEB_CMD); | 124 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -145,13 +145,13 @@ static int wlan_cmd_802_11_sleep_params(wlan_private * priv, | |||
145 | return 0; | 145 | return 0; |
146 | } | 146 | } |
147 | 147 | ||
148 | static int wlan_cmd_802_11_set_wep(wlan_private * priv, | 148 | static int lbs_cmd_802_11_set_wep(lbs_private * priv, |
149 | struct cmd_ds_command *cmd, | 149 | struct cmd_ds_command *cmd, |
150 | u32 cmd_act, | 150 | u32 cmd_act, |
151 | void * pdata_buf) | 151 | void * pdata_buf) |
152 | { | 152 | { |
153 | struct cmd_ds_802_11_set_wep *wep = &cmd->params.wep; | 153 | struct cmd_ds_802_11_set_wep *wep = &cmd->params.wep; |
154 | wlan_adapter *adapter = priv->adapter; | 154 | lbs_adapter *adapter = priv->adapter; |
155 | int ret = 0; | 155 | int ret = 0; |
156 | struct assoc_request * assoc_req = pdata_buf; | 156 | struct assoc_request * assoc_req = pdata_buf; |
157 | 157 | ||
@@ -219,7 +219,7 @@ done: | |||
219 | return ret; | 219 | return ret; |
220 | } | 220 | } |
221 | 221 | ||
222 | static int wlan_cmd_802_11_enable_rsn(wlan_private * priv, | 222 | static int lbs_cmd_802_11_enable_rsn(lbs_private * priv, |
223 | struct cmd_ds_command *cmd, | 223 | struct cmd_ds_command *cmd, |
224 | u16 cmd_action, | 224 | u16 cmd_action, |
225 | void * pdata_buf) | 225 | void * pdata_buf) |
@@ -272,7 +272,7 @@ static void set_one_wpa_key(struct MrvlIEtype_keyParamSet * pkeyparamset, | |||
272 | lbs_deb_leave(LBS_DEB_CMD); | 272 | lbs_deb_leave(LBS_DEB_CMD); |
273 | } | 273 | } |
274 | 274 | ||
275 | static int wlan_cmd_802_11_key_material(wlan_private * priv, | 275 | static int lbs_cmd_802_11_key_material(lbs_private * priv, |
276 | struct cmd_ds_command *cmd, | 276 | struct cmd_ds_command *cmd, |
277 | u16 cmd_action, | 277 | u16 cmd_action, |
278 | u32 cmd_oid, void *pdata_buf) | 278 | u32 cmd_oid, void *pdata_buf) |
@@ -319,7 +319,7 @@ done: | |||
319 | return ret; | 319 | return ret; |
320 | } | 320 | } |
321 | 321 | ||
322 | static int wlan_cmd_802_11_reset(wlan_private * priv, | 322 | static int lbs_cmd_802_11_reset(lbs_private * priv, |
323 | struct cmd_ds_command *cmd, int cmd_action) | 323 | struct cmd_ds_command *cmd, int cmd_action) |
324 | { | 324 | { |
325 | struct cmd_ds_802_11_reset *reset = &cmd->params.reset; | 325 | struct cmd_ds_802_11_reset *reset = &cmd->params.reset; |
@@ -334,7 +334,7 @@ static int wlan_cmd_802_11_reset(wlan_private * priv, | |||
334 | return 0; | 334 | return 0; |
335 | } | 335 | } |
336 | 336 | ||
337 | static int wlan_cmd_802_11_get_log(wlan_private * priv, | 337 | static int lbs_cmd_802_11_get_log(lbs_private * priv, |
338 | struct cmd_ds_command *cmd) | 338 | struct cmd_ds_command *cmd) |
339 | { | 339 | { |
340 | lbs_deb_enter(LBS_DEB_CMD); | 340 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -346,7 +346,7 @@ static int wlan_cmd_802_11_get_log(wlan_private * priv, | |||
346 | return 0; | 346 | return 0; |
347 | } | 347 | } |
348 | 348 | ||
349 | static int wlan_cmd_802_11_get_stat(wlan_private * priv, | 349 | static int lbs_cmd_802_11_get_stat(lbs_private * priv, |
350 | struct cmd_ds_command *cmd) | 350 | struct cmd_ds_command *cmd) |
351 | { | 351 | { |
352 | lbs_deb_enter(LBS_DEB_CMD); | 352 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -358,13 +358,13 @@ static int wlan_cmd_802_11_get_stat(wlan_private * priv, | |||
358 | return 0; | 358 | return 0; |
359 | } | 359 | } |
360 | 360 | ||
361 | static int wlan_cmd_802_11_snmp_mib(wlan_private * priv, | 361 | static int lbs_cmd_802_11_snmp_mib(lbs_private * priv, |
362 | struct cmd_ds_command *cmd, | 362 | struct cmd_ds_command *cmd, |
363 | int cmd_action, | 363 | int cmd_action, |
364 | int cmd_oid, void *pdata_buf) | 364 | int cmd_oid, void *pdata_buf) |
365 | { | 365 | { |
366 | struct cmd_ds_802_11_snmp_mib *pSNMPMIB = &cmd->params.smib; | 366 | struct cmd_ds_802_11_snmp_mib *pSNMPMIB = &cmd->params.smib; |
367 | wlan_adapter *adapter = priv->adapter; | 367 | lbs_adapter *adapter = priv->adapter; |
368 | u8 ucTemp; | 368 | u8 ucTemp; |
369 | 369 | ||
370 | lbs_deb_enter(LBS_DEB_CMD); | 370 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -479,11 +479,11 @@ static int wlan_cmd_802_11_snmp_mib(wlan_private * priv, | |||
479 | return 0; | 479 | return 0; |
480 | } | 480 | } |
481 | 481 | ||
482 | static int wlan_cmd_802_11_radio_control(wlan_private * priv, | 482 | static int lbs_cmd_802_11_radio_control(lbs_private * priv, |
483 | struct cmd_ds_command *cmd, | 483 | struct cmd_ds_command *cmd, |
484 | int cmd_action) | 484 | int cmd_action) |
485 | { | 485 | { |
486 | wlan_adapter *adapter = priv->adapter; | 486 | lbs_adapter *adapter = priv->adapter; |
487 | struct cmd_ds_802_11_radio_control *pradiocontrol = &cmd->params.radio; | 487 | struct cmd_ds_802_11_radio_control *pradiocontrol = &cmd->params.radio; |
488 | 488 | ||
489 | lbs_deb_enter(LBS_DEB_CMD); | 489 | lbs_deb_enter(LBS_DEB_CMD); |
@@ -519,7 +519,7 @@ static int wlan_cmd_802_11_radio_control(wlan_private * priv, | |||
519 | return 0; | 519 | return 0; |
520 | } | 520 | } |
521 | 521 | ||
522 | static int wlan_cmd_802_11_rf_tx_power(wlan_private * priv, | 522 | static int lbs_cmd_802_11_rf_tx_power(lbs_private * priv, |
523 | struct cmd_ds_command *cmd, | 523 | struct cmd_ds_command *cmd, |
524 | u16 cmd_action, void *pdata_buf) | 524 | u16 cmd_action, void *pdata_buf) |
525 | { | 525 | { |
@@ -563,7 +563,7 @@ static int wlan_cmd_802_11_rf_tx_power(wlan_private * priv, | |||
563 | return 0; | 563 | return 0; |
564 | } | 564 | } |
565 | 565 | ||
566 | static int wlan_cmd_802_11_monitor_mode(wlan_private * priv, | 566 | static int lbs_cmd_802_11_monitor_mode(lbs_private * priv, |
567 | struct cmd_ds_command *cmd, | 567 | struct cmd_ds_command *cmd, |
568 | u16 cmd_action, void *pdata_buf) | 568 | u16 cmd_action, void *pdata_buf) |
569 | { | 569 | { |
@@ -583,13 +583,13 @@ static int wlan_cmd_802_11_monitor_mode(wlan_private * priv, | |||
583 | return 0; | 583 | return 0; |
584 | } | 584 | } |
585 | 585 | ||
586 | static int wlan_cmd_802_11_rate_adapt_rateset(wlan_private * priv, | 586 | static int lbs_cmd_802_11_rate_adapt_rateset(lbs_private * priv, |
587 | struct cmd_ds_command *cmd, | 587 | struct cmd_ds_command *cmd, |
588 | u16 cmd_action) | 588 | u16 cmd_action) |
589 | { | 589 | { |
590 | struct cmd_ds_802_11_rate_adapt_rateset | 590 | struct cmd_ds_802_11_rate_adapt_rateset |
591 | *rateadapt = &cmd->params.rateset; | 591 | *rateadapt = &cmd->params.rateset; |
592 | wlan_adapter *adapter = priv->adapter; | 592 | lbs_adapter *adapter = priv->adapter; |
593 | 593 | ||
594 | lbs_deb_enter(LBS_DEB_CMD); | 594 | lbs_deb_enter(LBS_DEB_CMD); |
595 | cmd->size = | 595 | cmd->size = |
@@ -605,12 +605,12 @@ static int wlan_cmd_802_11_rate_adapt_rateset(wlan_private * priv, | |||
605 | return 0; | 605 | return 0; |
606 | } | 606 | } |
607 | 607 | ||
608 | static int wlan_cmd_802_11_data_rate(wlan_private * priv, | 608 | static int lbs_cmd_802_11_data_rate(lbs_private * priv, |
609 | struct cmd_ds_command *cmd, | 609 | struct cmd_ds_command *cmd, |
610 | u16 cmd_action) | 610 | u16 cmd_action) |
611 | { | 611 | { |
612 | struct cmd_ds_802_11_data_rate *pdatarate = &cmd->params.drate; | 612 | struct cmd_ds_802_11_data_rate *pdatarate = &cmd->params.drate; |
613 | wlan_adapter *adapter = priv->adapter; | 613 | lbs_adapter *adapter = priv->adapter; |
614 | 614 | ||
615 | lbs_deb_enter(LBS_DEB_CMD); | 615 | lbs_deb_enter(LBS_DEB_CMD); |
616 | 616 | ||
@@ -621,7 +621,7 @@ static int wlan_cmd_802_11_data_rate(wlan_private * priv, | |||
621 | pdatarate->action = cpu_to_le16(cmd_action); | 621 | pdatarate->action = cpu_to_le16(cmd_action); |
622 | 622 | ||
623 | if (cmd_action == CMD_ACT_SET_TX_FIX_RATE) { | 623 | if (cmd_action == CMD_ACT_SET_TX_FIX_RATE) { |
624 | pdatarate->rates[0] = libertas_data_rate_to_fw_index(adapter->cur_rate); | 624 | pdatarate->rates[0] = lbs_data_rate_to_fw_index(adapter->cur_rate); |
625 | lbs_deb_cmd("DATA_RATE: set fixed 0x%02X\n", | 625 | lbs_deb_cmd("DATA_RATE: set fixed 0x%02X\n", |
626 | adapter->cur_rate); | 626 | adapter->cur_rate); |
627 | } else if (cmd_action == CMD_ACT_SET_TX_AUTO) { | 627 | } else if (cmd_action == CMD_ACT_SET_TX_AUTO) { |
@@ -632,12 +632,12 @@ static int wlan_cmd_802_11_data_rate(wlan_private * priv, | |||
632 | return 0; | 632 | return 0; |
633 | } | 633 | } |
634 | 634 | ||
635 | static int wlan_cmd_mac_multicast_adr(wlan_private * priv, | 635 | static int lbs_cmd_mac_multicast_adr(lbs_private * priv, |
636 | struct cmd_ds_command *cmd, | 636 | struct cmd_ds_command *cmd, |
637 | u16 cmd_action) | 637 | u16 cmd_action) |
638 | { | 638 | { |
639 | struct cmd_ds_mac_multicast_adr *pMCastAdr = &cmd->params.madr; | 639 | struct cmd_ds_mac_multicast_adr *pMCastAdr = &cmd->params.madr; |
640 | wlan_adapter *adapter = priv->adapter; | 640 | lbs_adapter *adapter = priv->adapter; |
641 | 641 | ||
642 | lbs_deb_enter(LBS_DEB_CMD); | 642 | lbs_deb_enter(LBS_DEB_CMD); |
643 | cmd->size = cpu_to_le16(sizeof(struct cmd_ds_mac_multicast_adr) + | 643 | cmd->size = cpu_to_le16(sizeof(struct cmd_ds_mac_multicast_adr) + |
@@ -655,7 +655,7 @@ static int wlan_cmd_mac_multicast_adr(wlan_private * priv, | |||
655 | return 0; | 655 | return 0; |
656 | } | 656 | } |
657 | 657 | ||
658 | static int wlan_cmd_802_11_rf_channel(wlan_private * priv, | 658 | static int lbs_cmd_802_11_rf_channel(lbs_private * priv, |
659 | struct cmd_ds_command *cmd, | 659 | struct cmd_ds_command *cmd, |
660 | int option, void *pdata_buf) | 660 | int option, void *pdata_buf) |
661 | { | 661 | { |
@@ -676,10 +676,10 @@ static int wlan_cmd_802_11_rf_channel(wlan_private * priv, | |||
676 | return 0; | 676 | return 0; |
677 | } | 677 | } |
678 | 678 | ||
679 | static int wlan_cmd_802_11_rssi(wlan_private * priv, | 679 | static int lbs_cmd_802_11_rssi(lbs_private * priv, |
680 | struct cmd_ds_command *cmd) | 680 | struct cmd_ds_command *cmd) |
681 | { | 681 | { |
682 | wlan_adapter *adapter = priv->adapter; | 682 | lbs_adapter *adapter = priv->adapter; |
683 | 683 | ||
684 | lbs_deb_enter(LBS_DEB_CMD); | 684 | lbs_deb_enter(LBS_DEB_CMD); |
685 | cmd->command = cpu_to_le16(CMD_802_11_RSSI); | 685 | cmd->command = cpu_to_le16(CMD_802_11_RSSI); |
@@ -698,15 +698,15 @@ static int wlan_cmd_802_11_rssi(wlan_private * priv, | |||
698 | return 0; | 698 | return 0; |
699 | } | 699 | } |
700 | 700 | ||
701 | static int wlan_cmd_reg_access(wlan_private * priv, | 701 | static int lbs_cmd_reg_access(lbs_private * priv, |
702 | struct cmd_ds_command *cmdptr, | 702 | struct cmd_ds_command *cmdptr, |
703 | u8 cmd_action, void *pdata_buf) | 703 | u8 cmd_action, void *pdata_buf) |
704 | { | 704 | { |
705 | struct wlan_offset_value *offval; | 705 | struct lbs_offset_value *offval; |
706 | 706 | ||
707 | lbs_deb_enter(LBS_DEB_CMD); | 707 | lbs_deb_enter(LBS_DEB_CMD); |
708 | 708 | ||
709 | offval = (struct wlan_offset_value *)pdata_buf; | 709 | offval = (struct lbs_offset_value *)pdata_buf; |
710 | 710 | ||
711 | switch (cmdptr->command) { | 711 | switch (cmdptr->command) { |
712 | case CMD_MAC_REG_ACCESS: | 712 | case CMD_MAC_REG_ACCESS: |
@@ -773,11 +773,11 @@ static int wlan_cmd_reg_access(wlan_private * priv, | |||
773 | return 0; | 773 | return 0; |
774 | } | 774 | } |
775 | 775 | ||
776 | static int wlan_cmd_802_11_mac_address(wlan_private * priv, | 776 | static int lbs_cmd_802_11_mac_address(lbs_private * priv, |
777 | struct cmd_ds_command *cmd, | 777 | struct cmd_ds_command *cmd, |
778 | u16 cmd_action) | 778 | u16 cmd_action) |
779 | { | 779 | { |
780 | wlan_adapter *adapter = priv->adapter; | 780 | lbs_adapter *adapter = priv->adapter; |
781 | 781 | ||
782 | lbs_deb_enter(LBS_DEB_CMD); | 782 | lbs_deb_enter(LBS_DEB_CMD); |
783 | cmd->command = cpu_to_le16(CMD_802_11_MAC_ADDRESS); | 783 | cmd->command = cpu_to_le16(CMD_802_11_MAC_ADDRESS); |
@@ -797,11 +797,11 @@ static int wlan_cmd_802_11_mac_address(wlan_private * priv, | |||
797 | return 0; | 797 | return 0; |
798 | } | 798 | } |
799 | 799 | ||
800 | static int wlan_cmd_802_11_eeprom_access(wlan_private * priv, | 800 | static int lbs_cmd_802_11_eeprom_access(lbs_private * priv, |
801 | struct cmd_ds_command *cmd, | 801 | struct cmd_ds_command *cmd, |
802 | int cmd_action, void *pdata_buf) | 802 | int cmd_action, void *pdata_buf) |
803 | { | 803 | { |
804 | struct wlan_ioctl_regrdwr *ea = pdata_buf; | 804 | struct lbs_ioctl_regrdwr *ea = pdata_buf; |
805 | 805 | ||
806 | lbs_deb_enter(LBS_DEB_CMD); | 806 | lbs_deb_enter(LBS_DEB_CMD); |
807 | 807 | ||
@@ -819,7 +819,7 @@ static int wlan_cmd_802_11_eeprom_access(wlan_private * priv, | |||
819 | return 0; | 819 | return 0; |
820 | } | 820 | } |
821 | 821 | ||
822 | static int wlan_cmd_bt_access(wlan_private * priv, | 822 | static int lbs_cmd_bt_access(lbs_private * priv, |
823 | struct cmd_ds_command *cmd, | 823 | struct cmd_ds_command *cmd, |
824 | u16 cmd_action, void *pdata_buf) | 824 | u16 cmd_action, void *pdata_buf) |
825 | { | 825 | { |
@@ -857,7 +857,7 @@ static int wlan_cmd_bt_access(wlan_private * priv, | |||
857 | return 0; | 857 | return 0; |
858 | } | 858 | } |
859 | 859 | ||
860 | static int wlan_cmd_fwt_access(wlan_private * priv, | 860 | static int lbs_cmd_fwt_access(lbs_private * priv, |
861 | struct cmd_ds_command *cmd, | 861 | struct cmd_ds_command *cmd, |
862 | u16 cmd_action, void *pdata_buf) | 862 | u16 cmd_action, void *pdata_buf) |
863 | { | 863 | { |
@@ -879,7 +879,7 @@ static int wlan_cmd_fwt_access(wlan_private * priv, | |||
879 | return 0; | 879 | return 0; |
880 | } | 880 | } |
881 | 881 | ||
882 | static int wlan_cmd_mesh_access(wlan_private * priv, | 882 | static int lbs_cmd_mesh_access(lbs_private * priv, |
883 | struct cmd_ds_command *cmd, | 883 | struct cmd_ds_command *cmd, |
884 | u16 cmd_action, void *pdata_buf) | 884 | u16 cmd_action, void *pdata_buf) |
885 | { | 885 | { |
@@ -901,7 +901,7 @@ static int wlan_cmd_mesh_access(wlan_private * priv, | |||
901 | return 0; | 901 | return 0; |
902 | } | 902 | } |
903 | 903 | ||
904 | static int wlan_cmd_set_boot2_ver(wlan_private * priv, | 904 | static int lbs_cmd_set_boot2_ver(lbs_private * priv, |
905 | struct cmd_ds_command *cmd, | 905 | struct cmd_ds_command *cmd, |
906 | u16 cmd_action, void *pdata_buf) | 906 | u16 cmd_action, void *pdata_buf) |
907 | { | 907 | { |
@@ -913,10 +913,10 @@ static int wlan_cmd_set_boot2_ver(wlan_private * priv, | |||
913 | } | 913 | } |
914 | 914 | ||
915 | /* | 915 | /* |
916 | * Note: NEVER use libertas_queue_cmd() with addtail==0 other than for | 916 | * Note: NEVER use lbs_queue_cmd() with addtail==0 other than for |
917 | * the command timer, because it does not account for queued commands. | 917 | * the command timer, because it does not account for queued commands. |
918 | */ | 918 | */ |
919 | void libertas_queue_cmd(wlan_adapter * adapter, struct cmd_ctrl_node *cmdnode, u8 addtail) | 919 | void lbs_queue_cmd(lbs_adapter * adapter, struct cmd_ctrl_node *cmdnode, u8 addtail) |
920 | { | 920 | { |
921 | unsigned long flags; | 921 | unsigned long flags; |
922 | struct cmd_ds_command *cmdptr; | 922 | struct cmd_ds_command *cmdptr; |
@@ -968,12 +968,12 @@ done: | |||
968 | * For now - we are not performing the endian conversion the second time - but | 968 | * For now - we are not performing the endian conversion the second time - but |
969 | * for PS and DEEP_SLEEP we need to worry | 969 | * for PS and DEEP_SLEEP we need to worry |
970 | */ | 970 | */ |
971 | static int DownloadcommandToStation(wlan_private * priv, | 971 | static int DownloadcommandToStation(lbs_private * priv, |
972 | struct cmd_ctrl_node *cmdnode) | 972 | struct cmd_ctrl_node *cmdnode) |
973 | { | 973 | { |
974 | unsigned long flags; | 974 | unsigned long flags; |
975 | struct cmd_ds_command *cmdptr; | 975 | struct cmd_ds_command *cmdptr; |
976 | wlan_adapter *adapter = priv->adapter; | 976 | lbs_adapter *adapter = priv->adapter; |
977 | int ret = -1; | 977 | int ret = -1; |
978 | u16 cmdsize; | 978 | u16 cmdsize; |
979 | u16 command; | 979 | u16 command; |
@@ -990,7 +990,7 @@ static int DownloadcommandToStation(wlan_private * priv, | |||
990 | spin_lock_irqsave(&adapter->driver_lock, flags); | 990 | spin_lock_irqsave(&adapter->driver_lock, flags); |
991 | if (!cmdptr || !cmdptr->size) { | 991 | if (!cmdptr || !cmdptr->size) { |
992 | lbs_deb_host("DNLD_CMD: cmdptr is NULL or zero\n"); | 992 | lbs_deb_host("DNLD_CMD: cmdptr is NULL or zero\n"); |
993 | __libertas_cleanup_and_insert_cmd(priv, cmdnode); | 993 | __lbs_cleanup_and_insert_cmd(priv, cmdnode); |
994 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 994 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
995 | goto done; | 995 | goto done; |
996 | } | 996 | } |
@@ -1015,7 +1015,7 @@ static int DownloadcommandToStation(wlan_private * priv, | |||
1015 | lbs_deb_host("DNLD_CMD: hw_host_to_card failed\n"); | 1015 | lbs_deb_host("DNLD_CMD: hw_host_to_card failed\n"); |
1016 | spin_lock_irqsave(&adapter->driver_lock, flags); | 1016 | spin_lock_irqsave(&adapter->driver_lock, flags); |
1017 | adapter->cur_cmd_retcode = ret; | 1017 | adapter->cur_cmd_retcode = ret; |
1018 | __libertas_cleanup_and_insert_cmd(priv, adapter->cur_cmd); | 1018 | __lbs_cleanup_and_insert_cmd(priv, adapter->cur_cmd); |
1019 | adapter->nr_cmd_pending--; | 1019 | adapter->nr_cmd_pending--; |
1020 | adapter->cur_cmd = NULL; | 1020 | adapter->cur_cmd = NULL; |
1021 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 1021 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
@@ -1038,7 +1038,7 @@ done: | |||
1038 | return ret; | 1038 | return ret; |
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | static int wlan_cmd_mac_control(wlan_private * priv, | 1041 | static int lbs_cmd_mac_control(lbs_private * priv, |
1042 | struct cmd_ds_command *cmd) | 1042 | struct cmd_ds_command *cmd) |
1043 | { | 1043 | { |
1044 | struct cmd_ds_mac_control *mac = &cmd->params.macctrl; | 1044 | struct cmd_ds_mac_control *mac = &cmd->params.macctrl; |
@@ -1060,9 +1060,9 @@ static int wlan_cmd_mac_control(wlan_private * priv, | |||
1060 | * This function inserts command node to cmdfreeq | 1060 | * This function inserts command node to cmdfreeq |
1061 | * after cleans it. Requires adapter->driver_lock held. | 1061 | * after cleans it. Requires adapter->driver_lock held. |
1062 | */ | 1062 | */ |
1063 | void __libertas_cleanup_and_insert_cmd(wlan_private * priv, struct cmd_ctrl_node *ptempcmd) | 1063 | void __lbs_cleanup_and_insert_cmd(lbs_private * priv, struct cmd_ctrl_node *ptempcmd) |
1064 | { | 1064 | { |
1065 | wlan_adapter *adapter = priv->adapter; | 1065 | lbs_adapter *adapter = priv->adapter; |
1066 | 1066 | ||
1067 | if (!ptempcmd) | 1067 | if (!ptempcmd) |
1068 | return; | 1068 | return; |
@@ -1071,22 +1071,22 @@ void __libertas_cleanup_and_insert_cmd(wlan_private * priv, struct cmd_ctrl_node | |||
1071 | list_add_tail((struct list_head *)ptempcmd, &adapter->cmdfreeq); | 1071 | list_add_tail((struct list_head *)ptempcmd, &adapter->cmdfreeq); |
1072 | } | 1072 | } |
1073 | 1073 | ||
1074 | static void libertas_cleanup_and_insert_cmd(wlan_private * priv, struct cmd_ctrl_node *ptempcmd) | 1074 | static void lbs_cleanup_and_insert_cmd(lbs_private * priv, struct cmd_ctrl_node *ptempcmd) |
1075 | { | 1075 | { |
1076 | unsigned long flags; | 1076 | unsigned long flags; |
1077 | 1077 | ||
1078 | spin_lock_irqsave(&priv->adapter->driver_lock, flags); | 1078 | spin_lock_irqsave(&priv->adapter->driver_lock, flags); |
1079 | __libertas_cleanup_and_insert_cmd(priv, ptempcmd); | 1079 | __lbs_cleanup_and_insert_cmd(priv, ptempcmd); |
1080 | spin_unlock_irqrestore(&priv->adapter->driver_lock, flags); | 1080 | spin_unlock_irqrestore(&priv->adapter->driver_lock, flags); |
1081 | } | 1081 | } |
1082 | 1082 | ||
1083 | int libertas_set_radio_control(wlan_private * priv) | 1083 | int lbs_set_radio_control(lbs_private * priv) |
1084 | { | 1084 | { |
1085 | int ret = 0; | 1085 | int ret = 0; |
1086 | 1086 | ||
1087 | lbs_deb_enter(LBS_DEB_CMD); | 1087 | lbs_deb_enter(LBS_DEB_CMD); |
1088 | 1088 | ||
1089 | ret = libertas_prepare_and_send_command(priv, | 1089 | ret = lbs_prepare_and_send_command(priv, |
1090 | CMD_802_11_RADIO_CONTROL, | 1090 | CMD_802_11_RADIO_CONTROL, |
1091 | CMD_ACT_SET, | 1091 | CMD_ACT_SET, |
1092 | CMD_OPTION_WAITFORRSP, 0, NULL); | 1092 | CMD_OPTION_WAITFORRSP, 0, NULL); |
@@ -1098,14 +1098,14 @@ int libertas_set_radio_control(wlan_private * priv) | |||
1098 | return ret; | 1098 | return ret; |
1099 | } | 1099 | } |
1100 | 1100 | ||
1101 | int libertas_set_mac_packet_filter(wlan_private * priv) | 1101 | int lbs_set_mac_packet_filter(lbs_private * priv) |
1102 | { | 1102 | { |
1103 | int ret = 0; | 1103 | int ret = 0; |
1104 | 1104 | ||
1105 | lbs_deb_enter(LBS_DEB_CMD); | 1105 | lbs_deb_enter(LBS_DEB_CMD); |
1106 | 1106 | ||
1107 | /* Send MAC control command to station */ | 1107 | /* Send MAC control command to station */ |
1108 | ret = libertas_prepare_and_send_command(priv, | 1108 | ret = lbs_prepare_and_send_command(priv, |
1109 | CMD_MAC_CONTROL, 0, 0, 0, NULL); | 1109 | CMD_MAC_CONTROL, 0, 0, 0, NULL); |
1110 | 1110 | ||
1111 | lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret); | 1111 | lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret); |
@@ -1115,7 +1115,7 @@ int libertas_set_mac_packet_filter(wlan_private * priv) | |||
1115 | /** | 1115 | /** |
1116 | * @brief This function prepare the command before send to firmware. | 1116 | * @brief This function prepare the command before send to firmware. |
1117 | * | 1117 | * |
1118 | * @param priv A pointer to wlan_private structure | 1118 | * @param priv A pointer to lbs_private structure |
1119 | * @param cmd_no command number | 1119 | * @param cmd_no command number |
1120 | * @param cmd_action command action: GET or SET | 1120 | * @param cmd_action command action: GET or SET |
1121 | * @param wait_option wait option: wait response or not | 1121 | * @param wait_option wait option: wait response or not |
@@ -1123,13 +1123,13 @@ int libertas_set_mac_packet_filter(wlan_private * priv) | |||
1123 | * @param pdata_buf A pointer to informaion buffer | 1123 | * @param pdata_buf A pointer to informaion buffer |
1124 | * @return 0 or -1 | 1124 | * @return 0 or -1 |
1125 | */ | 1125 | */ |
1126 | int libertas_prepare_and_send_command(wlan_private * priv, | 1126 | int lbs_prepare_and_send_command(lbs_private * priv, |
1127 | u16 cmd_no, | 1127 | u16 cmd_no, |
1128 | u16 cmd_action, | 1128 | u16 cmd_action, |
1129 | u16 wait_option, u32 cmd_oid, void *pdata_buf) | 1129 | u16 wait_option, u32 cmd_oid, void *pdata_buf) |
1130 | { | 1130 | { |
1131 | int ret = 0; | 1131 | int ret = 0; |
1132 | wlan_adapter *adapter = priv->adapter; | 1132 | lbs_adapter *adapter = priv->adapter; |
1133 | struct cmd_ctrl_node *cmdnode; | 1133 | struct cmd_ctrl_node *cmdnode; |
1134 | struct cmd_ds_command *cmdptr; | 1134 | struct cmd_ds_command *cmdptr; |
1135 | unsigned long flags; | 1135 | unsigned long flags; |
@@ -1148,7 +1148,7 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1148 | goto done; | 1148 | goto done; |
1149 | } | 1149 | } |
1150 | 1150 | ||
1151 | cmdnode = libertas_get_free_cmd_ctrl_node(priv); | 1151 | cmdnode = lbs_get_free_cmd_ctrl_node(priv); |
1152 | 1152 | ||
1153 | if (cmdnode == NULL) { | 1153 | if (cmdnode == NULL) { |
1154 | lbs_deb_host("PREP_CMD: cmdnode is NULL\n"); | 1154 | lbs_deb_host("PREP_CMD: cmdnode is NULL\n"); |
@@ -1159,7 +1159,7 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1159 | goto done; | 1159 | goto done; |
1160 | } | 1160 | } |
1161 | 1161 | ||
1162 | libertas_set_cmd_ctrl_node(priv, cmdnode, cmd_oid, wait_option, pdata_buf); | 1162 | lbs_set_cmd_ctrl_node(priv, cmdnode, cmd_oid, wait_option, pdata_buf); |
1163 | 1163 | ||
1164 | cmdptr = (struct cmd_ds_command *)cmdnode->bufvirtualaddr; | 1164 | cmdptr = (struct cmd_ds_command *)cmdnode->bufvirtualaddr; |
1165 | 1165 | ||
@@ -1167,7 +1167,7 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1167 | 1167 | ||
1168 | if (!cmdptr) { | 1168 | if (!cmdptr) { |
1169 | lbs_deb_host("PREP_CMD: cmdptr is NULL\n"); | 1169 | lbs_deb_host("PREP_CMD: cmdptr is NULL\n"); |
1170 | libertas_cleanup_and_insert_cmd(priv, cmdnode); | 1170 | lbs_cleanup_and_insert_cmd(priv, cmdnode); |
1171 | ret = -1; | 1171 | ret = -1; |
1172 | goto done; | 1172 | goto done; |
1173 | } | 1173 | } |
@@ -1181,116 +1181,116 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1181 | 1181 | ||
1182 | switch (cmd_no) { | 1182 | switch (cmd_no) { |
1183 | case CMD_GET_HW_SPEC: | 1183 | case CMD_GET_HW_SPEC: |
1184 | ret = wlan_cmd_hw_spec(priv, cmdptr); | 1184 | ret = lbs_cmd_hw_spec(priv, cmdptr); |
1185 | break; | 1185 | break; |
1186 | case CMD_802_11_PS_MODE: | 1186 | case CMD_802_11_PS_MODE: |
1187 | ret = wlan_cmd_802_11_ps_mode(priv, cmdptr, cmd_action); | 1187 | ret = lbs_cmd_802_11_ps_mode(priv, cmdptr, cmd_action); |
1188 | break; | 1188 | break; |
1189 | 1189 | ||
1190 | case CMD_802_11_SCAN: | 1190 | case CMD_802_11_SCAN: |
1191 | ret = libertas_cmd_80211_scan(priv, cmdptr, pdata_buf); | 1191 | ret = lbs_cmd_80211_scan(priv, cmdptr, pdata_buf); |
1192 | break; | 1192 | break; |
1193 | 1193 | ||
1194 | case CMD_MAC_CONTROL: | 1194 | case CMD_MAC_CONTROL: |
1195 | ret = wlan_cmd_mac_control(priv, cmdptr); | 1195 | ret = lbs_cmd_mac_control(priv, cmdptr); |
1196 | break; | 1196 | break; |
1197 | 1197 | ||
1198 | case CMD_802_11_ASSOCIATE: | 1198 | case CMD_802_11_ASSOCIATE: |
1199 | case CMD_802_11_REASSOCIATE: | 1199 | case CMD_802_11_REASSOCIATE: |
1200 | ret = libertas_cmd_80211_associate(priv, cmdptr, pdata_buf); | 1200 | ret = lbs_cmd_80211_associate(priv, cmdptr, pdata_buf); |
1201 | break; | 1201 | break; |
1202 | 1202 | ||
1203 | case CMD_802_11_DEAUTHENTICATE: | 1203 | case CMD_802_11_DEAUTHENTICATE: |
1204 | ret = libertas_cmd_80211_deauthenticate(priv, cmdptr); | 1204 | ret = lbs_cmd_80211_deauthenticate(priv, cmdptr); |
1205 | break; | 1205 | break; |
1206 | 1206 | ||
1207 | case CMD_802_11_SET_WEP: | 1207 | case CMD_802_11_SET_WEP: |
1208 | ret = wlan_cmd_802_11_set_wep(priv, cmdptr, cmd_action, pdata_buf); | 1208 | ret = lbs_cmd_802_11_set_wep(priv, cmdptr, cmd_action, pdata_buf); |
1209 | break; | 1209 | break; |
1210 | 1210 | ||
1211 | case CMD_802_11_AD_HOC_START: | 1211 | case CMD_802_11_AD_HOC_START: |
1212 | ret = libertas_cmd_80211_ad_hoc_start(priv, cmdptr, pdata_buf); | 1212 | ret = lbs_cmd_80211_ad_hoc_start(priv, cmdptr, pdata_buf); |
1213 | break; | 1213 | break; |
1214 | case CMD_CODE_DNLD: | 1214 | case CMD_CODE_DNLD: |
1215 | break; | 1215 | break; |
1216 | 1216 | ||
1217 | case CMD_802_11_RESET: | 1217 | case CMD_802_11_RESET: |
1218 | ret = wlan_cmd_802_11_reset(priv, cmdptr, cmd_action); | 1218 | ret = lbs_cmd_802_11_reset(priv, cmdptr, cmd_action); |
1219 | break; | 1219 | break; |
1220 | 1220 | ||
1221 | case CMD_802_11_GET_LOG: | 1221 | case CMD_802_11_GET_LOG: |
1222 | ret = wlan_cmd_802_11_get_log(priv, cmdptr); | 1222 | ret = lbs_cmd_802_11_get_log(priv, cmdptr); |
1223 | break; | 1223 | break; |
1224 | 1224 | ||
1225 | case CMD_802_11_AUTHENTICATE: | 1225 | case CMD_802_11_AUTHENTICATE: |
1226 | ret = libertas_cmd_80211_authenticate(priv, cmdptr, pdata_buf); | 1226 | ret = lbs_cmd_80211_authenticate(priv, cmdptr, pdata_buf); |
1227 | break; | 1227 | break; |
1228 | 1228 | ||
1229 | case CMD_802_11_GET_STAT: | 1229 | case CMD_802_11_GET_STAT: |
1230 | ret = wlan_cmd_802_11_get_stat(priv, cmdptr); | 1230 | ret = lbs_cmd_802_11_get_stat(priv, cmdptr); |
1231 | break; | 1231 | break; |
1232 | 1232 | ||
1233 | case CMD_802_11_SNMP_MIB: | 1233 | case CMD_802_11_SNMP_MIB: |
1234 | ret = wlan_cmd_802_11_snmp_mib(priv, cmdptr, | 1234 | ret = lbs_cmd_802_11_snmp_mib(priv, cmdptr, |
1235 | cmd_action, cmd_oid, pdata_buf); | 1235 | cmd_action, cmd_oid, pdata_buf); |
1236 | break; | 1236 | break; |
1237 | 1237 | ||
1238 | case CMD_MAC_REG_ACCESS: | 1238 | case CMD_MAC_REG_ACCESS: |
1239 | case CMD_BBP_REG_ACCESS: | 1239 | case CMD_BBP_REG_ACCESS: |
1240 | case CMD_RF_REG_ACCESS: | 1240 | case CMD_RF_REG_ACCESS: |
1241 | ret = wlan_cmd_reg_access(priv, cmdptr, cmd_action, pdata_buf); | 1241 | ret = lbs_cmd_reg_access(priv, cmdptr, cmd_action, pdata_buf); |
1242 | break; | 1242 | break; |
1243 | 1243 | ||
1244 | case CMD_802_11_RF_CHANNEL: | 1244 | case CMD_802_11_RF_CHANNEL: |
1245 | ret = wlan_cmd_802_11_rf_channel(priv, cmdptr, | 1245 | ret = lbs_cmd_802_11_rf_channel(priv, cmdptr, |
1246 | cmd_action, pdata_buf); | 1246 | cmd_action, pdata_buf); |
1247 | break; | 1247 | break; |
1248 | 1248 | ||
1249 | case CMD_802_11_RF_TX_POWER: | 1249 | case CMD_802_11_RF_TX_POWER: |
1250 | ret = wlan_cmd_802_11_rf_tx_power(priv, cmdptr, | 1250 | ret = lbs_cmd_802_11_rf_tx_power(priv, cmdptr, |
1251 | cmd_action, pdata_buf); | 1251 | cmd_action, pdata_buf); |
1252 | break; | 1252 | break; |
1253 | 1253 | ||
1254 | case CMD_802_11_RADIO_CONTROL: | 1254 | case CMD_802_11_RADIO_CONTROL: |
1255 | ret = wlan_cmd_802_11_radio_control(priv, cmdptr, cmd_action); | 1255 | ret = lbs_cmd_802_11_radio_control(priv, cmdptr, cmd_action); |
1256 | break; | 1256 | break; |
1257 | 1257 | ||
1258 | case CMD_802_11_DATA_RATE: | 1258 | case CMD_802_11_DATA_RATE: |
1259 | ret = wlan_cmd_802_11_data_rate(priv, cmdptr, cmd_action); | 1259 | ret = lbs_cmd_802_11_data_rate(priv, cmdptr, cmd_action); |
1260 | break; | 1260 | break; |
1261 | case CMD_802_11_RATE_ADAPT_RATESET: | 1261 | case CMD_802_11_RATE_ADAPT_RATESET: |
1262 | ret = wlan_cmd_802_11_rate_adapt_rateset(priv, | 1262 | ret = lbs_cmd_802_11_rate_adapt_rateset(priv, |
1263 | cmdptr, cmd_action); | 1263 | cmdptr, cmd_action); |
1264 | break; | 1264 | break; |
1265 | 1265 | ||
1266 | case CMD_MAC_MULTICAST_ADR: | 1266 | case CMD_MAC_MULTICAST_ADR: |
1267 | ret = wlan_cmd_mac_multicast_adr(priv, cmdptr, cmd_action); | 1267 | ret = lbs_cmd_mac_multicast_adr(priv, cmdptr, cmd_action); |
1268 | break; | 1268 | break; |
1269 | 1269 | ||
1270 | case CMD_802_11_MONITOR_MODE: | 1270 | case CMD_802_11_MONITOR_MODE: |
1271 | ret = wlan_cmd_802_11_monitor_mode(priv, cmdptr, | 1271 | ret = lbs_cmd_802_11_monitor_mode(priv, cmdptr, |
1272 | cmd_action, pdata_buf); | 1272 | cmd_action, pdata_buf); |
1273 | break; | 1273 | break; |
1274 | 1274 | ||
1275 | case CMD_802_11_AD_HOC_JOIN: | 1275 | case CMD_802_11_AD_HOC_JOIN: |
1276 | ret = libertas_cmd_80211_ad_hoc_join(priv, cmdptr, pdata_buf); | 1276 | ret = lbs_cmd_80211_ad_hoc_join(priv, cmdptr, pdata_buf); |
1277 | break; | 1277 | break; |
1278 | 1278 | ||
1279 | case CMD_802_11_RSSI: | 1279 | case CMD_802_11_RSSI: |
1280 | ret = wlan_cmd_802_11_rssi(priv, cmdptr); | 1280 | ret = lbs_cmd_802_11_rssi(priv, cmdptr); |
1281 | break; | 1281 | break; |
1282 | 1282 | ||
1283 | case CMD_802_11_AD_HOC_STOP: | 1283 | case CMD_802_11_AD_HOC_STOP: |
1284 | ret = libertas_cmd_80211_ad_hoc_stop(priv, cmdptr); | 1284 | ret = lbs_cmd_80211_ad_hoc_stop(priv, cmdptr); |
1285 | break; | 1285 | break; |
1286 | 1286 | ||
1287 | case CMD_802_11_ENABLE_RSN: | 1287 | case CMD_802_11_ENABLE_RSN: |
1288 | ret = wlan_cmd_802_11_enable_rsn(priv, cmdptr, cmd_action, | 1288 | ret = lbs_cmd_802_11_enable_rsn(priv, cmdptr, cmd_action, |
1289 | pdata_buf); | 1289 | pdata_buf); |
1290 | break; | 1290 | break; |
1291 | 1291 | ||
1292 | case CMD_802_11_KEY_MATERIAL: | 1292 | case CMD_802_11_KEY_MATERIAL: |
1293 | ret = wlan_cmd_802_11_key_material(priv, cmdptr, cmd_action, | 1293 | ret = lbs_cmd_802_11_key_material(priv, cmdptr, cmd_action, |
1294 | cmd_oid, pdata_buf); | 1294 | cmd_oid, pdata_buf); |
1295 | break; | 1295 | break; |
1296 | 1296 | ||
@@ -1300,11 +1300,11 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1300 | break; | 1300 | break; |
1301 | 1301 | ||
1302 | case CMD_802_11_MAC_ADDRESS: | 1302 | case CMD_802_11_MAC_ADDRESS: |
1303 | ret = wlan_cmd_802_11_mac_address(priv, cmdptr, cmd_action); | 1303 | ret = lbs_cmd_802_11_mac_address(priv, cmdptr, cmd_action); |
1304 | break; | 1304 | break; |
1305 | 1305 | ||
1306 | case CMD_802_11_EEPROM_ACCESS: | 1306 | case CMD_802_11_EEPROM_ACCESS: |
1307 | ret = wlan_cmd_802_11_eeprom_access(priv, cmdptr, | 1307 | ret = lbs_cmd_802_11_eeprom_access(priv, cmdptr, |
1308 | cmd_action, pdata_buf); | 1308 | cmd_action, pdata_buf); |
1309 | break; | 1309 | break; |
1310 | 1310 | ||
@@ -1322,17 +1322,17 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1322 | goto done; | 1322 | goto done; |
1323 | 1323 | ||
1324 | case CMD_802_11D_DOMAIN_INFO: | 1324 | case CMD_802_11D_DOMAIN_INFO: |
1325 | ret = libertas_cmd_802_11d_domain_info(priv, cmdptr, | 1325 | ret = lbs_cmd_802_11d_domain_info(priv, cmdptr, |
1326 | cmd_no, cmd_action); | 1326 | cmd_no, cmd_action); |
1327 | break; | 1327 | break; |
1328 | 1328 | ||
1329 | case CMD_802_11_SLEEP_PARAMS: | 1329 | case CMD_802_11_SLEEP_PARAMS: |
1330 | ret = wlan_cmd_802_11_sleep_params(priv, cmdptr, cmd_action); | 1330 | ret = lbs_cmd_802_11_sleep_params(priv, cmdptr, cmd_action); |
1331 | break; | 1331 | break; |
1332 | case CMD_802_11_INACTIVITY_TIMEOUT: | 1332 | case CMD_802_11_INACTIVITY_TIMEOUT: |
1333 | ret = wlan_cmd_802_11_inactivity_timeout(priv, cmdptr, | 1333 | ret = lbs_cmd_802_11_inactivity_timeout(priv, cmdptr, |
1334 | cmd_action, pdata_buf); | 1334 | cmd_action, pdata_buf); |
1335 | libertas_set_cmd_ctrl_node(priv, cmdnode, 0, 0, pdata_buf); | 1335 | lbs_set_cmd_ctrl_node(priv, cmdnode, 0, 0, pdata_buf); |
1336 | break; | 1336 | break; |
1337 | 1337 | ||
1338 | case CMD_802_11_TPC_CFG: | 1338 | case CMD_802_11_TPC_CFG: |
@@ -1379,19 +1379,19 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1379 | ret = 0; | 1379 | ret = 0; |
1380 | break; | 1380 | break; |
1381 | case CMD_BT_ACCESS: | 1381 | case CMD_BT_ACCESS: |
1382 | ret = wlan_cmd_bt_access(priv, cmdptr, cmd_action, pdata_buf); | 1382 | ret = lbs_cmd_bt_access(priv, cmdptr, cmd_action, pdata_buf); |
1383 | break; | 1383 | break; |
1384 | 1384 | ||
1385 | case CMD_FWT_ACCESS: | 1385 | case CMD_FWT_ACCESS: |
1386 | ret = wlan_cmd_fwt_access(priv, cmdptr, cmd_action, pdata_buf); | 1386 | ret = lbs_cmd_fwt_access(priv, cmdptr, cmd_action, pdata_buf); |
1387 | break; | 1387 | break; |
1388 | 1388 | ||
1389 | case CMD_MESH_ACCESS: | 1389 | case CMD_MESH_ACCESS: |
1390 | ret = wlan_cmd_mesh_access(priv, cmdptr, cmd_action, pdata_buf); | 1390 | ret = lbs_cmd_mesh_access(priv, cmdptr, cmd_action, pdata_buf); |
1391 | break; | 1391 | break; |
1392 | 1392 | ||
1393 | case CMD_SET_BOOT2_VER: | 1393 | case CMD_SET_BOOT2_VER: |
1394 | ret = wlan_cmd_set_boot2_ver(priv, cmdptr, cmd_action, pdata_buf); | 1394 | ret = lbs_cmd_set_boot2_ver(priv, cmdptr, cmd_action, pdata_buf); |
1395 | break; | 1395 | break; |
1396 | 1396 | ||
1397 | case CMD_GET_TSF: | 1397 | case CMD_GET_TSF: |
@@ -1409,14 +1409,14 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1409 | /* return error, since the command preparation failed */ | 1409 | /* return error, since the command preparation failed */ |
1410 | if (ret != 0) { | 1410 | if (ret != 0) { |
1411 | lbs_deb_host("PREP_CMD: command preparation failed\n"); | 1411 | lbs_deb_host("PREP_CMD: command preparation failed\n"); |
1412 | libertas_cleanup_and_insert_cmd(priv, cmdnode); | 1412 | lbs_cleanup_and_insert_cmd(priv, cmdnode); |
1413 | ret = -1; | 1413 | ret = -1; |
1414 | goto done; | 1414 | goto done; |
1415 | } | 1415 | } |
1416 | 1416 | ||
1417 | cmdnode->cmdwaitqwoken = 0; | 1417 | cmdnode->cmdwaitqwoken = 0; |
1418 | 1418 | ||
1419 | libertas_queue_cmd(adapter, cmdnode, 1); | 1419 | lbs_queue_cmd(adapter, cmdnode, 1); |
1420 | wake_up_interruptible(&priv->waitq); | 1420 | wake_up_interruptible(&priv->waitq); |
1421 | 1421 | ||
1422 | if (wait_option & CMD_OPTION_WAITFORRSP) { | 1422 | if (wait_option & CMD_OPTION_WAITFORRSP) { |
@@ -1439,23 +1439,23 @@ done: | |||
1439 | lbs_deb_leave_args(LBS_DEB_HOST, "ret %d", ret); | 1439 | lbs_deb_leave_args(LBS_DEB_HOST, "ret %d", ret); |
1440 | return ret; | 1440 | return ret; |
1441 | } | 1441 | } |
1442 | EXPORT_SYMBOL_GPL(libertas_prepare_and_send_command); | 1442 | EXPORT_SYMBOL_GPL(lbs_prepare_and_send_command); |
1443 | 1443 | ||
1444 | /** | 1444 | /** |
1445 | * @brief This function allocates the command buffer and link | 1445 | * @brief This function allocates the command buffer and link |
1446 | * it to command free queue. | 1446 | * it to command free queue. |
1447 | * | 1447 | * |
1448 | * @param priv A pointer to wlan_private structure | 1448 | * @param priv A pointer to lbs_private structure |
1449 | * @return 0 or -1 | 1449 | * @return 0 or -1 |
1450 | */ | 1450 | */ |
1451 | int libertas_allocate_cmd_buffer(wlan_private * priv) | 1451 | int lbs_allocate_cmd_buffer(lbs_private * priv) |
1452 | { | 1452 | { |
1453 | int ret = 0; | 1453 | int ret = 0; |
1454 | u32 ulbufsize; | 1454 | u32 ulbufsize; |
1455 | u32 i; | 1455 | u32 i; |
1456 | struct cmd_ctrl_node *tempcmd_array; | 1456 | struct cmd_ctrl_node *tempcmd_array; |
1457 | u8 *ptempvirtualaddr; | 1457 | u8 *ptempvirtualaddr; |
1458 | wlan_adapter *adapter = priv->adapter; | 1458 | lbs_adapter *adapter = priv->adapter; |
1459 | 1459 | ||
1460 | lbs_deb_enter(LBS_DEB_HOST); | 1460 | lbs_deb_enter(LBS_DEB_HOST); |
1461 | 1461 | ||
@@ -1484,7 +1484,7 @@ int libertas_allocate_cmd_buffer(wlan_private * priv) | |||
1484 | 1484 | ||
1485 | for (i = 0; i < MRVDRV_NUM_OF_CMD_BUFFER; i++) { | 1485 | for (i = 0; i < MRVDRV_NUM_OF_CMD_BUFFER; i++) { |
1486 | init_waitqueue_head(&tempcmd_array[i].cmdwait_q); | 1486 | init_waitqueue_head(&tempcmd_array[i].cmdwait_q); |
1487 | libertas_cleanup_and_insert_cmd(priv, &tempcmd_array[i]); | 1487 | lbs_cleanup_and_insert_cmd(priv, &tempcmd_array[i]); |
1488 | } | 1488 | } |
1489 | 1489 | ||
1490 | ret = 0; | 1490 | ret = 0; |
@@ -1497,15 +1497,15 @@ done: | |||
1497 | /** | 1497 | /** |
1498 | * @brief This function frees the command buffer. | 1498 | * @brief This function frees the command buffer. |
1499 | * | 1499 | * |
1500 | * @param priv A pointer to wlan_private structure | 1500 | * @param priv A pointer to lbs_private structure |
1501 | * @return 0 or -1 | 1501 | * @return 0 or -1 |
1502 | */ | 1502 | */ |
1503 | int libertas_free_cmd_buffer(wlan_private * priv) | 1503 | int lbs_free_cmd_buffer(lbs_private * priv) |
1504 | { | 1504 | { |
1505 | u32 ulbufsize; /* Someone needs to die for this. Slowly and painfully */ | 1505 | u32 ulbufsize; /* Someone needs to die for this. Slowly and painfully */ |
1506 | unsigned int i; | 1506 | unsigned int i; |
1507 | struct cmd_ctrl_node *tempcmd_array; | 1507 | struct cmd_ctrl_node *tempcmd_array; |
1508 | wlan_adapter *adapter = priv->adapter; | 1508 | lbs_adapter *adapter = priv->adapter; |
1509 | 1509 | ||
1510 | lbs_deb_enter(LBS_DEB_HOST); | 1510 | lbs_deb_enter(LBS_DEB_HOST); |
1511 | 1511 | ||
@@ -1541,13 +1541,13 @@ done: | |||
1541 | * @brief This function gets a free command node if available in | 1541 | * @brief This function gets a free command node if available in |
1542 | * command free queue. | 1542 | * command free queue. |
1543 | * | 1543 | * |
1544 | * @param priv A pointer to wlan_private structure | 1544 | * @param priv A pointer to lbs_private structure |
1545 | * @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or NULL | 1545 | * @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or NULL |
1546 | */ | 1546 | */ |
1547 | struct cmd_ctrl_node *libertas_get_free_cmd_ctrl_node(wlan_private * priv) | 1547 | struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(lbs_private * priv) |
1548 | { | 1548 | { |
1549 | struct cmd_ctrl_node *tempnode; | 1549 | struct cmd_ctrl_node *tempnode; |
1550 | wlan_adapter *adapter = priv->adapter; | 1550 | lbs_adapter *adapter = priv->adapter; |
1551 | unsigned long flags; | 1551 | unsigned long flags; |
1552 | 1552 | ||
1553 | lbs_deb_enter(LBS_DEB_HOST); | 1553 | lbs_deb_enter(LBS_DEB_HOST); |
@@ -1602,14 +1602,14 @@ static void cleanup_cmdnode(struct cmd_ctrl_node *ptempnode) | |||
1602 | /** | 1602 | /** |
1603 | * @brief This function initializes the command node. | 1603 | * @brief This function initializes the command node. |
1604 | * | 1604 | * |
1605 | * @param priv A pointer to wlan_private structure | 1605 | * @param priv A pointer to lbs_private structure |
1606 | * @param ptempnode A pointer to cmd_ctrl_node structure | 1606 | * @param ptempnode A pointer to cmd_ctrl_node structure |
1607 | * @param cmd_oid cmd oid: treated as sub command | 1607 | * @param cmd_oid cmd oid: treated as sub command |
1608 | * @param wait_option wait option: wait response or not | 1608 | * @param wait_option wait option: wait response or not |
1609 | * @param pdata_buf A pointer to informaion buffer | 1609 | * @param pdata_buf A pointer to informaion buffer |
1610 | * @return 0 or -1 | 1610 | * @return 0 or -1 |
1611 | */ | 1611 | */ |
1612 | void libertas_set_cmd_ctrl_node(wlan_private * priv, | 1612 | void lbs_set_cmd_ctrl_node(lbs_private * priv, |
1613 | struct cmd_ctrl_node *ptempnode, | 1613 | struct cmd_ctrl_node *ptempnode, |
1614 | u32 cmd_oid, u16 wait_option, void *pdata_buf) | 1614 | u32 cmd_oid, u16 wait_option, void *pdata_buf) |
1615 | { | 1615 | { |
@@ -1630,19 +1630,19 @@ void libertas_set_cmd_ctrl_node(wlan_private * priv, | |||
1630 | * pending queue. It will put fimware back to PS mode | 1630 | * pending queue. It will put fimware back to PS mode |
1631 | * if applicable. | 1631 | * if applicable. |
1632 | * | 1632 | * |
1633 | * @param priv A pointer to wlan_private structure | 1633 | * @param priv A pointer to lbs_private structure |
1634 | * @return 0 or -1 | 1634 | * @return 0 or -1 |
1635 | */ | 1635 | */ |
1636 | int libertas_execute_next_command(wlan_private * priv) | 1636 | int lbs_execute_next_command(lbs_private * priv) |
1637 | { | 1637 | { |
1638 | wlan_adapter *adapter = priv->adapter; | 1638 | lbs_adapter *adapter = priv->adapter; |
1639 | struct cmd_ctrl_node *cmdnode = NULL; | 1639 | struct cmd_ctrl_node *cmdnode = NULL; |
1640 | struct cmd_ds_command *cmdptr; | 1640 | struct cmd_ds_command *cmdptr; |
1641 | unsigned long flags; | 1641 | unsigned long flags; |
1642 | int ret = 0; | 1642 | int ret = 0; |
1643 | 1643 | ||
1644 | // Debug group is LBS_DEB_THREAD and not LBS_DEB_HOST, because the | 1644 | // Debug group is LBS_DEB_THREAD and not LBS_DEB_HOST, because the |
1645 | // only caller to us is libertas_thread() and we get even when a | 1645 | // only caller to us is lbs_thread() and we get even when a |
1646 | // data packet is received | 1646 | // data packet is received |
1647 | lbs_deb_enter(LBS_DEB_THREAD); | 1647 | lbs_deb_enter(LBS_DEB_THREAD); |
1648 | 1648 | ||
@@ -1683,7 +1683,7 @@ int libertas_execute_next_command(wlan_private * priv) | |||
1683 | /* | 1683 | /* |
1684 | * 1. Non-PS command: | 1684 | * 1. Non-PS command: |
1685 | * Queue it. set needtowakeup to TRUE if current state | 1685 | * Queue it. set needtowakeup to TRUE if current state |
1686 | * is SLEEP, otherwise call libertas_ps_wakeup to send Exit_PS. | 1686 | * is SLEEP, otherwise call lbs_ps_wakeup to send Exit_PS. |
1687 | * 2. PS command but not Exit_PS: | 1687 | * 2. PS command but not Exit_PS: |
1688 | * Ignore it. | 1688 | * Ignore it. |
1689 | * 3. PS command Exit_PS: | 1689 | * 3. PS command Exit_PS: |
@@ -1702,7 +1702,7 @@ int libertas_execute_next_command(wlan_private * priv) | |||
1702 | since it is blocked in main_thread. */ | 1702 | since it is blocked in main_thread. */ |
1703 | adapter->needtowakeup = 1; | 1703 | adapter->needtowakeup = 1; |
1704 | } else | 1704 | } else |
1705 | libertas_ps_wakeup(priv, 0); | 1705 | lbs_ps_wakeup(priv, 0); |
1706 | 1706 | ||
1707 | ret = 0; | 1707 | ret = 0; |
1708 | goto done; | 1708 | goto done; |
@@ -1722,7 +1722,7 @@ int libertas_execute_next_command(wlan_private * priv) | |||
1722 | lbs_deb_host( | 1722 | lbs_deb_host( |
1723 | "EXEC_NEXT_CMD: ignore ENTER_PS cmd\n"); | 1723 | "EXEC_NEXT_CMD: ignore ENTER_PS cmd\n"); |
1724 | list_del((struct list_head *)cmdnode); | 1724 | list_del((struct list_head *)cmdnode); |
1725 | libertas_cleanup_and_insert_cmd(priv, cmdnode); | 1725 | lbs_cleanup_and_insert_cmd(priv, cmdnode); |
1726 | 1726 | ||
1727 | ret = 0; | 1727 | ret = 0; |
1728 | goto done; | 1728 | goto done; |
@@ -1733,7 +1733,7 @@ int libertas_execute_next_command(wlan_private * priv) | |||
1733 | lbs_deb_host( | 1733 | lbs_deb_host( |
1734 | "EXEC_NEXT_CMD: ignore EXIT_PS cmd in sleep\n"); | 1734 | "EXEC_NEXT_CMD: ignore EXIT_PS cmd in sleep\n"); |
1735 | list_del((struct list_head *)cmdnode); | 1735 | list_del((struct list_head *)cmdnode); |
1736 | libertas_cleanup_and_insert_cmd(priv, cmdnode); | 1736 | lbs_cleanup_and_insert_cmd(priv, cmdnode); |
1737 | adapter->needtowakeup = 1; | 1737 | adapter->needtowakeup = 1; |
1738 | 1738 | ||
1739 | ret = 0; | 1739 | ret = 0; |
@@ -1753,9 +1753,9 @@ int libertas_execute_next_command(wlan_private * priv) | |||
1753 | * check if in power save mode, if yes, put the device back | 1753 | * check if in power save mode, if yes, put the device back |
1754 | * to PS mode | 1754 | * to PS mode |
1755 | */ | 1755 | */ |
1756 | if ((adapter->psmode != WLAN802_11POWERMODECAM) && | 1756 | if ((adapter->psmode != LBS802_11POWERMODECAM) && |
1757 | (adapter->psstate == PS_STATE_FULL_POWER) && | 1757 | (adapter->psstate == PS_STATE_FULL_POWER) && |
1758 | (adapter->connect_status == LIBERTAS_CONNECTED)) { | 1758 | (adapter->connect_status == LBS_CONNECTED)) { |
1759 | if (adapter->secinfo.WPAenabled || | 1759 | if (adapter->secinfo.WPAenabled || |
1760 | adapter->secinfo.WPA2enabled) { | 1760 | adapter->secinfo.WPA2enabled) { |
1761 | /* check for valid WPA group keys */ | 1761 | /* check for valid WPA group keys */ |
@@ -1764,13 +1764,13 @@ int libertas_execute_next_command(wlan_private * priv) | |||
1764 | lbs_deb_host( | 1764 | lbs_deb_host( |
1765 | "EXEC_NEXT_CMD: WPA enabled and GTK_SET" | 1765 | "EXEC_NEXT_CMD: WPA enabled and GTK_SET" |
1766 | " go back to PS_SLEEP"); | 1766 | " go back to PS_SLEEP"); |
1767 | libertas_ps_sleep(priv, 0); | 1767 | lbs_ps_sleep(priv, 0); |
1768 | } | 1768 | } |
1769 | } else { | 1769 | } else { |
1770 | lbs_deb_host( | 1770 | lbs_deb_host( |
1771 | "EXEC_NEXT_CMD: cmdpendingq empty, " | 1771 | "EXEC_NEXT_CMD: cmdpendingq empty, " |
1772 | "go back to PS_SLEEP"); | 1772 | "go back to PS_SLEEP"); |
1773 | libertas_ps_sleep(priv, 0); | 1773 | lbs_ps_sleep(priv, 0); |
1774 | } | 1774 | } |
1775 | } | 1775 | } |
1776 | } | 1776 | } |
@@ -1781,7 +1781,7 @@ done: | |||
1781 | return ret; | 1781 | return ret; |
1782 | } | 1782 | } |
1783 | 1783 | ||
1784 | void libertas_send_iwevcustom_event(wlan_private * priv, s8 * str) | 1784 | void lbs_send_iwevcustom_event(lbs_private *priv, s8 *str) |
1785 | { | 1785 | { |
1786 | union iwreq_data iwrq; | 1786 | union iwreq_data iwrq; |
1787 | u8 buf[50]; | 1787 | u8 buf[50]; |
@@ -1805,10 +1805,10 @@ void libertas_send_iwevcustom_event(wlan_private * priv, s8 * str) | |||
1805 | lbs_deb_leave(LBS_DEB_WEXT); | 1805 | lbs_deb_leave(LBS_DEB_WEXT); |
1806 | } | 1806 | } |
1807 | 1807 | ||
1808 | static int sendconfirmsleep(wlan_private * priv, u8 * cmdptr, u16 size) | 1808 | static int sendconfirmsleep(lbs_private *priv, u8 *cmdptr, u16 size) |
1809 | { | 1809 | { |
1810 | unsigned long flags; | 1810 | unsigned long flags; |
1811 | wlan_adapter *adapter = priv->adapter; | 1811 | lbs_adapter *adapter = priv->adapter; |
1812 | int ret = 0; | 1812 | int ret = 0; |
1813 | 1813 | ||
1814 | lbs_deb_enter(LBS_DEB_HOST); | 1814 | lbs_deb_enter(LBS_DEB_HOST); |
@@ -1847,7 +1847,7 @@ static int sendconfirmsleep(wlan_private * priv, u8 * cmdptr, u16 size) | |||
1847 | return ret; | 1847 | return ret; |
1848 | } | 1848 | } |
1849 | 1849 | ||
1850 | void libertas_ps_sleep(wlan_private * priv, int wait_option) | 1850 | void lbs_ps_sleep(lbs_private * priv, int wait_option) |
1851 | { | 1851 | { |
1852 | lbs_deb_enter(LBS_DEB_HOST); | 1852 | lbs_deb_enter(LBS_DEB_HOST); |
1853 | 1853 | ||
@@ -1856,7 +1856,7 @@ void libertas_ps_sleep(wlan_private * priv, int wait_option) | |||
1856 | * Remove this check if it is to be supported in IBSS mode also | 1856 | * Remove this check if it is to be supported in IBSS mode also |
1857 | */ | 1857 | */ |
1858 | 1858 | ||
1859 | libertas_prepare_and_send_command(priv, CMD_802_11_PS_MODE, | 1859 | lbs_prepare_and_send_command(priv, CMD_802_11_PS_MODE, |
1860 | CMD_SUBCMD_ENTER_PS, wait_option, 0, NULL); | 1860 | CMD_SUBCMD_ENTER_PS, wait_option, 0, NULL); |
1861 | 1861 | ||
1862 | lbs_deb_leave(LBS_DEB_HOST); | 1862 | lbs_deb_leave(LBS_DEB_HOST); |
@@ -1865,19 +1865,19 @@ void libertas_ps_sleep(wlan_private * priv, int wait_option) | |||
1865 | /** | 1865 | /** |
1866 | * @brief This function sends Exit_PS command to firmware. | 1866 | * @brief This function sends Exit_PS command to firmware. |
1867 | * | 1867 | * |
1868 | * @param priv A pointer to wlan_private structure | 1868 | * @param priv A pointer to lbs_private structure |
1869 | * @param wait_option wait response or not | 1869 | * @param wait_option wait response or not |
1870 | * @return n/a | 1870 | * @return n/a |
1871 | */ | 1871 | */ |
1872 | void libertas_ps_wakeup(wlan_private * priv, int wait_option) | 1872 | void lbs_ps_wakeup(lbs_private * priv, int wait_option) |
1873 | { | 1873 | { |
1874 | __le32 Localpsmode; | 1874 | __le32 Localpsmode; |
1875 | 1875 | ||
1876 | lbs_deb_enter(LBS_DEB_HOST); | 1876 | lbs_deb_enter(LBS_DEB_HOST); |
1877 | 1877 | ||
1878 | Localpsmode = cpu_to_le32(WLAN802_11POWERMODECAM); | 1878 | Localpsmode = cpu_to_le32(LBS802_11POWERMODECAM); |
1879 | 1879 | ||
1880 | libertas_prepare_and_send_command(priv, CMD_802_11_PS_MODE, | 1880 | lbs_prepare_and_send_command(priv, CMD_802_11_PS_MODE, |
1881 | CMD_SUBCMD_EXIT_PS, | 1881 | CMD_SUBCMD_EXIT_PS, |
1882 | wait_option, 0, &Localpsmode); | 1882 | wait_option, 0, &Localpsmode); |
1883 | 1883 | ||
@@ -1888,14 +1888,14 @@ void libertas_ps_wakeup(wlan_private * priv, int wait_option) | |||
1888 | * @brief This function checks condition and prepares to | 1888 | * @brief This function checks condition and prepares to |
1889 | * send sleep confirm command to firmware if ok. | 1889 | * send sleep confirm command to firmware if ok. |
1890 | * | 1890 | * |
1891 | * @param priv A pointer to wlan_private structure | 1891 | * @param priv A pointer to lbs_private structure |
1892 | * @param psmode Power Saving mode | 1892 | * @param psmode Power Saving mode |
1893 | * @return n/a | 1893 | * @return n/a |
1894 | */ | 1894 | */ |
1895 | void libertas_ps_confirm_sleep(wlan_private * priv, u16 psmode) | 1895 | void lbs_ps_confirm_sleep(lbs_private * priv, u16 psmode) |
1896 | { | 1896 | { |
1897 | unsigned long flags =0; | 1897 | unsigned long flags =0; |
1898 | wlan_adapter *adapter = priv->adapter; | 1898 | lbs_adapter *adapter = priv->adapter; |
1899 | u8 allowed = 1; | 1899 | u8 allowed = 1; |
1900 | 1900 | ||
1901 | lbs_deb_enter(LBS_DEB_HOST); | 1901 | lbs_deb_enter(LBS_DEB_HOST); |
@@ -1917,8 +1917,8 @@ void libertas_ps_confirm_sleep(wlan_private * priv, u16 psmode) | |||
1917 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 1917 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
1918 | 1918 | ||
1919 | if (allowed) { | 1919 | if (allowed) { |
1920 | lbs_deb_host("sending libertas_ps_confirm_sleep\n"); | 1920 | lbs_deb_host("sending lbs_ps_confirm_sleep\n"); |
1921 | sendconfirmsleep(priv, (u8 *) & adapter->libertas_ps_confirm_sleep, | 1921 | sendconfirmsleep(priv, (u8 *) & adapter->lbs_ps_confirm_sleep, |
1922 | sizeof(struct PS_CMD_ConfirmSleep)); | 1922 | sizeof(struct PS_CMD_ConfirmSleep)); |
1923 | } else { | 1923 | } else { |
1924 | lbs_deb_host("sleep confirm has been delayed\n"); | 1924 | lbs_deb_host("sleep confirm has been delayed\n"); |