diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2009-10-22 09:30:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:38 -0400 |
commit | f57bd284e435d1ddf69b4266f63d856865152271 (patch) | |
tree | 739fcf82f39e5ecb1a93e07bc84de163a0728d0f | |
parent | 6e85e0b7ab1cafd6ff63c391d231b5a39934802e (diff) |
libertas: remove handling for CMD_802_11_LED_GPIO_CTRL
... 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>
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 23 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 6 |
2 files changed, 0 insertions, 29 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 7ddab10f0bd5..5faa987a8c72 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -1180,29 +1180,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv, | |||
1180 | 1180 | ||
1181 | ret = 0; | 1181 | ret = 0; |
1182 | break; | 1182 | break; |
1183 | case CMD_802_11_LED_GPIO_CTRL: | ||
1184 | { | ||
1185 | struct mrvl_ie_ledgpio *gpio = | ||
1186 | (struct mrvl_ie_ledgpio*) | ||
1187 | cmdptr->params.ledgpio.data; | ||
1188 | |||
1189 | memmove(&cmdptr->params.ledgpio, | ||
1190 | pdata_buf, | ||
1191 | sizeof(struct cmd_ds_802_11_led_ctrl)); | ||
1192 | |||
1193 | cmdptr->command = | ||
1194 | cpu_to_le16(CMD_802_11_LED_GPIO_CTRL); | ||
1195 | |||
1196 | #define ACTION_NUMLED_TLVTYPE_LEN_FIELDS_LEN 8 | ||
1197 | cmdptr->size = | ||
1198 | cpu_to_le16(le16_to_cpu(gpio->header.len) | ||
1199 | + S_DS_GEN | ||
1200 | + ACTION_NUMLED_TLVTYPE_LEN_FIELDS_LEN); | ||
1201 | gpio->header.len = gpio->header.len; | ||
1202 | |||
1203 | ret = 0; | ||
1204 | break; | ||
1205 | } | ||
1206 | 1183 | ||
1207 | case CMD_BT_ACCESS: | 1184 | case CMD_BT_ACCESS: |
1208 | ret = lbs_cmd_bt_access(cmdptr, cmd_action, pdata_buf); | 1185 | ret = lbs_cmd_bt_access(cmdptr, cmd_action, pdata_buf); |
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 0312f2496f74..87c24e5a173b 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -187,12 +187,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
187 | sizeof(struct cmd_ds_802_11_tpc_cfg)); | 187 | sizeof(struct cmd_ds_802_11_tpc_cfg)); |
188 | spin_unlock_irqrestore(&priv->driver_lock, flags); | 188 | spin_unlock_irqrestore(&priv->driver_lock, flags); |
189 | break; | 189 | break; |
190 | case CMD_RET(CMD_802_11_LED_GPIO_CTRL): | ||
191 | spin_lock_irqsave(&priv->driver_lock, flags); | ||
192 | memmove((void *)priv->cur_cmd->callback_arg, &resp->params.ledgpio, | ||
193 | sizeof(struct cmd_ds_802_11_led_ctrl)); | ||
194 | spin_unlock_irqrestore(&priv->driver_lock, flags); | ||
195 | break; | ||
196 | 190 | ||
197 | case CMD_RET(CMD_GET_TSF): | 191 | case CMD_RET(CMD_GET_TSF): |
198 | spin_lock_irqsave(&priv->driver_lock, flags); | 192 | spin_lock_irqsave(&priv->driver_lock, flags); |