diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-09-29 15:16:13 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-09-29 15:16:13 +0000 |
commit | 3d7914783f4a8b271728b361abcab1c5c7d45da4 (patch) | |
tree | 92de65b9d370c43d1e6bae4a12b49b914b91ce3a /package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch | |
parent | 7ed7ed4ffae5b0210b9c488817c9d35455c9c097 (diff) |
ath9k: fetch survey data for all channels
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23154 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.patch | 23 |
1 files changed, 23 insertions, 0 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 new file mode 100644 index 000000000..798e59c3a --- /dev/null +++ b/package/mac80211/patches/512-ath9k_survey_no_bogus_nf.patch @@ -0,0 +1,23 @@ +--- 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; + } |