diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-06-11 21:47:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:08 -0400 |
commit | 630fe9b6f774dd55b71fe94392101eb00df58762 (patch) | |
tree | a4835d1d28195321f52f877f89d5bf1dbe8bf436 /drivers/net/wireless/iwlwifi/iwl-core.h | |
parent | 25a6572cc13ba2a3fefc02a63a077ff3664a1ca9 (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-core.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 44d0fcf79e60..5bae691cc492 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -140,6 +140,7 @@ struct iwl_lib_ops { | |||
140 | } apm_ops; | 140 | } apm_ops; |
141 | /* power */ | 141 | /* power */ |
142 | int (*set_power)(struct iwl_priv *priv, void *cmd); | 142 | int (*set_power)(struct iwl_priv *priv, void *cmd); |
143 | int (*send_tx_power) (struct iwl_priv *priv); | ||
143 | void (*update_chain_flags)(struct iwl_priv *priv); | 144 | void (*update_chain_flags)(struct iwl_priv *priv); |
144 | /* eeprom operations (as defined in iwl-eeprom.h) */ | 145 | /* eeprom operations (as defined in iwl-eeprom.h) */ |
145 | struct iwl_eeprom_ops eeprom_ops; | 146 | struct iwl_eeprom_ops eeprom_ops; |
@@ -238,6 +239,11 @@ int iwl_tx_agg_stop(struct iwl_priv *priv , const u8 *ra, u16 tid); | |||
238 | int iwl_txq_check_empty(struct iwl_priv *priv, int sta_id, u8 tid, int txq_id); | 239 | int iwl_txq_check_empty(struct iwl_priv *priv, int sta_id, u8 tid, int txq_id); |
239 | 240 | ||
240 | /***************************************************** | 241 | /***************************************************** |
242 | * TX power | ||
243 | ****************************************************/ | ||
244 | int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force); | ||
245 | |||
246 | /***************************************************** | ||
241 | * S e n d i n g H o s t C o m m a n d s * | 247 | * S e n d i n g H o s t C o m m a n d s * |
242 | *****************************************************/ | 248 | *****************************************************/ |
243 | 249 | ||