提交 65d26f29 编写于 作者: M Michal Kazior 提交者: Johannes Berg

cfg80211: fix radar_detect combination checking

All bits from radar_detect must match combination
radar bitmask. Otherwise it is theoretically
possible to lead into an invalid combination
provided a driver reports strange combinations.
Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 5d52ee81
......@@ -1309,7 +1309,7 @@ int cfg80211_check_combinations(struct wiphy *wiphy,
}
}
if (radar_detect && !(c->radar_detect_widths & radar_detect))
if (radar_detect != (c->radar_detect_widths & radar_detect))
goto cont;
/* Finally check that all iftypes that we're currently
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册