aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-25 18:21:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-25 18:21:32 +0000
commitf2ccc3ada5bf9ef2536ad234ddf71438f26f2f0c (patch)
tree9431b4f474eb4a68d6afcff16a51b0c03333a4e7 /package/mac80211
parent9dbcf86d8e2a9d137a0b255f69065ad0b2ccb7af (diff)
downloadupstream-f2ccc3ada5bf9ef2536ad234ddf71438f26f2f0c.tar.gz
upstream-f2ccc3ada5bf9ef2536ad234ddf71438f26f2f0c.tar.bz2
upstream-f2ccc3ada5bf9ef2536ad234ddf71438f26f2f0c.zip
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
SVN-Revision: 26753
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/patches/530-ath9k_fix_reported_signal_strength.patch27
1 files changed, 0 insertions, 27 deletions
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 9e188fc627..0000000000
--- 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;
-