aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-06-11 21:47:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 12:18:08 -0400
commit630fe9b6f774dd55b71fe94392101eb00df58762 (patch)
treea4835d1d28195321f52f877f89d5bf1dbe8bf436 /drivers/net/wireless/iwlwifi/iwl-dev.h
parent25a6572cc13ba2a3fefc02a63a077ff3664a1ca9 (diff)
iwlwifi: refactor setting tx power
This patch 1. Refactors settings of tx power 2. enables iwconfig txpower <value> 3. adds 5000 HW tx power Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 54e6ac84980b..b420f64dcb7d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -683,8 +683,6 @@ extern void iwl4965_hw_build_tx_cmd_rate(struct iwl_priv *priv,
683 struct ieee80211_tx_info *info, 683 struct ieee80211_tx_info *info,
684 struct ieee80211_hdr *hdr, 684 struct ieee80211_hdr *hdr,
685 int sta_id, int tx_id); 685 int sta_id, int tx_id);
686extern int iwl4965_hw_reg_send_txpower(struct iwl_priv *priv);
687extern int iwl4965_hw_reg_set_txpower(struct iwl_priv *priv, s8 power);
688extern void iwl4965_hw_rx_statistics(struct iwl_priv *priv, 686extern void iwl4965_hw_rx_statistics(struct iwl_priv *priv,
689 struct iwl_rx_mem_buffer *rxb); 687 struct iwl_rx_mem_buffer *rxb);
690extern void iwl4965_disable_events(struct iwl_priv *priv); 688extern void iwl4965_disable_events(struct iwl_priv *priv);
@@ -1167,10 +1165,9 @@ struct iwl_priv {
1167 struct delayed_work alive_start; 1165 struct delayed_work alive_start;
1168 struct delayed_work scan_check; 1166 struct delayed_work scan_check;
1169 struct delayed_work post_associate; 1167 struct delayed_work post_associate;
1170 1168 /* TX Power */
1171#define IWL_DEFAULT_TX_POWER 0x0F 1169 s8 tx_power_user_lmt;
1172 s8 user_txpower_limit; 1170 s8 tx_power_channel_lmt;
1173 s8 max_channel_txpower_limit;
1174 1171
1175#ifdef CONFIG_PM 1172#ifdef CONFIG_PM
1176 u32 pm_state[16]; 1173 u32 pm_state[16];