summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-07 14:27:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-07 14:27:54 +0000
commit726123e2e142abba72e7dc4da89be79200b506d9 (patch)
treedf87e3e44548906195f7e61c76c9fd769dc0845c /package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch
parentb61a804bf76401468dc014ad730dcba3a1d0f26f (diff)
downloadmtk-20170518-726123e2e142abba72e7dc4da89be79200b506d9.zip
mtk-20170518-726123e2e142abba72e7dc4da89be79200b506d9.tar.gz
mtk-20170518-726123e2e142abba72e7dc4da89be79200b506d9.tar.bz2
mac80211: update to wireless-testing 2010-10-06
SVN-Revision: 23294
Diffstat (limited to 'package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch')
-rw-r--r--package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch23
1 files changed, 0 insertions, 23 deletions
diff --git a/package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch b/package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch
deleted file mode 100644
index 798e59c..0000000
--- a/package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/main.c
-+++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -2005,15 +2005,17 @@ static int ath9k_get_survey(struct ieee8
- struct ath_wiphy *aphy = hw->priv;
- struct ath_softc *sc = aphy->sc;
- struct ath_hw *ah = sc->sc_ah;
-- struct ath_common *common = ath9k_hw_common(ah);
- struct ieee80211_conf *conf = &hw->conf;
-
- if (idx != 0)
- return -ENOENT;
-
- survey->channel = conf->channel;
-- survey->filled = SURVEY_INFO_NOISE_DBM;
-- survey->noise = common->ani.noise_floor;
-+ survey->filled = 0;
-+ if (ah->curchan && ah->curchan->noisefloor) {
-+ survey->filled |= SURVEY_INFO_NOISE_DBM;
-+ survey->noise = ah->curchan->noisefloor;
-+ }
-
- return 0;
- }