aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-11-30 14:03:44 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2010-12-13 18:51:58 -0500
commite7362a0069f8448bb346d65f07d98b319f243e30 (patch)
treef1b2d74e7cf6069c9f600bbe297dfa8c65807b5d /drivers
parent17423ea8776362100b0a9a162cdd4b16b886a4a2 (diff)
iwlagn: rename enhanced txpower fields
Some fields we didn't previously use from the enhanced TX power structure will be needed in the next patch, so rename them to their correct names to be able to use them and change code reading them accordingly. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c3
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-eeprom.h10
2 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c
index dbada761624d..7c1be8cc1730 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-eeprom.c
@@ -460,7 +460,8 @@ void iwlcore_eeprom_enhanced_txpower(struct iwl_priv *priv)
460 * always check for valid entry before process 460 * always check for valid entry before process
461 * the information 461 * the information
462 */ 462 */
463 if (!enhanced_txpower->common || enhanced_txpower->reserved) 463 if (!(enhanced_txpower->flags || enhanced_txpower->channel) ||
464 enhanced_txpower->delta_20_in_40)
464 continue; 465 continue;
465 466
466 for (element = 0; element < eeprom_section_count; element++) { 467 for (element = 0; element < eeprom_section_count; element++) {
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.h b/drivers/net/wireless/iwlwifi/iwl-eeprom.h
index 583916db46e4..c8566a4f8808 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.h
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.h
@@ -136,21 +136,23 @@ struct iwl_eeprom_channel {
136 * Enhanced regulatory tx power portion of eeprom image can be broken down 136 * Enhanced regulatory tx power portion of eeprom image can be broken down
137 * into individual structures; each one is 8 bytes in size and contain the 137 * into individual structures; each one is 8 bytes in size and contain the
138 * following information 138 * following information
139 * @common: (desc + channel) not used by driver, should _NOT_ be "zero" 139 * @flags: entry flags
140 * @channel: channel number
140 * @chain_a_max_pwr: chain a max power in 1/2 dBm 141 * @chain_a_max_pwr: chain a max power in 1/2 dBm
141 * @chain_b_max_pwr: chain b max power in 1/2 dBm 142 * @chain_b_max_pwr: chain b max power in 1/2 dBm
142 * @chain_c_max_pwr: chain c max power in 1/2 dBm 143 * @chain_c_max_pwr: chain c max power in 1/2 dBm
143 * @reserved: not used, should be "zero" 144 * @delta_20_in_40: 20-in-40 deltas (hi/lo)
144 * @mimo2_max_pwr: mimo2 max power in 1/2 dBm 145 * @mimo2_max_pwr: mimo2 max power in 1/2 dBm
145 * @mimo3_max_pwr: mimo3 max power in 1/2 dBm 146 * @mimo3_max_pwr: mimo3 max power in 1/2 dBm
146 * 147 *
147 */ 148 */
148struct iwl_eeprom_enhanced_txpwr { 149struct iwl_eeprom_enhanced_txpwr {
149 __le16 common; 150 u8 flags;
151 u8 channel;
150 s8 chain_a_max; 152 s8 chain_a_max;
151 s8 chain_b_max; 153 s8 chain_b_max;
152 s8 chain_c_max; 154 s8 chain_c_max;
153 s8 reserved; 155 u8 delta_20_in_40;
154 s8 mimo2_max; 156 s8 mimo2_max;
155 s8 mimo3_max; 157 s8 mimo3_max;
156} __packed; 158} __packed;