]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
libertas: remove unused indirect TPC_CFG command leftovers
authorDan Williams <dcbw@redhat.com>
Tue, 27 Jul 2010 19:56:44 +0000 (12:56 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Jul 2010 19:07:30 +0000 (15:07 -0400)
These were no longer used but were left around; Transmit Power
Control is done through the lbs_set_tpc_cfg() function.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/cmdresp.c
drivers/net/wireless/libertas/host.h

index 2aa362fd1a96a86b5c4d363a075fe68e3f689af0..76a892eeef104bee777bc77a22d2ea58a8ae3402 100644 (file)
@@ -1217,18 +1217,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
                ret = 0;
                goto done;
 
-       case CMD_802_11_TPC_CFG:
-               cmdptr->command = cpu_to_le16(CMD_802_11_TPC_CFG);
-               cmdptr->size =
-                   cpu_to_le16(sizeof(struct cmd_ds_802_11_tpc_cfg) +
-                                    sizeof(struct cmd_header));
-
-               memmove(&cmdptr->params.tpccfg,
-                       pdata_buf, sizeof(struct cmd_ds_802_11_tpc_cfg));
-
-               ret = 0;
-               break;
-
 #ifdef CONFIG_LIBERTAS_MESH
 
        case CMD_BT_ACCESS:
index 35b8ceb4f09d03fc98c3fa1cd16968b5bdc85b78..6bc40c6a243fb6ebb5eae2e86638ffeedf56bc24 100644 (file)
@@ -125,13 +125,6 @@ static inline int handle_cmd_response(struct lbs_private *priv,
        case CMD_RET(CMD_802_11_BEACON_STOP):
                break;
 
-       case CMD_RET(CMD_802_11_TPC_CFG):
-               spin_lock_irqsave(&priv->driver_lock, flags);
-               memmove((void *)priv->cur_cmd->callback_arg, &resp->params.tpccfg,
-                       sizeof(struct cmd_ds_802_11_tpc_cfg));
-               spin_unlock_irqrestore(&priv->driver_lock, flags);
-               break;
-
        case CMD_RET(CMD_BT_ACCESS):
                spin_lock_irqsave(&priv->driver_lock, flags);
                if (priv->cur_cmd->callback_arg)
index ff42a08bb2d586561d50f9ad7b9af814d5ee11bd..f877bb886c884a6de23cd9f8791f95c376f11912 100644 (file)
@@ -965,7 +965,6 @@ struct cmd_ds_command {
                struct cmd_ds_bbp_reg_access bbpreg;
                struct cmd_ds_rf_reg_access rfreg;
 
-               struct cmd_ds_802_11_tpc_cfg tpccfg;
                struct cmd_ds_802_11_afc afc;
                struct cmd_ds_802_11_led_ctrl ledgpio;