diff options
author | Jay Sternberg <jay.e.sternberg@linux.intel.com> | 2009-01-29 14:09:14 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:42 -0500 |
commit | 76a2407a5b043d0950d5657184118e89860d545c (patch) | |
tree | 1173069fb065ace0f4a6d938bfc04b1ac629ad02 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 050681b77d10ac81bf6be5b2c61aa6c5969947e4 (diff) |
iwlwifi: correct API command overlap
Correct the API commands where same command id used for two different
commands. Update max api versions for affected devices.
TX_ANT_CONFIGURATION_CMD was already using id 0x98, so
REPLY_TX_POWER_DBM_CMD moved to 0x95
Older API interfaces may used original value so V1 defines provided.
Signed-off-by: Jay Sternberg <jay.e.sternberg@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index f8158edf6ebf..17aaca8dad1f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -1411,12 +1411,19 @@ static int iwl5000_send_rxon_assoc(struct iwl_priv *priv) | |||
1411 | static int iwl5000_send_tx_power(struct iwl_priv *priv) | 1411 | static int iwl5000_send_tx_power(struct iwl_priv *priv) |
1412 | { | 1412 | { |
1413 | struct iwl5000_tx_power_dbm_cmd tx_power_cmd; | 1413 | struct iwl5000_tx_power_dbm_cmd tx_power_cmd; |
1414 | u8 tx_ant_cfg_cmd; | ||
1414 | 1415 | ||
1415 | /* half dBm need to multiply */ | 1416 | /* half dBm need to multiply */ |
1416 | tx_power_cmd.global_lmt = (s8)(2 * priv->tx_power_user_lmt); | 1417 | tx_power_cmd.global_lmt = (s8)(2 * priv->tx_power_user_lmt); |
1417 | tx_power_cmd.flags = IWL50_TX_POWER_NO_CLOSED; | 1418 | tx_power_cmd.flags = IWL50_TX_POWER_NO_CLOSED; |
1418 | tx_power_cmd.srv_chan_lmt = IWL50_TX_POWER_AUTO; | 1419 | tx_power_cmd.srv_chan_lmt = IWL50_TX_POWER_AUTO; |
1419 | return iwl_send_cmd_pdu_async(priv, REPLY_TX_POWER_DBM_CMD, | 1420 | |
1421 | if (IWL_UCODE_API(priv->ucode_ver) == 1) | ||
1422 | tx_ant_cfg_cmd = REPLY_TX_POWER_DBM_CMD_V1; | ||
1423 | else | ||
1424 | tx_ant_cfg_cmd = REPLY_TX_POWER_DBM_CMD; | ||
1425 | |||
1426 | return iwl_send_cmd_pdu_async(priv, tx_ant_cfg_cmd, | ||
1420 | sizeof(tx_power_cmd), &tx_power_cmd, | 1427 | sizeof(tx_power_cmd), &tx_power_cmd, |
1421 | NULL); | 1428 | NULL); |
1422 | } | 1429 | } |