ath9k: fall back to the default noise floor if the calibrated one is not available, fixes signal strength display in initial scan
SVN-Revision: 26494
This commit is contained in:
parent
6ed952272e
commit
a4e59b89b8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue