aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r--drivers/net/wireless/libertas/debugfs.c92
1 files changed, 46 insertions, 46 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c
index e5cbfa8d6e3f..a206f49f810c 100644
--- a/drivers/net/wireless/libertas/debugfs.c
+++ b/drivers/net/wireless/libertas/debugfs.c
@@ -125,9 +125,9 @@ static ssize_t libertas_sleepparams_write(struct file *file,
125 priv->adapter->sp.sp_reserved = p6; 125 priv->adapter->sp.sp_reserved = p6;
126 126
127 res = libertas_prepare_and_send_command(priv, 127 res = libertas_prepare_and_send_command(priv,
128 cmd_802_11_sleep_params, 128 CMD_802_11_SLEEP_PARAMS,
129 cmd_act_set, 129 CMD_ACT_SET,
130 cmd_option_waitforrsp, 0, NULL); 130 CMD_OPTION_WAITFORRSP, 0, NULL);
131 131
132 if (!res) 132 if (!res)
133 res = count; 133 res = count;
@@ -150,9 +150,9 @@ static ssize_t libertas_sleepparams_read(struct file *file, char __user *userbuf
150 char *buf = (char *)addr; 150 char *buf = (char *)addr;
151 151
152 res = libertas_prepare_and_send_command(priv, 152 res = libertas_prepare_and_send_command(priv,
153 cmd_802_11_sleep_params, 153 CMD_802_11_SLEEP_PARAMS,
154 cmd_act_get, 154 CMD_ACT_GET,
155 cmd_option_waitforrsp, 0, NULL); 155 CMD_OPTION_WAITFORRSP, 0, NULL);
156 if (res) { 156 if (res) {
157 res = -EFAULT; 157 res = -EFAULT;
158 goto out_unlock; 158 goto out_unlock;
@@ -386,7 +386,7 @@ static int libertas_event_initcmd(wlan_private *priv, void **response_buf,
386 struct cmd_ctrl_node **cmdnode, 386 struct cmd_ctrl_node **cmdnode,
387 struct cmd_ds_command **cmd) 387 struct cmd_ds_command **cmd)
388{ 388{
389 u16 wait_option = cmd_option_waitforrsp; 389 u16 wait_option = CMD_OPTION_WAITFORRSP;
390 390
391 if (!(*cmdnode = libertas_get_free_cmd_ctrl_node(priv))) { 391 if (!(*cmdnode = libertas_get_free_cmd_ctrl_node(priv))) {
392 lbs_deb_debugfs("failed libertas_get_free_cmd_ctrl_node\n"); 392 lbs_deb_debugfs("failed libertas_get_free_cmd_ctrl_node\n");
@@ -402,7 +402,7 @@ static int libertas_event_initcmd(wlan_private *priv, void **response_buf,
402 (*cmdnode)->cmdflags |= CMD_F_HOSTCMD; 402 (*cmdnode)->cmdflags |= CMD_F_HOSTCMD;
403 (*cmdnode)->cmdwaitqwoken = 0; 403 (*cmdnode)->cmdwaitqwoken = 0;
404 *cmd = (struct cmd_ds_command *)(*cmdnode)->bufvirtualaddr; 404 *cmd = (struct cmd_ds_command *)(*cmdnode)->bufvirtualaddr;
405 (*cmd)->command = cpu_to_le16(cmd_802_11_subscribe_event); 405 (*cmd)->command = cpu_to_le16(CMD_802_11_SUBSCRIBE_EVENT);
406 (*cmd)->seqnum = cpu_to_le16(++priv->adapter->seqnum); 406 (*cmd)->seqnum = cpu_to_le16(++priv->adapter->seqnum);
407 (*cmd)->result = 0; 407 (*cmd)->result = 0;
408 return 0; 408 return 0;
@@ -429,7 +429,7 @@ static ssize_t libertas_lowrssi_read(struct file *file, char __user *userbuf,
429 } 429 }
430 430
431 event = &pcmdptr->params.subscribe_event; 431 event = &pcmdptr->params.subscribe_event;
432 event->action = cpu_to_le16(cmd_act_get); 432 event->action = cpu_to_le16(CMD_ACT_GET);
433 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 433 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
434 libertas_queue_cmd(adapter, pcmdnode, 1); 434 libertas_queue_cmd(adapter, pcmdnode, 1);
435 wake_up_interruptible(&priv->mainthread.waitq); 435 wake_up_interruptible(&priv->mainthread.waitq);
@@ -447,7 +447,7 @@ static ssize_t libertas_lowrssi_read(struct file *file, char __user *userbuf,
447 return 0; 447 return 0;
448 } 448 }
449 449
450 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 450 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
451 lbs_pr_err("command response incorrect!\n"); 451 lbs_pr_err("command response incorrect!\n");
452 kfree(response_buf); 452 kfree(response_buf);
453 free_page(addr); 453 free_page(addr);
@@ -493,7 +493,7 @@ static u16 libertas_get_events_bitmap(wlan_private *priv)
493 return res; 493 return res;
494 494
495 event = &pcmdptr->params.subscribe_event; 495 event = &pcmdptr->params.subscribe_event;
496 event->action = cpu_to_le16(cmd_act_get); 496 event->action = cpu_to_le16(CMD_ACT_GET);
497 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 497 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
498 libertas_queue_cmd(adapter, pcmdnode, 1); 498 libertas_queue_cmd(adapter, pcmdnode, 1);
499 wake_up_interruptible(&priv->mainthread.waitq); 499 wake_up_interruptible(&priv->mainthread.waitq);
@@ -511,7 +511,7 @@ static u16 libertas_get_events_bitmap(wlan_private *priv)
511 return 0; 511 return 0;
512 } 512 }
513 513
514 if (pcmdptr->command != cmd_ret_802_11_subscribe_event) { 514 if (pcmdptr->command != CMD_RET_802_11_SUBSCRIBE_EVENT) {
515 lbs_pr_err("command response incorrect!\n"); 515 lbs_pr_err("command response incorrect!\n");
516 kfree(response_buf); 516 kfree(response_buf);
517 return 0; 517 return 0;
@@ -559,7 +559,7 @@ static ssize_t libertas_lowrssi_write(struct file *file,
559 goto out_unlock; 559 goto out_unlock;
560 560
561 event = &pcmdptr->params.subscribe_event; 561 event = &pcmdptr->params.subscribe_event;
562 event->action = cpu_to_le16(cmd_act_set); 562 event->action = cpu_to_le16(CMD_ACT_SET);
563 pcmdptr->size = cpu_to_le16(S_DS_GEN + 563 pcmdptr->size = cpu_to_le16(S_DS_GEN +
564 sizeof(struct cmd_ds_802_11_subscribe_event) + 564 sizeof(struct cmd_ds_802_11_subscribe_event) +
565 sizeof(struct mrvlietypes_rssithreshold)); 565 sizeof(struct mrvlietypes_rssithreshold));
@@ -591,7 +591,7 @@ static ssize_t libertas_lowrssi_write(struct file *file,
591 return 0; 591 return 0;
592 } 592 }
593 593
594 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 594 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
595 lbs_pr_err("command response incorrect!\n"); 595 lbs_pr_err("command response incorrect!\n");
596 kfree(response_buf); 596 kfree(response_buf);
597 free_page(addr); 597 free_page(addr);
@@ -625,7 +625,7 @@ static ssize_t libertas_lowsnr_read(struct file *file, char __user *userbuf,
625 } 625 }
626 626
627 event = &pcmdptr->params.subscribe_event; 627 event = &pcmdptr->params.subscribe_event;
628 event->action = cpu_to_le16(cmd_act_get); 628 event->action = cpu_to_le16(CMD_ACT_GET);
629 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 629 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
630 libertas_queue_cmd(adapter, pcmdnode, 1); 630 libertas_queue_cmd(adapter, pcmdnode, 1);
631 wake_up_interruptible(&priv->mainthread.waitq); 631 wake_up_interruptible(&priv->mainthread.waitq);
@@ -644,7 +644,7 @@ static ssize_t libertas_lowsnr_read(struct file *file, char __user *userbuf,
644 return 0; 644 return 0;
645 } 645 }
646 646
647 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 647 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
648 lbs_pr_err("command response incorrect!\n"); 648 lbs_pr_err("command response incorrect!\n");
649 kfree(response_buf); 649 kfree(response_buf);
650 free_page(addr); 650 free_page(addr);
@@ -712,7 +712,7 @@ static ssize_t libertas_lowsnr_write(struct file *file,
712 goto out_unlock; 712 goto out_unlock;
713 713
714 event = &pcmdptr->params.subscribe_event; 714 event = &pcmdptr->params.subscribe_event;
715 event->action = cpu_to_le16(cmd_act_set); 715 event->action = cpu_to_le16(CMD_ACT_SET);
716 pcmdptr->size = cpu_to_le16(S_DS_GEN + 716 pcmdptr->size = cpu_to_le16(S_DS_GEN +
717 sizeof(struct cmd_ds_802_11_subscribe_event) + 717 sizeof(struct cmd_ds_802_11_subscribe_event) +
718 sizeof(struct mrvlietypes_snrthreshold)); 718 sizeof(struct mrvlietypes_snrthreshold));
@@ -743,7 +743,7 @@ static ssize_t libertas_lowsnr_write(struct file *file,
743 return 0; 743 return 0;
744 } 744 }
745 745
746 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 746 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
747 lbs_pr_err("command response incorrect!\n"); 747 lbs_pr_err("command response incorrect!\n");
748 kfree(response_buf); 748 kfree(response_buf);
749 free_page(addr); 749 free_page(addr);
@@ -778,7 +778,7 @@ static ssize_t libertas_failcount_read(struct file *file, char __user *userbuf,
778 } 778 }
779 779
780 event = &pcmdptr->params.subscribe_event; 780 event = &pcmdptr->params.subscribe_event;
781 event->action = cpu_to_le16(cmd_act_get); 781 event->action = cpu_to_le16(CMD_ACT_GET);
782 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 782 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
783 libertas_queue_cmd(adapter, pcmdnode, 1); 783 libertas_queue_cmd(adapter, pcmdnode, 1);
784 wake_up_interruptible(&priv->mainthread.waitq); 784 wake_up_interruptible(&priv->mainthread.waitq);
@@ -797,7 +797,7 @@ static ssize_t libertas_failcount_read(struct file *file, char __user *userbuf,
797 return 0; 797 return 0;
798 } 798 }
799 799
800 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 800 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
801 lbs_pr_err("command response incorrect!\n"); 801 lbs_pr_err("command response incorrect!\n");
802 kfree(response_buf); 802 kfree(response_buf);
803 free_page(addr); 803 free_page(addr);
@@ -864,7 +864,7 @@ static ssize_t libertas_failcount_write(struct file *file,
864 goto out_unlock; 864 goto out_unlock;
865 865
866 event = &pcmdptr->params.subscribe_event; 866 event = &pcmdptr->params.subscribe_event;
867 event->action = cpu_to_le16(cmd_act_set); 867 event->action = cpu_to_le16(CMD_ACT_SET);
868 pcmdptr->size = cpu_to_le16(S_DS_GEN + 868 pcmdptr->size = cpu_to_le16(S_DS_GEN +
869 sizeof(struct cmd_ds_802_11_subscribe_event) + 869 sizeof(struct cmd_ds_802_11_subscribe_event) +
870 sizeof(struct mrvlietypes_failurecount)); 870 sizeof(struct mrvlietypes_failurecount));
@@ -895,7 +895,7 @@ static ssize_t libertas_failcount_write(struct file *file,
895 return 0; 895 return 0;
896 } 896 }
897 897
898 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 898 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
899 lbs_pr_err("command response incorrect!\n"); 899 lbs_pr_err("command response incorrect!\n");
900 kfree(response_buf); 900 kfree(response_buf);
901 free_page(addr); 901 free_page(addr);
@@ -929,7 +929,7 @@ static ssize_t libertas_bcnmiss_read(struct file *file, char __user *userbuf,
929 } 929 }
930 930
931 event = &pcmdptr->params.subscribe_event; 931 event = &pcmdptr->params.subscribe_event;
932 event->action = cpu_to_le16(cmd_act_get); 932 event->action = cpu_to_le16(CMD_ACT_GET);
933 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 933 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
934 libertas_queue_cmd(adapter, pcmdnode, 1); 934 libertas_queue_cmd(adapter, pcmdnode, 1);
935 wake_up_interruptible(&priv->mainthread.waitq); 935 wake_up_interruptible(&priv->mainthread.waitq);
@@ -948,7 +948,7 @@ static ssize_t libertas_bcnmiss_read(struct file *file, char __user *userbuf,
948 return 0; 948 return 0;
949 } 949 }
950 950
951 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 951 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
952 lbs_pr_err("command response incorrect!\n"); 952 lbs_pr_err("command response incorrect!\n");
953 free_page(addr); 953 free_page(addr);
954 kfree(response_buf); 954 kfree(response_buf);
@@ -1015,7 +1015,7 @@ static ssize_t libertas_bcnmiss_write(struct file *file,
1015 goto out_unlock; 1015 goto out_unlock;
1016 1016
1017 event = &pcmdptr->params.subscribe_event; 1017 event = &pcmdptr->params.subscribe_event;
1018 event->action = cpu_to_le16(cmd_act_set); 1018 event->action = cpu_to_le16(CMD_ACT_SET);
1019 pcmdptr->size = cpu_to_le16(S_DS_GEN + 1019 pcmdptr->size = cpu_to_le16(S_DS_GEN +
1020 sizeof(struct cmd_ds_802_11_subscribe_event) + 1020 sizeof(struct cmd_ds_802_11_subscribe_event) +
1021 sizeof(struct mrvlietypes_beaconsmissed)); 1021 sizeof(struct mrvlietypes_beaconsmissed));
@@ -1045,7 +1045,7 @@ static ssize_t libertas_bcnmiss_write(struct file *file,
1045 return 0; 1045 return 0;
1046 } 1046 }
1047 1047
1048 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 1048 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
1049 lbs_pr_err("command response incorrect!\n"); 1049 lbs_pr_err("command response incorrect!\n");
1050 free_page(addr); 1050 free_page(addr);
1051 kfree(response_buf); 1051 kfree(response_buf);
@@ -1079,7 +1079,7 @@ static ssize_t libertas_highrssi_read(struct file *file, char __user *userbuf,
1079 } 1079 }
1080 1080
1081 event = &pcmdptr->params.subscribe_event; 1081 event = &pcmdptr->params.subscribe_event;
1082 event->action = cpu_to_le16(cmd_act_get); 1082 event->action = cpu_to_le16(CMD_ACT_GET);
1083 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 1083 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
1084 libertas_queue_cmd(adapter, pcmdnode, 1); 1084 libertas_queue_cmd(adapter, pcmdnode, 1);
1085 wake_up_interruptible(&priv->mainthread.waitq); 1085 wake_up_interruptible(&priv->mainthread.waitq);
@@ -1098,7 +1098,7 @@ static ssize_t libertas_highrssi_read(struct file *file, char __user *userbuf,
1098 return 0; 1098 return 0;
1099 } 1099 }
1100 1100
1101 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 1101 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
1102 lbs_pr_err("command response incorrect!\n"); 1102 lbs_pr_err("command response incorrect!\n");
1103 kfree(response_buf); 1103 kfree(response_buf);
1104 free_page(addr); 1104 free_page(addr);
@@ -1166,7 +1166,7 @@ static ssize_t libertas_highrssi_write(struct file *file,
1166 goto out_unlock; 1166 goto out_unlock;
1167 1167
1168 event = &pcmdptr->params.subscribe_event; 1168 event = &pcmdptr->params.subscribe_event;
1169 event->action = cpu_to_le16(cmd_act_set); 1169 event->action = cpu_to_le16(CMD_ACT_SET);
1170 pcmdptr->size = cpu_to_le16(S_DS_GEN + 1170 pcmdptr->size = cpu_to_le16(S_DS_GEN +
1171 sizeof(struct cmd_ds_802_11_subscribe_event) + 1171 sizeof(struct cmd_ds_802_11_subscribe_event) +
1172 sizeof(struct mrvlietypes_rssithreshold)); 1172 sizeof(struct mrvlietypes_rssithreshold));
@@ -1196,7 +1196,7 @@ static ssize_t libertas_highrssi_write(struct file *file,
1196 return 0; 1196 return 0;
1197 } 1197 }
1198 1198
1199 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 1199 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
1200 lbs_pr_err("command response incorrect!\n"); 1200 lbs_pr_err("command response incorrect!\n");
1201 kfree(response_buf); 1201 kfree(response_buf);
1202 return 0; 1202 return 0;
@@ -1229,7 +1229,7 @@ static ssize_t libertas_highsnr_read(struct file *file, char __user *userbuf,
1229 } 1229 }
1230 1230
1231 event = &pcmdptr->params.subscribe_event; 1231 event = &pcmdptr->params.subscribe_event;
1232 event->action = cpu_to_le16(cmd_act_get); 1232 event->action = cpu_to_le16(CMD_ACT_GET);
1233 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 1233 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
1234 libertas_queue_cmd(adapter, pcmdnode, 1); 1234 libertas_queue_cmd(adapter, pcmdnode, 1);
1235 wake_up_interruptible(&priv->mainthread.waitq); 1235 wake_up_interruptible(&priv->mainthread.waitq);
@@ -1248,7 +1248,7 @@ static ssize_t libertas_highsnr_read(struct file *file, char __user *userbuf,
1248 return 0; 1248 return 0;
1249 } 1249 }
1250 1250
1251 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 1251 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
1252 lbs_pr_err("command response incorrect!\n"); 1252 lbs_pr_err("command response incorrect!\n");
1253 kfree(response_buf); 1253 kfree(response_buf);
1254 free_page(addr); 1254 free_page(addr);
@@ -1316,7 +1316,7 @@ static ssize_t libertas_highsnr_write(struct file *file,
1316 goto out_unlock; 1316 goto out_unlock;
1317 1317
1318 event = &pcmdptr->params.subscribe_event; 1318 event = &pcmdptr->params.subscribe_event;
1319 event->action = cpu_to_le16(cmd_act_set); 1319 event->action = cpu_to_le16(CMD_ACT_SET);
1320 pcmdptr->size = cpu_to_le16(S_DS_GEN + 1320 pcmdptr->size = cpu_to_le16(S_DS_GEN +
1321 sizeof(struct cmd_ds_802_11_subscribe_event) + 1321 sizeof(struct cmd_ds_802_11_subscribe_event) +
1322 sizeof(struct mrvlietypes_snrthreshold)); 1322 sizeof(struct mrvlietypes_snrthreshold));
@@ -1347,7 +1347,7 @@ static ssize_t libertas_highsnr_write(struct file *file,
1347 return 0; 1347 return 0;
1348 } 1348 }
1349 1349
1350 if (pcmdptr->command != cpu_to_le16(cmd_ret_802_11_subscribe_event)) { 1350 if (pcmdptr->command != cpu_to_le16(CMD_RET_802_11_SUBSCRIBE_EVENT)) {
1351 lbs_pr_err("command response incorrect!\n"); 1351 lbs_pr_err("command response incorrect!\n");
1352 kfree(response_buf); 1352 kfree(response_buf);
1353 free_page(addr); 1353 free_page(addr);
@@ -1375,8 +1375,8 @@ static ssize_t libertas_rdmac_read(struct file *file, char __user *userbuf,
1375 offval.value = 0; 1375 offval.value = 0;
1376 1376
1377 ret = libertas_prepare_and_send_command(priv, 1377 ret = libertas_prepare_and_send_command(priv,
1378 cmd_mac_reg_access, 0, 1378 CMD_MAC_REG_ACCESS, 0,
1379 cmd_option_waitforrsp, 0, &offval); 1379 CMD_OPTION_WAITFORRSP, 0, &offval);
1380 mdelay(10); 1380 mdelay(10);
1381 pos += snprintf(buf+pos, len-pos, "MAC[0x%x] = 0x%08x\n", 1381 pos += snprintf(buf+pos, len-pos, "MAC[0x%x] = 0x%08x\n",
1382 priv->mac_offset, adapter->offsetvalue.value); 1382 priv->mac_offset, adapter->offsetvalue.value);
@@ -1433,8 +1433,8 @@ static ssize_t libertas_wrmac_write(struct file *file,
1433 offval.offset = offset; 1433 offval.offset = offset;
1434 offval.value = value; 1434 offval.value = value;
1435 res = libertas_prepare_and_send_command(priv, 1435 res = libertas_prepare_and_send_command(priv,
1436 cmd_mac_reg_access, 1, 1436 CMD_MAC_REG_ACCESS, 1,
1437 cmd_option_waitforrsp, 0, &offval); 1437 CMD_OPTION_WAITFORRSP, 0, &offval);
1438 mdelay(10); 1438 mdelay(10);
1439 1439
1440 res = count; 1440 res = count;
@@ -1458,8 +1458,8 @@ static ssize_t libertas_rdbbp_read(struct file *file, char __user *userbuf,
1458 offval.value = 0; 1458 offval.value = 0;
1459 1459
1460 ret = libertas_prepare_and_send_command(priv, 1460 ret = libertas_prepare_and_send_command(priv,
1461 cmd_bbp_reg_access, 0, 1461 CMD_BBP_REG_ACCESS, 0,
1462 cmd_option_waitforrsp, 0, &offval); 1462 CMD_OPTION_WAITFORRSP, 0, &offval);
1463 mdelay(10); 1463 mdelay(10);
1464 pos += snprintf(buf+pos, len-pos, "BBP[0x%x] = 0x%08x\n", 1464 pos += snprintf(buf+pos, len-pos, "BBP[0x%x] = 0x%08x\n",
1465 priv->bbp_offset, adapter->offsetvalue.value); 1465 priv->bbp_offset, adapter->offsetvalue.value);
@@ -1517,8 +1517,8 @@ static ssize_t libertas_wrbbp_write(struct file *file,
1517 offval.offset = offset; 1517 offval.offset = offset;
1518 offval.value = value; 1518 offval.value = value;
1519 res = libertas_prepare_and_send_command(priv, 1519 res = libertas_prepare_and_send_command(priv,
1520 cmd_bbp_reg_access, 1, 1520 CMD_BBP_REG_ACCESS, 1,
1521 cmd_option_waitforrsp, 0, &offval); 1521 CMD_OPTION_WAITFORRSP, 0, &offval);
1522 mdelay(10); 1522 mdelay(10);
1523 1523
1524 res = count; 1524 res = count;
@@ -1542,8 +1542,8 @@ static ssize_t libertas_rdrf_read(struct file *file, char __user *userbuf,
1542 offval.value = 0; 1542 offval.value = 0;
1543 1543
1544 ret = libertas_prepare_and_send_command(priv, 1544 ret = libertas_prepare_and_send_command(priv,
1545 cmd_rf_reg_access, 0, 1545 CMD_RF_REG_ACCESS, 0,
1546 cmd_option_waitforrsp, 0, &offval); 1546 CMD_OPTION_WAITFORRSP, 0, &offval);
1547 mdelay(10); 1547 mdelay(10);
1548 pos += snprintf(buf+pos, len-pos, "RF[0x%x] = 0x%08x\n", 1548 pos += snprintf(buf+pos, len-pos, "RF[0x%x] = 0x%08x\n",
1549 priv->rf_offset, adapter->offsetvalue.value); 1549 priv->rf_offset, adapter->offsetvalue.value);
@@ -1601,8 +1601,8 @@ static ssize_t libertas_wrrf_write(struct file *file,
1601 offval.offset = offset; 1601 offval.offset = offset;
1602 offval.value = value; 1602 offval.value = value;
1603 res = libertas_prepare_and_send_command(priv, 1603 res = libertas_prepare_and_send_command(priv,
1604 cmd_rf_reg_access, 1, 1604 CMD_RF_REG_ACCESS, 1,
1605 cmd_option_waitforrsp, 0, &offval); 1605 CMD_OPTION_WAITFORRSP, 0, &offval);
1606 mdelay(10); 1606 mdelay(10);
1607 1607
1608 res = count; 1608 res = count;