ath9k: fall back to the default noise floor if the calibrated one is not available...
authorFelix Fietkau <nbd@openwrt.org>
Tue, 5 Apr 2011 20:28:02 +0000 (20:28 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 5 Apr 2011 20:28:02 +0000 (20:28 +0000)
SVN-Revision: 26495

package/mac80211/patches/560-ath9k_fix_reported_signal_strength.patch

index 2fa4c44284015f556151042f66d0a855c0bf8c58..2753c8705bc44c679639a37f0dcdc12399bfb832 100644 (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;