From 0318dc07368b86c885d736a0a611144c919ffcd5 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 25 Apr 2011 18:21:32 +0000 Subject: ath9k: remove the signal strength fix, it causes a lot of confusion and seems to be just as inaccurate as the original version of the code git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26753 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../530-ath9k_fix_reported_signal_strength.patch | 27 ---------------------- 1 file changed, 27 deletions(-) delete mode 100644 package/mac80211/patches/530-ath9k_fix_reported_signal_strength.patch (limited to 'package') diff --git a/package/mac80211/patches/530-ath9k_fix_reported_signal_strength.patch b/package/mac80211/patches/530-ath9k_fix_reported_signal_strength.patch deleted file mode 100644 index 9e188fc62..000000000 --- a/package/mac80211/patches/530-ath9k_fix_reported_signal_strength.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/recv.c -+++ b/drivers/net/wireless/ath/ath9k/recv.c -@@ -956,6 +956,9 @@ static int ath9k_rx_skb_preprocess(struc - struct ieee80211_rx_status *rx_status, - bool *decrypt_error) - { -+ struct ath_hw *ah = common->ah; -+ int noise; -+ - memset(rx_status, 0, sizeof(struct ieee80211_rx_status)); - - /* -@@ -976,7 +979,13 @@ static int ath9k_rx_skb_preprocess(struc - - rx_status->band = hw->conf.channel->band; - rx_status->freq = hw->conf.channel->center_freq; -- rx_status->signal = ATH_DEFAULT_NOISE_FLOOR + rx_stats->rs_rssi; -+ -+ if (ah->curchan && ah->curchan->noisefloor) -+ noise = ah->curchan->noisefloor; -+ else -+ noise = ATH_DEFAULT_NOISE_FLOOR; -+ -+ rx_status->signal = noise + rx_stats->rs_rssi; - rx_status->antenna = rx_stats->rs_antenna; - rx_status->flag |= RX_FLAG_MACTIME_MPDU; - -- cgit v1.2.3