mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 13:16:22 +00:00
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: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
5d52ee8110
commit
65d26f29ec
@ -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;
|
goto cont;
|
||||||
|
|
||||||
/* Finally check that all iftypes that we're currently
|
/* Finally check that all iftypes that we're currently
|
||||||
|
Loading…
Reference in New Issue
Block a user