summaryrefslogtreecommitdiff
path: root/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-08 09:38:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-09-08 09:38:38 +0000
commit768e6750d77438bb461c5396f205df8b7f56de94 (patch)
treed33abf868f9e6ffa0533e859dd338906085943ae /package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
parent249c39658335ea2a1e5cd2edab27970a4db19d66 (diff)
downloadmtk-20170518-768e6750d77438bb461c5396f205df8b7f56de94.zip
mtk-20170518-768e6750d77438bb461c5396f205df8b7f56de94.tar.gz
mtk-20170518-768e6750d77438bb461c5396f205df8b7f56de94.tar.bz2
ath9k: clean up some patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37919
Diffstat (limited to 'package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch')
-rw-r--r--package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch19
1 files changed, 1 insertions, 18 deletions
diff --git a/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch b/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
index a0bea05..6992324 100644
--- a/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
+++ b/package/kernel/mac80211/patches/512-ath9k_channelbw_debugfs.patch
@@ -8,14 +8,6 @@
struct survey_info *cur_survey;
struct survey_info survey[ATH9K_NUM_CHANNELS];
-@@ -905,6 +906,7 @@ struct fft_sample_ht20 {
- u8 data[SPECTRAL_HT20_NUM_BINS];
- } __packed;
-
-+int ath9k_config(struct ieee80211_hw *hw, u32 changed);
- void ath9k_tasklet(unsigned long data);
- int ath_cabq_update(struct ath_softc *);
-
--- a/drivers/net/wireless/ath/ath9k/debug.c
+++ b/drivers/net/wireless/ath/ath9k/debug.c
@@ -1918,6 +1918,50 @@ static const struct file_operations fops
@@ -52,7 +44,7 @@
+
+ sc->chan_bw = chan_bw;
+ if (!test_bit(SC_OP_INVALID, &sc->sc_flags))
-+ ath9k_config(sc->hw, IEEE80211_CONF_CHANGE_CHANNEL);
++ ath9k_ops.config(sc->hw, IEEE80211_CONF_CHANGE_CHANNEL);
+
+ return count;
+}
@@ -80,15 +72,6 @@
debugfs_create_file("interrupt", S_IRUSR, sc->debug.debugfs_phy, sc,
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -1146,7 +1146,7 @@ int ath9k_spectral_scan_config(struct ie
- return 0;
- }
-
--static int ath9k_config(struct ieee80211_hw *hw, u32 changed)
-+int ath9k_config(struct ieee80211_hw *hw, u32 changed)
- {
- struct ath_softc *sc = hw->priv;
- struct ath_hw *ah = sc->sc_ah;
@@ -1200,8 +1200,10 @@ static int ath9k_config(struct ieee80211
if ((changed & IEEE80211_CONF_CHANGE_CHANNEL) || reset_channel) {