diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-05 19:04:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-05 19:04:05 +0000 |
commit | 84fdf0bb14b7cd92072dbf93f5c87159539fbd14 (patch) | |
tree | b51db9bddf6e8d94adb951b83cbb9744a86cad40 /package | |
parent | dafedf162ed36056f39c7c0e1db69bea1db3b78a (diff) | |
download | upstream-84fdf0bb14b7cd92072dbf93f5c87159539fbd14.tar.gz upstream-84fdf0bb14b7cd92072dbf93f5c87159539fbd14.tar.bz2 upstream-84fdf0bb14b7cd92072dbf93f5c87159539fbd14.zip |
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
Diffstat (limited to 'package')
-rw-r--r-- | package/mac80211/patches/560-ath9k_fix_reported_signal_strength.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 2fa4c44284..2753c8705b 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; |