projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e6934
)
wireless: fix regulatory HT40 allowed check
author
Felix Fietkau
<
[email protected]
>
Fri, 11 Jan 2013 13:22:58 +0000
(14:22 +0100)
committer
Johannes Berg
<
[email protected]
>
Fri, 11 Jan 2013 13:32:20 +0000
(14:32 +0100)
commit
1a9193185f462a51815fe48491f8a6fb6b942551
"regulatory: code cleanup"
changed is_ht40_allowed without considering that IEEE80211_CHAN_NO_HT40 is
not just one flag, but two.
This is causing HT40- to be blocked completely.
Signed-off-by: Felix Fietkau <
[email protected]
>
Signed-off-by: Johannes Berg <
[email protected]
>
net/wireless/reg.c
patch
|
blob
|
history
diff --git
a/net/wireless/reg.c
b/net/wireless/reg.c
index 8c114e8a9135517e994d3ec64d650c9f8a83fcbf..6ea626b30a2ac4dbad10901a3b2c370eb002f103 100644
(file)
--- a/
net/wireless/reg.c
+++ b/
net/wireless/reg.c
@@
-1123,7
+1123,9
@@
static bool is_ht40_allowed(struct ieee80211_channel *chan)
if (chan->flags & IEEE80211_CHAN_DISABLED)
return false;
/* This would happen when regulatory rules disallow HT40 completely */
- return !(chan->flags & IEEE80211_CHAN_NO_HT40);
+ if ((chan->flags & IEEE80211_CHAN_NO_HT40) == IEEE80211_CHAN_NO_HT40)
+ return false;
+ return true;
}
static void reg_process_ht_flags_channel(struct wiphy *wiphy,