libertas: remove handling for CMD_802_11_LED_GPIO_CTRL
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 22 Oct 2009 13:30:53 +0000 (15:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Oct 2009 20:48:38 +0000 (16:48 -0400)
... which just resided as an old-style command in cmd/cmdresp, but
was nowhere useed. If we ever need it, we can re-add it as a newstyle
command.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/cmdresp.c

index 7ddab10f0bd5a0ca720fb7f3f94426493e7d5e8c..5faa987a8c72574d723975ef51df6860d3184ef6 100644 (file)
@@ -1180,29 +1180,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
 
                ret = 0;
                break;
-       case CMD_802_11_LED_GPIO_CTRL:
-               {
-                       struct mrvl_ie_ledgpio *gpio =
-                           (struct mrvl_ie_ledgpio*)
-                           cmdptr->params.ledgpio.data;
-
-                       memmove(&cmdptr->params.ledgpio,
-                               pdata_buf,
-                               sizeof(struct cmd_ds_802_11_led_ctrl));
-
-                       cmdptr->command =
-                           cpu_to_le16(CMD_802_11_LED_GPIO_CTRL);
-
-#define ACTION_NUMLED_TLVTYPE_LEN_FIELDS_LEN 8
-                       cmdptr->size =
-                           cpu_to_le16(le16_to_cpu(gpio->header.len)
-                               + S_DS_GEN
-                               + ACTION_NUMLED_TLVTYPE_LEN_FIELDS_LEN);
-                       gpio->header.len = gpio->header.len;
-
-                       ret = 0;
-                       break;
-               }
 
        case CMD_BT_ACCESS:
                ret = lbs_cmd_bt_access(cmdptr, cmd_action, pdata_buf);
index 0312f2496f74763bfca63f9a0ae214d08ca5cd63..87c24e5a173b12b518ce1f0f202f41624c4f38de 100644 (file)
@@ -187,12 +187,6 @@ static inline int handle_cmd_response(struct lbs_private *priv,
                        sizeof(struct cmd_ds_802_11_tpc_cfg));
                spin_unlock_irqrestore(&priv->driver_lock, flags);
                break;
-       case CMD_RET(CMD_802_11_LED_GPIO_CTRL):
-               spin_lock_irqsave(&priv->driver_lock, flags);
-               memmove((void *)priv->cur_cmd->callback_arg, &resp->params.ledgpio,
-                       sizeof(struct cmd_ds_802_11_led_ctrl));
-               spin_unlock_irqrestore(&priv->driver_lock, flags);
-               break;
 
        case CMD_RET(CMD_GET_TSF):
                spin_lock_irqsave(&priv->driver_lock, flags);