]> err.no Git - linux-2.6/commitdiff
[PATCH] libertas: remove adapter->{rx,tx}antenna
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 2 Aug 2007 17:05:08 +0000 (13:05 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:57 +0000 (16:49 -0700)
There was nowhere any code that used the values of those
variables.

This patch also removes two static functions that are now unused.

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
drivers/net/wireless/libertas/dev.h
drivers/net/wireless/libertas/main.c

index d3402e1b760b46ecfeb933c64d4fcd8c51bff3ac..2a5defe011e724abbf062ffc5513a85dece1c22b 100644 (file)
@@ -570,26 +570,6 @@ static int wlan_cmd_802_11_rf_tx_power(wlan_private * priv,
        return 0;
 }
 
-static int wlan_cmd_802_11_rf_antenna(wlan_private * priv,
-                                     struct cmd_ds_command *cmd,
-                                     u16 cmd_action, void *pdata_buf)
-{
-       struct cmd_ds_802_11_rf_antenna *rant = &cmd->params.rant;
-
-       lbs_deb_enter(LBS_DEB_CMD);
-       cmd->command = cpu_to_le16(CMD_802_11_RF_ANTENNA);
-       cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_rf_antenna) +
-                               S_DS_GEN);
-
-       rant->action = cpu_to_le16(cmd_action);
-       if ((cmd_action == CMD_ACT_SET_RX) || (cmd_action == CMD_ACT_SET_TX)) {
-               rant->antennamode = cpu_to_le16((u16) (*(u32 *) pdata_buf));
-       }
-
-       lbs_deb_leave(LBS_DEB_CMD);
-       return 0;
-}
-
 static int wlan_cmd_802_11_rate_adapt_rateset(wlan_private * priv,
                                              struct cmd_ds_command *cmd,
                                              u16 cmd_action)
@@ -1252,11 +1232,6 @@ int libertas_prepare_and_send_command(wlan_private * priv,
                ret = wlan_cmd_802_11_radio_control(priv, cmdptr, cmd_action);
                break;
 
-       case CMD_802_11_RF_ANTENNA:
-               ret = wlan_cmd_802_11_rf_antenna(priv, cmdptr,
-                                                cmd_action, pdata_buf);
-               break;
-
        case CMD_802_11_DATA_RATE:
                ret = wlan_cmd_802_11_data_rate(priv, cmdptr, cmd_action);
                break;
index 8e99c2de1835bb896211ef94bdc25b91267f4680..affb1eeb6a5e7538531b63b48ba4d5125eb0c018 100644 (file)
@@ -383,27 +383,6 @@ static int wlan_ret_802_11_rf_tx_power(wlan_private * priv,
        return 0;
 }
 
-static int wlan_ret_802_11_rf_antenna(wlan_private * priv,
-                                     struct cmd_ds_command *resp)
-{
-       struct cmd_ds_802_11_rf_antenna *pAntenna = &resp->params.rant;
-       wlan_adapter *adapter = priv->adapter;
-       u16 action = le16_to_cpu(pAntenna->action);
-
-       lbs_deb_enter(LBS_DEB_CMD);
-       if (action == CMD_ACT_GET_RX)
-               adapter->rxantennamode = le16_to_cpu(pAntenna->antennamode);
-
-       if (action == CMD_ACT_GET_TX)
-               adapter->txantennamode = le16_to_cpu(pAntenna->antennamode);
-
-       lbs_deb_cmd("RF_ANT_RESP: action 0x%x, mode 0x%04x\n",
-              action, le16_to_cpu(pAntenna->antennamode));
-
-       lbs_deb_leave(LBS_DEB_CMD);
-       return 0;
-}
-
 static int wlan_ret_802_11_rate_adapt_rateset(wlan_private * priv,
                                              struct cmd_ds_command *resp)
 {
@@ -620,9 +599,6 @@ static inline int handle_cmd_response(u16 respcmd,
                spin_unlock_irqrestore(&adapter->driver_lock, flags);
 
                break;
-       case CMD_RET(CMD_802_11_RF_ANTENNA):
-               ret = wlan_ret_802_11_rf_antenna(priv, resp);
-               break;
 
        case CMD_RET(CMD_MAC_MULTICAST_ADR):
        case CMD_RET(CMD_MAC_CONTROL):
index 7c0ee0f9184c023aeccffd2ccb1738e2bb31e7e6..765c0c4f641a5d36f5741da6a65ed6188e48c041 100644 (file)
@@ -284,9 +284,6 @@ struct _wlan_adapter {
        /** control G rates */
        u8 adhoc_grate_enabled;
 
-       u32 txantenna;
-       u32 rxantenna;
-
        u32 fragthsd;
        u32 rtsthsd;
 
@@ -337,9 +334,6 @@ struct _wlan_adapter {
        u8 wpa_ie[MAX_WPA_IE_LEN];
        u8 wpa_ie_len;
 
-       u16 rxantennamode;
-       u16 txantennamode;
-
        /** Requested Signal Strength*/
        u16 bcn_avg_factor;
        u16 data_avg_factor;
index 1b6b09d5f973198230132edd26c9ab4ebae9cf9a..5b4a1343559ba8240798747b0f1652a8a6aeb37d 100644 (file)
@@ -1049,8 +1049,6 @@ static void wlan_init_adapter(wlan_private * priv)
            CMD_ACT_MAC_RX_ON | CMD_ACT_MAC_TX_ON;
 
        adapter->radioon = RADIO_ON;
-       adapter->txantenna = RF_ANTENNA_2;
-       adapter->rxantenna = RF_ANTENNA_AUTO;
 
        adapter->auto_rate = 1;
        adapter->cur_rate = 0;