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-commands.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-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 9b64a390564c..a093f5b83cb6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -126,6 +126,7 @@ enum { | |||
126 | /* Miscellaneous commands */ | 126 | /* Miscellaneous commands */ |
127 | QUIET_NOTIFICATION = 0x96, /* not used */ | 127 | QUIET_NOTIFICATION = 0x96, /* not used */ |
128 | REPLY_TX_PWR_TABLE_CMD = 0x97, | 128 | REPLY_TX_PWR_TABLE_CMD = 0x97, |
129 | REPLY_TX_POWER_DBM_CMD = 0x98, | ||
129 | MEASURE_ABORT_NOTIFICATION = 0x99, /* not used */ | 130 | MEASURE_ABORT_NOTIFICATION = 0x99, /* not used */ |
130 | 131 | ||
131 | /* Bluetooth device coexistance config command */ | 132 | /* Bluetooth device coexistance config command */ |
@@ -339,6 +340,17 @@ struct iwl4965_tx_power_db { | |||
339 | struct tx_power_dual_stream power_tbl[POWER_TABLE_NUM_ENTRIES]; | 340 | struct tx_power_dual_stream power_tbl[POWER_TABLE_NUM_ENTRIES]; |
340 | } __attribute__ ((packed)); | 341 | } __attribute__ ((packed)); |
341 | 342 | ||
343 | /** | ||
344 | * Commad REPLY_TX_POWER_DBM_CMD = 0x98 | ||
345 | * struct iwl5000_tx_power_dbm_cmd | ||
346 | */ | ||
347 | #define IWL50_TX_POWER_AUTO 0x7f | ||
348 | struct iwl5000_tx_power_dbm_cmd { | ||
349 | s8 global_lmt; /*in half-dBm (e.g. 30 = 15 dBm) */ | ||
350 | u8 flags; | ||
351 | s8 srv_chan_lmt; /*in half-dBm (e.g. 30 = 15 dBm) */ | ||
352 | u8 reserved; | ||
353 | } __attribute__ ((packed)); | ||
342 | 354 | ||
343 | /****************************************************************************** | 355 | /****************************************************************************** |
344 | * (0a) | 356 | * (0a) |