projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath9k: fix switching channel bandwidth from 5/10 back to 20mhz (backport of r27827)
[openwrt-10.03/.git]
/
package
/
mac80211
/
patches
/
540-ath9k_channelbw_debugfs.patch
diff --git
a/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch
b/package/mac80211/patches/540-ath9k_channelbw_debugfs.patch
index 9c2c014a5e488f8ad632c8ad3d23c8e18dc6b2f5..28251eeef196292b9316caeaae32280060709446 100644
(file)
--- 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)
int r;
if (sc->sc_flags & SC_OP_INVALID)
-@@ -268,6 +269,2
1
@@ static int ath_set_channel(struct ath_so
+@@ -268,6 +269,2
4
@@ static int ath_set_channel(struct ath_so
if (!stopped || !(sc->sc_flags & SC_OP_OFFCHANNEL))
fastcc = false;
if (!stopped || !(sc->sc_flags & SC_OP_OFFCHANNEL))
fastcc = false;
@@
-44,6
+44,9
@@
+ hchan->channelFlags &= ~CHANNEL_QUARTER;
+ hchan->channelFlags |= CHANNEL_HALF;
+ break;
+ hchan->channelFlags &= ~CHANNEL_QUARTER;
+ hchan->channelFlags |= CHANNEL_HALF;
+ break;
++ default:
++ hchan->channelFlags &= ~(CHANNEL_HALF | CHANNEL_QUARTER);
++ break;
+ }
+
+ if (oldflags != hchan->channelFlags)
+ }
+
+ if (oldflags != hchan->channelFlags)