aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmd.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2008-03-26 05:03:48 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-01 17:13:16 -0400
commit7460f5a69055357bf97f1890db547aba0c4bf2fa (patch)
tree57466a9c61f803b0bb2b7f65aa0b9a5c46100209 /drivers/net/wireless/libertas/cmd.c
parent2af9f039a17c0acd9e5b21d10058688687bad86d (diff)
libertas: convert CMD_802_11_EEPROM_ACCESS to a direct command
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.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index d396a5f06666..6e7bfb36b491 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -953,27 +953,6 @@ static int lbs_cmd_reg_access(struct cmd_ds_command *cmdptr,
953 return 0; 953 return 0;
954} 954}
955 955
956static int lbs_cmd_802_11_eeprom_access(struct cmd_ds_command *cmd,
957 void *pdata_buf)
958{
959 struct lbs_ioctl_regrdwr *ea = pdata_buf;
960
961 lbs_deb_enter(LBS_DEB_CMD);
962
963 cmd->command = cpu_to_le16(CMD_802_11_EEPROM_ACCESS);
964 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_eeprom_access) +
965 S_DS_GEN);
966 cmd->result = 0;
967
968 cmd->params.rdeeprom.action = cpu_to_le16(ea->action);
969 cmd->params.rdeeprom.offset = cpu_to_le16(ea->offset);
970 cmd->params.rdeeprom.bytecount = cpu_to_le16(ea->NOB);
971 cmd->params.rdeeprom.value = 0;
972
973 lbs_deb_leave(LBS_DEB_CMD);
974 return 0;
975}
976
977static int lbs_cmd_bt_access(struct cmd_ds_command *cmd, 956static int lbs_cmd_bt_access(struct cmd_ds_command *cmd,
978 u16 cmd_action, void *pdata_buf) 957 u16 cmd_action, void *pdata_buf)
979{ 958{
@@ -1412,10 +1391,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
1412 ret = lbs_cmd_80211_ad_hoc_stop(cmdptr); 1391 ret = lbs_cmd_80211_ad_hoc_stop(cmdptr);
1413 break; 1392 break;
1414 1393
1415 case CMD_802_11_EEPROM_ACCESS:
1416 ret = lbs_cmd_802_11_eeprom_access(cmdptr, pdata_buf);
1417 break;
1418
1419 case CMD_802_11_SET_AFC: 1394 case CMD_802_11_SET_AFC:
1420 case CMD_802_11_GET_AFC: 1395 case CMD_802_11_GET_AFC:
1421 1396