diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-01 12:15:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-08-01 12:15:15 +0000 |
commit | a1e19186fa70e8bc918d825e31a50259ea8082fd (patch) | |
tree | 7e08fcb20003dd62c1286426a50e8504e081e5db /package/mac80211/patches/540-ath9k_channelbw_debugfs.patch | |
parent | 478decc60bb34144cc60b61c27378d8b0a0dce9b (diff) | |
download | upstream-a1e19186fa70e8bc918d825e31a50259ea8082fd.tar.gz upstream-a1e19186fa70e8bc918d825e31a50259ea8082fd.tar.bz2 upstream-a1e19186fa70e8bc918d825e31a50259ea8082fd.zip |
ath9k: fold patches that were merged upstream into 300-pending_work.patch
SVN-Revision: 27860
Diffstat (limited to 'package/mac80211/patches/540-ath9k_channelbw_debugfs.patch')
-rw-r--r-- | package/mac80211/patches/540-ath9k_channelbw_debugfs.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch deleted file mode 100644 index 28251eeef1..0000000000 --- a/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch +++ /dev/null @@ -1,57 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/ath9k.h -+++ b/drivers/net/wireless/ath/ath9k/ath9k.h -@@ -586,6 +586,7 @@ struct ath_softc { - struct ieee80211_hw *hw; - struct device *dev; - -+ u32 chan_bw; - int chan_idx; - int chan_is_ht; - struct survey_info *cur_survey; ---- a/drivers/net/wireless/ath/ath9k/debug.c -+++ b/drivers/net/wireless/ath/ath9k/debug.c -@@ -1281,6 +1281,9 @@ int ath9k_init_debug(struct ath_hw *ah) - debugfs_create_file("eeprom", S_IRUSR, sc->debug.debugfs_phy, sc, - &fops_eeprom); - -+ debugfs_create_u32("chanbw", S_IRUSR | S_IWUSR, sc->debug.debugfs_phy, -+ &sc->chan_bw); -+ - sc->debug.regidx = 0; - return 0; - } ---- a/drivers/net/wireless/ath/ath9k/main.c -+++ b/drivers/net/wireless/ath/ath9k/main.c -@@ -226,6 +226,7 @@ static int ath_set_channel(struct ath_so - bool fastcc = true, stopped; - struct ieee80211_channel *channel = hw->conf.channel; - struct ath9k_hw_cal_data *caldata = NULL; -+ u32 oldflags; - int r; - - if (sc->sc_flags & SC_OP_INVALID) -@@ -268,6 +269,24 @@ static int ath_set_channel(struct ath_so - if (!stopped || !(sc->sc_flags & SC_OP_OFFCHANNEL)) - fastcc = false; - -+ oldflags = hchan->channelFlags; -+ switch (sc->chan_bw) { -+ case 5: -+ hchan->channelFlags &= ~CHANNEL_HALF; -+ hchan->channelFlags |= CHANNEL_QUARTER; -+ break; -+ case 10: -+ hchan->channelFlags &= ~CHANNEL_QUARTER; -+ hchan->channelFlags |= CHANNEL_HALF; -+ break; -+ default: -+ hchan->channelFlags &= ~(CHANNEL_HALF | CHANNEL_QUARTER); -+ break; -+ } -+ -+ if (oldflags != hchan->channelFlags) -+ fastcc = false; -+ - if (!(sc->sc_flags & SC_OP_OFFCHANNEL)) - caldata = &sc->caldata; - |