ath9k: add noise floor override option
authorSimon Wunderlich <sw@simonwunderlich.de>
Thu, 23 Mar 2017 13:30:48 +0000 (14:30 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 19 Apr 2017 14:08:27 +0000 (17:08 +0300)
commitb90189759a7ff92aa47e8878f6b5a9f868e19895
tree8ec504e7d85ac305e225a329915f28d9e92f61c3
parentaad1fd7f7677d05013b5fe247a5a6e1464c69a0f
ath9k: add noise floor override option

Introduce a debugfs option to manually override the noise floor,
ignoring the automatically tuned noise floor of the driver/hw.

In my tests with a AR9580 based module and a tx99 5 MHz interferer,
I could tune the noisefloor to -95 dBm or above to allow communication
again. The automatic noise floor calibration sometimes could adapt to
the situation as well, but not reliably and permanently.

I would consider this "feature" experimental and interesting for people
debugging the noise floor calibration or other effects of the hardware.

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fit.fraunhofer.de>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/calib.c
drivers/net/wireless/ath/ath9k/debug.c
drivers/net/wireless/ath/ath9k/hw.h