diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-08-02 13:05:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:57 -0400 |
commit | fdde7084e033263f48d26d5b24ecf626aed29b5b (patch) | |
tree | 0929f554bbdc439c28575b2bb07360a84e88eed6 /drivers/net/wireless/libertas/cmd.c | |
parent | 4d4ce1ad02f02e593086fabdad69953ecbd99d9c (diff) |
[PATCH] libertas: remove adapter->{rx,tx}antenna
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>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index d3402e1b760b..2a5defe011e7 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -570,26 +570,6 @@ static int wlan_cmd_802_11_rf_tx_power(wlan_private * priv, | |||
570 | return 0; | 570 | return 0; |
571 | } | 571 | } |
572 | 572 | ||
573 | static int wlan_cmd_802_11_rf_antenna(wlan_private * priv, | ||
574 | struct cmd_ds_command *cmd, | ||
575 | u16 cmd_action, void *pdata_buf) | ||
576 | { | ||
577 | struct cmd_ds_802_11_rf_antenna *rant = &cmd->params.rant; | ||
578 | |||
579 | lbs_deb_enter(LBS_DEB_CMD); | ||
580 | cmd->command = cpu_to_le16(CMD_802_11_RF_ANTENNA); | ||
581 | cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_rf_antenna) + | ||
582 | S_DS_GEN); | ||
583 | |||
584 | rant->action = cpu_to_le16(cmd_action); | ||
585 | if ((cmd_action == CMD_ACT_SET_RX) || (cmd_action == CMD_ACT_SET_TX)) { | ||
586 | rant->antennamode = cpu_to_le16((u16) (*(u32 *) pdata_buf)); | ||
587 | } | ||
588 | |||
589 | lbs_deb_leave(LBS_DEB_CMD); | ||
590 | return 0; | ||
591 | } | ||
592 | |||
593 | static int wlan_cmd_802_11_rate_adapt_rateset(wlan_private * priv, | 573 | static int wlan_cmd_802_11_rate_adapt_rateset(wlan_private * priv, |
594 | struct cmd_ds_command *cmd, | 574 | struct cmd_ds_command *cmd, |
595 | u16 cmd_action) | 575 | u16 cmd_action) |
@@ -1252,11 +1232,6 @@ int libertas_prepare_and_send_command(wlan_private * priv, | |||
1252 | ret = wlan_cmd_802_11_radio_control(priv, cmdptr, cmd_action); | 1232 | ret = wlan_cmd_802_11_radio_control(priv, cmdptr, cmd_action); |
1253 | break; | 1233 | break; |
1254 | 1234 | ||
1255 | case CMD_802_11_RF_ANTENNA: | ||
1256 | ret = wlan_cmd_802_11_rf_antenna(priv, cmdptr, | ||
1257 | cmd_action, pdata_buf); | ||
1258 | break; | ||
1259 | |||
1260 | case CMD_802_11_DATA_RATE: | 1235 | case CMD_802_11_DATA_RATE: |
1261 | ret = wlan_cmd_802_11_data_rate(priv, cmdptr, cmd_action); | 1236 | ret = wlan_cmd_802_11_data_rate(priv, cmdptr, cmd_action); |
1262 | break; | 1237 | break; |