From: nbd Date: Tue, 5 Apr 2011 20:28:02 +0000 (+0000) Subject: ath9k: fall back to the default noise floor if the calibrated one is not available... X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=0d2ab1ea025f8ced78be48db29770f3b6927c9a1;hp=3214d4cfc1890c7f56544ade095faaf9a4b0925d 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 --- diff --git a/package/mac80211/patches/560-ath9k_fix_reported_signal_strength.patch b/package/mac80211/patches/560-ath9k_fix_reported_signal_strength.patch index 2fa4c4428..2753c8705 100644 --- a/package/mac80211/patches/560-ath9k_fix_reported_signal_strength.patch +++ b/package/mac80211/patches/560-ath9k_fix_reported_signal_strength.patch @@ -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;