aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorMohamed Abbas <mabbas@linux.intel.com>2008-04-21 18:41:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:15 -0400
commit5da4b55f78fb2ed40926b775d4f7c791594ecbd7 (patch)
treea12ecf0d26552869151738998e88e03e65bcb7c3 /drivers/net/wireless/iwlwifi/iwl-4965.c
parent7eafd25d9559bd0f652449c222d38d63412e3d4a (diff)
iwlwifi: Add power level support
Add power level support Signed-off-by: Mohamed Abbas <mabbas@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-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 2b9471f16862..d051aac558f2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -702,8 +702,6 @@ int iwl4965_hw_nic_init(struct iwl_priv *priv)
702 u32 val; 702 u32 val;
703 u8 val_link; 703 u8 val_link;
704 704
705 iwl4965_power_init_handle(priv);
706
707 /* nic_init */ 705 /* nic_init */
708 spin_lock_irqsave(&priv->lock, flags); 706 spin_lock_irqsave(&priv->lock, flags);
709 707
@@ -1433,6 +1431,17 @@ int iwl4965_hw_txq_free_tfd(struct iwl_priv *priv, struct iwl4965_tx_queue *txq)
1433 return 0; 1431 return 0;
1434} 1432}
1435 1433
1434/* set card power command */
1435static int iwl4965_set_power(struct iwl_priv *priv,
1436 void *cmd)
1437{
1438 int ret = 0;
1439
1440 ret = iwl_send_cmd_pdu_async(priv, POWER_TABLE_CMD,
1441 sizeof(struct iwl4965_powertable_cmd),
1442 cmd, NULL);
1443 return ret;
1444}
1436int iwl4965_hw_reg_set_txpower(struct iwl_priv *priv, s8 power) 1445int iwl4965_hw_reg_set_txpower(struct iwl_priv *priv, s8 power)
1437{ 1446{
1438 IWL_ERROR("TODO: Implement iwl4965_hw_reg_set_txpower!\n"); 1447 IWL_ERROR("TODO: Implement iwl4965_hw_reg_set_txpower!\n");
@@ -4336,6 +4345,8 @@ static struct iwl_lib_ops iwl4965_lib = {
4336 .release_semaphore = iwlcore_eeprom_release_semaphore, 4345 .release_semaphore = iwlcore_eeprom_release_semaphore,
4337 }, 4346 },
4338 .radio_kill_sw = iwl4965_radio_kill_sw, 4347 .radio_kill_sw = iwl4965_radio_kill_sw,
4348 .set_power = iwl4965_set_power,
4349 .update_chain_flags = iwl4965_update_chain_flags,
4339}; 4350};
4340 4351
4341static struct iwl_ops iwl4965_ops = { 4352static struct iwl_ops iwl4965_ops = {