diff --git a/net/wireless/util.c b/net/wireless/util.c index 5433659a08ee54ae717e08de482efc51b266bfbb..d032a31828f1025f0752daa6519f67c24f3724e9 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c @@ -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