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 | |
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')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 25 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 24 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 2 |
4 files changed, 0 insertions, 57 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; |
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 8e99c2de1835..affb1eeb6a5e 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -383,27 +383,6 @@ static int wlan_ret_802_11_rf_tx_power(wlan_private * priv, | |||
383 | return 0; | 383 | return 0; |
384 | } | 384 | } |
385 | 385 | ||
386 | static int wlan_ret_802_11_rf_antenna(wlan_private * priv, | ||
387 | struct cmd_ds_command *resp) | ||
388 | { | ||
389 | struct cmd_ds_802_11_rf_antenna *pAntenna = &resp->params.rant; | ||
390 | wlan_adapter *adapter = priv->adapter; | ||
391 | u16 action = le16_to_cpu(pAntenna->action); | ||
392 | |||
393 | lbs_deb_enter(LBS_DEB_CMD); | ||
394 | if (action == CMD_ACT_GET_RX) | ||
395 | adapter->rxantennamode = le16_to_cpu(pAntenna->antennamode); | ||
396 | |||
397 | if (action == CMD_ACT_GET_TX) | ||
398 | adapter->txantennamode = le16_to_cpu(pAntenna->antennamode); | ||
399 | |||
400 | lbs_deb_cmd("RF_ANT_RESP: action 0x%x, mode 0x%04x\n", | ||
401 | action, le16_to_cpu(pAntenna->antennamode)); | ||
402 | |||
403 | lbs_deb_leave(LBS_DEB_CMD); | ||
404 | return 0; | ||
405 | } | ||
406 | |||
407 | static int wlan_ret_802_11_rate_adapt_rateset(wlan_private * priv, | 386 | static int wlan_ret_802_11_rate_adapt_rateset(wlan_private * priv, |
408 | struct cmd_ds_command *resp) | 387 | struct cmd_ds_command *resp) |
409 | { | 388 | { |
@@ -620,9 +599,6 @@ static inline int handle_cmd_response(u16 respcmd, | |||
620 | spin_unlock_irqrestore(&adapter->driver_lock, flags); | 599 | spin_unlock_irqrestore(&adapter->driver_lock, flags); |
621 | 600 | ||
622 | break; | 601 | break; |
623 | case CMD_RET(CMD_802_11_RF_ANTENNA): | ||
624 | ret = wlan_ret_802_11_rf_antenna(priv, resp); | ||
625 | break; | ||
626 | 602 | ||
627 | case CMD_RET(CMD_MAC_MULTICAST_ADR): | 603 | case CMD_RET(CMD_MAC_MULTICAST_ADR): |
628 | case CMD_RET(CMD_MAC_CONTROL): | 604 | case CMD_RET(CMD_MAC_CONTROL): |
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index 7c0ee0f9184c..765c0c4f641a 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h | |||
@@ -284,9 +284,6 @@ struct _wlan_adapter { | |||
284 | /** control G rates */ | 284 | /** control G rates */ |
285 | u8 adhoc_grate_enabled; | 285 | u8 adhoc_grate_enabled; |
286 | 286 | ||
287 | u32 txantenna; | ||
288 | u32 rxantenna; | ||
289 | |||
290 | u32 fragthsd; | 287 | u32 fragthsd; |
291 | u32 rtsthsd; | 288 | u32 rtsthsd; |
292 | 289 | ||
@@ -337,9 +334,6 @@ struct _wlan_adapter { | |||
337 | u8 wpa_ie[MAX_WPA_IE_LEN]; | 334 | u8 wpa_ie[MAX_WPA_IE_LEN]; |
338 | u8 wpa_ie_len; | 335 | u8 wpa_ie_len; |
339 | 336 | ||
340 | u16 rxantennamode; | ||
341 | u16 txantennamode; | ||
342 | |||
343 | /** Requested Signal Strength*/ | 337 | /** Requested Signal Strength*/ |
344 | u16 bcn_avg_factor; | 338 | u16 bcn_avg_factor; |
345 | u16 data_avg_factor; | 339 | u16 data_avg_factor; |
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 1b6b09d5f973..5b4a1343559b 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -1049,8 +1049,6 @@ static void wlan_init_adapter(wlan_private * priv) | |||
1049 | CMD_ACT_MAC_RX_ON | CMD_ACT_MAC_TX_ON; | 1049 | CMD_ACT_MAC_RX_ON | CMD_ACT_MAC_TX_ON; |
1050 | 1050 | ||
1051 | adapter->radioon = RADIO_ON; | 1051 | adapter->radioon = RADIO_ON; |
1052 | adapter->txantenna = RF_ANTENNA_2; | ||
1053 | adapter->rxantenna = RF_ANTENNA_AUTO; | ||
1054 | 1052 | ||
1055 | adapter->auto_rate = 1; | 1053 | adapter->auto_rate = 1; |
1056 | adapter->cur_rate = 0; | 1054 | adapter->cur_rate = 0; |