diff options
author | Matti Gottlieb <matti.gottlieb@intel.com> | 2013-07-09 08:25:46 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-07-31 05:04:59 -0400 |
commit | 88f2fd7300da1b671255ef26469627206fe20a8e (patch) | |
tree | 2055e7df43ee07e0cb13e85e7e83aed19d628ccd /drivers/net/wireless/iwlwifi/iwl-nvm-parse.c | |
parent | ac1ed4163b5a523728fa0e8c27c1ff4d182f40fd (diff) |
iwlwifi: mvm: Enable user set TX power
Support Tx power limitations. These limitations can come from
mac80211 for various reasons.
Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-nvm-parse.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-nvm-parse.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c index acd2665afb8c..b76a9a8fc0b3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c +++ b/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c | |||
@@ -118,6 +118,7 @@ static const u8 iwl_nvm_channels[] = { | |||
118 | #define LAST_2GHZ_HT_PLUS 9 | 118 | #define LAST_2GHZ_HT_PLUS 9 |
119 | #define LAST_5GHZ_HT 161 | 119 | #define LAST_5GHZ_HT 161 |
120 | 120 | ||
121 | #define DEFAULT_MAX_TX_POWER 16 | ||
121 | 122 | ||
122 | /* rate data (static) */ | 123 | /* rate data (static) */ |
123 | static struct ieee80211_rate iwl_cfg80211_rates[] = { | 124 | static struct ieee80211_rate iwl_cfg80211_rates[] = { |
@@ -232,8 +233,11 @@ static int iwl_init_channel_map(struct device *dev, const struct iwl_cfg *cfg, | |||
232 | 233 | ||
233 | /* Initialize regulatory-based run-time data */ | 234 | /* Initialize regulatory-based run-time data */ |
234 | 235 | ||
235 | /* TODO: read the real value from the NVM */ | 236 | /* |
236 | channel->max_power = 0; | 237 | * Default value - highest tx power value. max_power |
238 | * is not used in mvm, and is used for backwards compatibility | ||
239 | */ | ||
240 | channel->max_power = DEFAULT_MAX_TX_POWER; | ||
237 | is_5ghz = channel->band == IEEE80211_BAND_5GHZ; | 241 | is_5ghz = channel->band == IEEE80211_BAND_5GHZ; |
238 | IWL_DEBUG_EEPROM(dev, | 242 | IWL_DEBUG_EEPROM(dev, |
239 | "Ch. %d [%sGHz] %s%s%s%s%s%s(0x%02x %ddBm): Ad-Hoc %ssupported\n", | 243 | "Ch. %d [%sGHz] %s%s%s%s%s%s(0x%02x %ddBm): Ad-Hoc %ssupported\n", |