mwifiex: remove 11N_CFG command response handler
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 11 Sep 2012 01:30:41 +0000 (18:30 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Sep 2012 19:31:49 +0000 (15:31 -0400)
HostCmd_CMD_11N_CFG is never called with GET action. So the code in
mwifiex_ret_11n_cfg() becomes redundant.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11n.c
drivers/net/wireless/mwifiex/11n.h
drivers/net/wireless/mwifiex/sta_cmdresp.c

index d2732736f8643ef367ff210ae207cfe16c2f1399..754b5546fe4001977f996cfe17b5ad6e259aa13e 100644 (file)
@@ -175,23 +175,6 @@ int mwifiex_ret_11n_addba_req(struct mwifiex_private *priv,
        return 0;
 }
 
-/*
- * This function handles the command response of 11n configuration request.
- *
- * Handling includes changing the header fields into CPU format.
- */
-int mwifiex_ret_11n_cfg(struct host_cmd_ds_command *resp,
-                       struct mwifiex_ds_11n_tx_cfg *tx_cfg)
-{
-       struct host_cmd_ds_11n_cfg *htcfg = &resp->params.htcfg;
-
-       if (tx_cfg) {
-               tx_cfg->tx_htcap = le16_to_cpu(htcfg->ht_tx_cap);
-               tx_cfg->tx_htinfo = le16_to_cpu(htcfg->ht_tx_info);
-       }
-       return 0;
-}
-
 /*
  * This function prepares command of reconfigure Tx buffer.
  *
index 67c087cf9dc768064e7597d593b9942df3c8ae8a..dbcf38403d0b726536ef8b99c10c963bd6e1fe07 100644 (file)
@@ -28,8 +28,6 @@ int mwifiex_ret_11n_delba(struct mwifiex_private *priv,
                          struct host_cmd_ds_command *resp);
 int mwifiex_ret_11n_addba_req(struct mwifiex_private *priv,
                              struct host_cmd_ds_command *resp);
-int mwifiex_ret_11n_cfg(struct host_cmd_ds_command *resp,
-                       struct mwifiex_ds_11n_tx_cfg *tx_cfg);
 int mwifiex_cmd_11n_cfg(struct host_cmd_ds_command *cmd, u16 cmd_action,
                        struct mwifiex_ds_11n_tx_cfg *txcfg);
 
index 364b6086382cdfa52898dc15922a8d43bacc1ccc..3addf7677ac0d0f35b7959d807793af03dc13369 100644 (file)
@@ -928,7 +928,6 @@ int mwifiex_process_sta_cmdresp(struct mwifiex_private *priv, u16 cmdresp_no,
        case HostCmd_CMD_SET_BSS_MODE:
                break;
        case HostCmd_CMD_11N_CFG:
-               ret = mwifiex_ret_11n_cfg(resp, data_buf);
                break;
        case HostCmd_CMD_PCIE_DESC_DETAILS:
                break;