Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291303
b: refs/heads/master
c: 51dc51d
h: refs/heads/master
i:
  291301: 8519cdc
  291299: efc1892
  291295: fbd5e9c
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 8, 2012
1 parent 094e24c commit 4feb706
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a75a79a84ffd7fea9e10f327d1e2f2fa25770375
refs/heads/master: 51dc51d12bd609644bbe9877825a1a25a6016639
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/iwl-2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static struct iwl_lib_ops iwl2000_lib = {
EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
EEPROM_REGULATORY_BAND_NO_HT40,
},
.update_enhanced_txpower = iwl_eeprom_enhanced_txpower,
.enhanced_txpower = true,
},
.temperature = iwlagn_temperature,
};
Expand All @@ -167,7 +167,7 @@ static struct iwl_lib_ops iwl2030_lib = {
EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
EEPROM_REGULATORY_BAND_NO_HT40,
},
.update_enhanced_txpower = iwl_eeprom_enhanced_txpower,
.enhanced_txpower = true,
},
.temperature = iwlagn_temperature,
};
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/iwlwifi/iwl-6000.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static struct iwl_lib_ops iwl6000_lib = {
EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
EEPROM_REG_BAND_52_HT40_CHANNELS
},
.update_enhanced_txpower = iwl_eeprom_enhanced_txpower,
.enhanced_txpower = true,
},
.temperature = iwlagn_temperature,
};
Expand All @@ -264,7 +264,7 @@ static struct iwl_lib_ops iwl6030_lib = {
EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
EEPROM_REG_BAND_52_HT40_CHANNELS
},
.update_enhanced_txpower = iwl_eeprom_enhanced_txpower,
.enhanced_txpower = true,
},
.temperature = iwlagn_temperature,
};
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-agn.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ static inline __le32 iwl_hw_set_rate_n_flags(u8 rate, u32 flags)
}

/* eeprom */
void iwl_eeprom_enhanced_txpower(struct iwl_priv *priv);
void iwl_eeprom_get_mac(const struct iwl_shared *shrd, u8 *mac);

extern int iwl_alive_start(struct iwl_priv *priv);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ iwl_eeprom_enh_txp_read_element(struct iwl_priv *priv,
#define TXP_CHECK_AND_PRINT(x) ((txp->flags & IWL_EEPROM_ENH_TXP_FL_##x) \
? # x " " : "")

void iwl_eeprom_enhanced_txpower(struct iwl_priv *priv)
static void iwl_eeprom_enhanced_txpower(struct iwl_priv *priv)
{
struct iwl_shared *shrd = priv->shrd;
struct iwl_eeprom_enhanced_txpwr *txp_array, *txp;
Expand Down Expand Up @@ -1025,8 +1025,8 @@ int iwl_init_channel_map(struct iwl_priv *priv)
* driver need to process addition information
* to determine the max channel tx power limits
*/
if (cfg(priv)->lib->eeprom_ops.update_enhanced_txpower)
cfg(priv)->lib->eeprom_ops.update_enhanced_txpower(priv);
if (cfg(priv)->lib->eeprom_ops.enhanced_txpower)
iwl_eeprom_enhanced_txpower(priv);

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ extern const u8 iwl_eeprom_band_1[14];

struct iwl_eeprom_ops {
const u32 regulatory_bands[7];
void (*update_enhanced_txpower) (struct iwl_priv *priv);
bool enhanced_txpower;
};


Expand Down

0 comments on commit 4feb706

Please sign in to comment.