ath9k: fall back to the default noise floor if the calibrated one is not available, fixes signal strength display in initial scan

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26494 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2011-04-05 19:04:05 +00:00
parent dafedf162e
commit 84fdf0bb14
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
rx_status->freq = hw->conf.channel->center_freq;
- rx_status->signal = ATH_DEFAULT_NOISE_FLOOR + rx_stats->rs_rssi;
+
+ if (ah->curchan)
+ if (ah->curchan && ah->curchan->noisefloor)
+ noise = ah->curchan->noisefloor;
+ else
+ noise = ATH_DEFAULT_NOISE_FLOOR;