aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-05 19:04:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-05 19:04:05 +0000
commita4e59b89b8f577e9b9cdb37596206357a467768e (patch)
treeb843fa03c3deb08bdab2dbce66e7c6698cf91107 /package/mac80211
parent6ed952272e1b1f0e338d9fd996b8ef50a054b7fb (diff)
downloadupstream-a4e59b89b8f577e9b9cdb37596206357a467768e.tar.gz
upstream-a4e59b89b8f577e9b9cdb37596206357a467768e.tar.bz2
upstream-a4e59b89b8f577e9b9cdb37596206357a467768e.zip
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
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/patches/560-ath9k_fix_reported_signal_strength.patch2
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;