libertas: remove CMD_802_11_PWR_CFG
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Wed, 26 Mar 2008 08:57:45 +0000 (09:57 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Mar 2008 20:03:19 +0000 (16:03 -0400)
This has nowhere been used. Note: in the firmware manual this was
documented as CMD_802_11_PA_CFG. If we ever need it, we can/should
re-implement it as 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>
drivers/net/wireless/libertas/cmd.c
drivers/net/wireless/libertas/cmdresp.c
drivers/net/wireless/libertas/host.h
drivers/net/wireless/libertas/hostcmd.h

index 59801f103e66b3ac2020133a47a7cf1262af7ad7..f3e0818d94a3ce1f8963b57f8940a8986a6ac809 100644 (file)
@@ -1496,16 +1496,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
                        break;
                }
 
-       case CMD_802_11_PWR_CFG:
-               cmdptr->command = cpu_to_le16(CMD_802_11_PWR_CFG);
-               cmdptr->size =
-                   cpu_to_le16(sizeof(struct cmd_ds_802_11_pwr_cfg) +
-                                    S_DS_GEN);
-               memmove(&cmdptr->params.pwrcfg, pdata_buf,
-                       sizeof(struct cmd_ds_802_11_pwr_cfg));
-
-               ret = 0;
-               break;
        case CMD_BT_ACCESS:
                ret = lbs_cmd_bt_access(cmdptr, cmd_action, pdata_buf);
                break;
index 888f92d8afc9c0b60d016254b904fe4012d0830d..711f5ebd13c0c2e6bebe8516edfd094133cdd43b 100644 (file)
@@ -397,14 +397,6 @@ static inline int handle_cmd_response(struct lbs_private *priv,
                spin_unlock_irqrestore(&priv->driver_lock, flags);
                break;
 
-       case CMD_RET(CMD_802_11_PWR_CFG):
-               spin_lock_irqsave(&priv->driver_lock, flags);
-               memmove((void *)priv->cur_cmd->callback_arg, &resp->params.pwrcfg,
-                       sizeof(struct cmd_ds_802_11_pwr_cfg));
-               spin_unlock_irqrestore(&priv->driver_lock, flags);
-
-               break;
-
        case CMD_RET(CMD_GET_TSF):
                spin_lock_irqsave(&priv->driver_lock, flags);
                memcpy((void *)priv->cur_cmd->callback_arg,
index aae878b042c0105af3076a71ded2d5ad66727315..3915c3144fad0e7d282b56d2cd6af0a6e8e4bbe6 100644 (file)
@@ -84,7 +84,6 @@
 #define CMD_802_11_INACTIVITY_TIMEOUT          0x0067
 #define CMD_802_11_SLEEP_PERIOD                        0x0068
 #define CMD_802_11_TPC_CFG                     0x0072
-#define CMD_802_11_PWR_CFG                     0x0073
 #define CMD_802_11_FW_WAKE_METHOD              0x0074
 #define CMD_802_11_SUBSCRIBE_EVENT             0x0075
 #define CMD_802_11_RATE_ADAPT_RATESET          0x0076
index acbcd56831cbc0097f0c8e70d149d71795e653f4..b8e372007bb9ad804ef070a0832c0ab508e6997b 100644 (file)
@@ -609,14 +609,6 @@ struct cmd_ds_802_11_led_ctrl {
        u8 data[256];
 } __attribute__ ((packed));
 
-struct cmd_ds_802_11_pwr_cfg {
-       __le16 action;
-       u8 enable;
-       s8 PA_P0;
-       s8 PA_P1;
-       s8 PA_P2;
-} __attribute__ ((packed));
-
 struct cmd_ds_802_11_afc {
        __le16 afc_auto;
        union {
@@ -726,7 +718,6 @@ struct cmd_ds_command {
                struct cmd_ds_802_11d_domain_info domaininforesp;
 
                struct cmd_ds_802_11_tpc_cfg tpccfg;
-               struct cmd_ds_802_11_pwr_cfg pwrcfg;
                struct cmd_ds_802_11_afc afc;
                struct cmd_ds_802_11_led_ctrl ledgpio;