iwlwifi: use IWL_DEFAULT_MAX_TX_POWER for max_eirp
authorEliad Peller <eliad@wizery.com>
Sun, 7 Sep 2014 14:45:11 +0000 (17:45 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 12 Mar 2015 07:57:27 +0000 (09:57 +0200)
max_eirp affects the txpower configured to the power,
so use the max tx power (22) instead of some other
value.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/iwl-nvm-parse.c

index 727e8a428903ba270314be990701f4fe62feb591..83ba307f06189ddbe70d8d9de9bedfe6e1f48283 100644 (file)
@@ -784,7 +784,8 @@ iwl_parse_nvm_mcc_info(struct device *dev, const struct iwl_cfg *cfg,
 
                /* this doesn't matter - not used by FW */
                rule->power_rule.max_antenna_gain = DBI_TO_MBI(6);
-               rule->power_rule.max_eirp = DBM_TO_MBM(20);
+               rule->power_rule.max_eirp =
+                       DBM_TO_MBM(IWL_DEFAULT_MAX_TX_POWER);
 
                rule->flags = iwl_nvm_get_regdom_bw_flags(nvm_chan, ch_idx,
                                                          ch_flags, cfg);