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: Michal Kazior <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
}
}
- 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