]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ath10k: do not overwrite max_antenna_gain
authorMarek Puzyniak <marek.puzyniak@tieto.com>
Wed, 5 Mar 2014 12:10:33 +0000 (13:10 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 7 Mar 2014 08:14:10 +0000 (10:14 +0200)
Seems like we have an old bug, where we incidently overwrites
the max_antenna_gain we pass to firmware, with zero value.

End of all we are artifically reducing the output power.

This patch removes the excessive assignment on max_antenna_gain,
which is being provided by regulatory domain, and consequently
improves the tx power.

Signed-off-by: Marek Puzyniak <marek.puzyniak@tieto.com>
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi.c

index 478e7f669e79341b01bf293cc0f9be2608f8213f..cb1f7b5bcf4cdefa774411e09fa39b80728d82e4 100644 (file)
@@ -3393,7 +3393,6 @@ int ath10k_wmi_scan_chan_list(struct ath10k *ar,
                ci->max_power         = ch->max_power;
                ci->reg_power         = ch->max_reg_power;
                ci->antenna_max       = ch->max_antenna_gain;
-               ci->antenna_max       = 0;
 
                /* mode & flags share storage */
                ci->mode              = ch->mode;