linux/drivers/net/wireless
Zefir Kurtisi 71f5137bf0 ath9k: interpret requested txpower in EIRP domain
Tx power limitations at upper layers are interpreted in
the EIRP domain. When the user requests a given maximum
txpower, e.g. with: 'iw phy0 set txpower fixed 1500',
he expects the EIRP to be at or below 15dBm.

In ath9k_hw_apply_txpower(), the interpretation is
different: the antenna-gain is capped against the
current txpower limit in the regulatory, but not
against the user set value. It ensures that the
resulting EIRP is below the limit defined by the
active countrycode, but not below the value the
user requested.

In a scenario like e.g.
 a) antenna_gain=6
 b) countrycode limits to eirp=18
 c) user set txpower=15
this will cause a setting for AR_PHY_POWER_TX_RATE
regs resulting in an EIRP > 15.

This patch ensures that antenna-gain is considered
whenever the txpower limit is adjusted and with that
the user set limits are kept.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-04-19 18:10:47 +03:00
..
admtek
ath ath9k: interpret requested txpower in EIRP domain 2016-04-19 18:10:47 +03:00
atmel at76c50x-usb: avoid double usb_put_dev() after downloading internal firmware in at76_probe() 2016-03-07 14:24:06 +02:00
broadcom b43: Fix memory leaks in b43_bus_dev_ssb_init and b43_bus_dev_bcma_init 2016-04-07 19:37:44 +03:00
cisco wireless: airo: re-use mac_pton() 2015-11-30 14:59:28 +02:00
intel wireless-drivers patches for 4.7 2016-04-11 11:58:12 -04:00
intersil Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2016-03-19 10:05:34 -07:00
marvell mwifiex: dump pcie scratch registers 2016-04-07 19:42:26 +03:00
mediatek mt7601u: do not free dma_buf when ivp allocation fails 2016-03-07 14:39:05 +02:00
ralink rt2x00usb: Use usb anchor to manage URB 2016-04-06 21:40:43 +03:00
realtek rtl8xxxu: Do not set LDOA15 / LDOV12 on 8192eu 2016-04-07 19:41:21 +03:00
rsi rsi: Move variable initialisation into error code 2016-04-07 19:37:48 +03:00
st wireless: cw1200: use __maybe_unused to hide pm functions_ 2016-03-08 12:32:52 +02:00
ti wl1251: use to_delayed_work() 2016-04-07 19:37:37 +03:00
zydas
Kconfig
mac80211_hwsim.c mac80211_hwsim: Support a hw scan request for a specific BSSID 2016-04-05 10:56:29 +02:00
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
wl3501_cs.c
wl3501.h