summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/540-ath9k_channelbw_debugfs.patch')
-rw-r--r--package/mac80211/patches/540-ath9k_channelbw_debugfs.patch5
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)