Commit 746a3365 authored by Johannes Berg's avatar Johannes Berg

mac80211: fix WDS channel context test

WDS is (currently) not allowed when channel
contexts are *supported*, not when they're
*not* supported. Fix the inverted test.
Reported-by: default avatarRonald <ronald645@gmail.com>
Tested-by: default avatarRonald <ronald645@gmail.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent d012a605
...@@ -751,7 +751,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) ...@@ -751,7 +751,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
if (comb->num_different_channels > 1) if (comb->num_different_channels > 1)
return -EINVAL; return -EINVAL;
} }
} else {
/* /*
* WDS is currently prohibited when channel contexts are used * WDS is currently prohibited when channel contexts are used
* because there's no clear definition of which channel WDS * because there's no clear definition of which channel WDS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment