mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:37:10 +02:00
ath9k: fall back to the default noise floor if the calibrated one is not available, fixes signal strength display in initial scan (backport of r26494)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26495 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3214d4cfc1
commit
0d2ab1ea02
@ -16,7 +16,7 @@
|
|||||||
rx_status->freq = hw->conf.channel->center_freq;
|
rx_status->freq = hw->conf.channel->center_freq;
|
||||||
- rx_status->signal = ATH_DEFAULT_NOISE_FLOOR + rx_stats->rs_rssi;
|
- rx_status->signal = ATH_DEFAULT_NOISE_FLOOR + rx_stats->rs_rssi;
|
||||||
+
|
+
|
||||||
+ if (ah->curchan)
|
+ if (ah->curchan && ah->curchan->noisefloor)
|
||||||
+ noise = ah->curchan->noisefloor;
|
+ noise = ah->curchan->noisefloor;
|
||||||
+ else
|
+ else
|
||||||
+ noise = ATH_DEFAULT_NOISE_FLOOR;
|
+ noise = ATH_DEFAULT_NOISE_FLOOR;
|
||||||
|
Loading…
Reference in New Issue
Block a user