]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: calculate a much better approximation of channel noise
authorFelix Fietkau <nbd@openwrt.org>
Thu, 28 Jul 2011 12:08:56 +0000 (14:08 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Aug 2011 20:04:19 +0000 (16:04 -0400)
commit22495700186f6827e6be7f4fd8d5ccb0d2030627
tree697c307d350409028f6ffd370f11d71579dfd462
parent993b3a225490b5937859a43060262f7960e09143
ath9k_hw: calculate a much better approximation of channel noise

Currently ath9k presents the internal calibrated noise floor as channel
noise measurement, however this results in highly chip specific values
that are only useful as relative measurements but do not resemble any
real channel noise values.

In order to give a much better approximation of the real channel noise,
add the difference between the measured noise floor and the nominal
chip specific noise floor to the default minimum channel noise value,
which is currently used to calculate the signal strength from the RSSI
value. This may not be 100% accurate, but it's much better than what's
there before.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/calib.c
drivers/net/wireless/ath/ath9k/calib.h
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h