diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-29 12:25:46 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-29 12:25:46 +0000 |
commit | a5edb705b4374e1e7a1cf323f81a57debbad8a05 (patch) | |
tree | 0576e300b69a81bcb1bcb54bf0d877bdcd2b58f1 /package/mac80211/patches/540-ath9k_channelbw_debugfs.patch | |
parent | e4b6839fd399aa4e66712af87c51b1934c9b1d16 (diff) | |
download | upstream-a5edb705b4374e1e7a1cf323f81a57debbad8a05.tar.gz upstream-a5edb705b4374e1e7a1cf323f81a57debbad8a05.tar.bz2 upstream-a5edb705b4374e1e7a1cf323f81a57debbad8a05.zip |
ath9k: fix switching channel bandwidth from 5/10 back to 20mhz
SVN-Revision: 27827
Diffstat (limited to 'package/mac80211/patches/540-ath9k_channelbw_debugfs.patch')
-rw-r--r-- | package/mac80211/patches/540-ath9k_channelbw_debugfs.patch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch index 9c2c014a5e..28251eeef1 100644 --- a/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch +++ b/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch @@ -30,7 +30,7 @@ int r; if (sc->sc_flags & SC_OP_INVALID) -@@ -268,6 +269,21 @@ static int ath_set_channel(struct ath_so +@@ -268,6 +269,24 @@ static int ath_set_channel(struct ath_so if (!stopped || !(sc->sc_flags & SC_OP_OFFCHANNEL)) fastcc = false; @@ -44,6 +44,9 @@ + hchan->channelFlags &= ~CHANNEL_QUARTER; + hchan->channelFlags |= CHANNEL_HALF; + break; ++ default: ++ hchan->channelFlags &= ~(CHANNEL_HALF | CHANNEL_QUARTER); ++ break; + } + + if (oldflags != hchan->channelFlags) |