diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-10-22 09:20:53 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-22 10:36:32 -0400 |
commit | 746a336582a7e05082ab4efbb43f5357858f629a (patch) | |
tree | 6435fa13012b8d07c8c8d1879418792efc1186a5 /net/mac80211/main.c | |
parent | d012a605108a482392be80710ea35f1db27c4aa9 (diff) |
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: Ronald <ronald645@gmail.com>
Tested-by: Ronald <ronald645@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index c42094be2f0b..fd8345c20051 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -751,7 +751,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
751 | if (comb->num_different_channels > 1) | 751 | if (comb->num_different_channels > 1) |
752 | return -EINVAL; | 752 | return -EINVAL; |
753 | } | 753 | } |
754 | 754 | } else { | |
755 | /* | 755 | /* |
756 | * WDS is currently prohibited when channel contexts are used | 756 | * WDS is currently prohibited when channel contexts are used |
757 | * because there's no clear definition of which channel WDS | 757 | * because there's no clear definition of which channel WDS |