Search Linux Wireless

Re: [PATCH] ath9k: interpret requested txpower in EIRP domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Zefir,

[auto build test WARNING on wireless-drivers/master]
[also build test WARNING on v4.6-rc1 next-20160401]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Zefir-Kurtisi/ath9k-interpret-requested-txpower-in-EIRP-domain/20160401-001612
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git master
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/net/wireless/ath/ath9k/hw.c: In function 'ath9k_hw_apply_txpower':
>> drivers/net/wireless/ath/ath9k/hw.c:2836:25: warning: unused variable 'max_gain' [-Wunused-variable]
     int chan_pwr, new_pwr, max_gain;
                            ^

vim +/max_gain +2836 drivers/net/wireless/ath/ath9k/hw.c

ca2c68cc Felix Fietkau 2011-10-08  2820  {
ca2c68cc Felix Fietkau 2011-10-08  2821  	enum eeprom_param gain_param;
ca2c68cc Felix Fietkau 2011-10-08  2822  
ca2c68cc Felix Fietkau 2011-10-08  2823  	if (IS_CHAN_2GHZ(chan))
ca2c68cc Felix Fietkau 2011-10-08  2824  		gain_param = EEP_ANTENNA_GAIN_2G;
ca2c68cc Felix Fietkau 2011-10-08  2825  	else
ca2c68cc Felix Fietkau 2011-10-08  2826  		gain_param = EEP_ANTENNA_GAIN_5G;
ca2c68cc Felix Fietkau 2011-10-08  2827  
ca2c68cc Felix Fietkau 2011-10-08  2828  	return ah->eep_ops->get_eeprom(ah, gain_param);
ca2c68cc Felix Fietkau 2011-10-08  2829  }
ca2c68cc Felix Fietkau 2011-10-08  2830  
64ea57d0 Gabor Juhos   2012-04-15  2831  void ath9k_hw_apply_txpower(struct ath_hw *ah, struct ath9k_channel *chan,
64ea57d0 Gabor Juhos   2012-04-15  2832  			    bool test)
ca2c68cc Felix Fietkau 2011-10-08  2833  {
ca2c68cc Felix Fietkau 2011-10-08  2834  	struct ath_regulatory *reg = ath9k_hw_regulatory(ah);
ca2c68cc Felix Fietkau 2011-10-08  2835  	struct ieee80211_channel *channel;
ca2c68cc Felix Fietkau 2011-10-08 @2836  	int chan_pwr, new_pwr, max_gain;
ca2c68cc Felix Fietkau 2011-10-08  2837  
ca2c68cc Felix Fietkau 2011-10-08  2838  	if (!chan)
ca2c68cc Felix Fietkau 2011-10-08  2839  		return;
ca2c68cc Felix Fietkau 2011-10-08  2840  
ca2c68cc Felix Fietkau 2011-10-08  2841  	channel = chan->chan;
ca2c68cc Felix Fietkau 2011-10-08  2842  	chan_pwr = min_t(int, channel->max_power * 2, MAX_RATE_POWER);
ca2c68cc Felix Fietkau 2011-10-08  2843  	new_pwr = min_t(int, chan_pwr, reg->power_limit);
ca2c68cc Felix Fietkau 2011-10-08  2844  

:::::: The code at line 2836 was first introduced by commit
:::::: ca2c68cc7bc80fc4504fb420df04cce99c9ee6ec ath9k_hw: clean up tx power handling

:::::: TO: Felix Fietkau <nbd@xxxxxxxxxxx>
:::::: CC: John W. Linville <linville@xxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux