Lines Matching full:c2
509 const struct cfg80211_chan_def *c2, in check_chandef_primary_compat() argument
516 cfg80211_chandef_primary(c2, primary_chan_width, &punct_c2)) in check_chandef_primary_compat()
524 return c2; in check_chandef_primary_compat()
532 const struct cfg80211_chan_def *c2) in _cfg80211_chandef_compatible() argument
537 if (cfg80211_chandef_identical(c1, c2)) in _cfg80211_chandef_compatible()
538 return c2; in _cfg80211_chandef_compatible()
541 if (c1->chan != c2->chan) in _cfg80211_chandef_compatible()
548 if (c1->width == c2->width) in _cfg80211_chandef_compatible()
563 if (NARROW_OR_S1G(c1->width) || NARROW_OR_S1G(c2->width)) in _cfg80211_chandef_compatible()
568 * we either return NULL or c2 and don't have to check both in _cfg80211_chandef_compatible()
571 if (c1->width > c2->width) in _cfg80211_chandef_compatible()
572 swap(c1, c2); in _cfg80211_chandef_compatible()
580 return c2; in _cfg80211_chandef_compatible()
582 ret = check_chandef_primary_compat(c1, c2, NL80211_CHAN_WIDTH_40); in _cfg80211_chandef_compatible()
586 ret = check_chandef_primary_compat(c1, c2, NL80211_CHAN_WIDTH_80); in _cfg80211_chandef_compatible()
591 * If c1 is 80+80, then c2 is 160 or higher, but that cannot in _cfg80211_chandef_compatible()
592 * match. If c2 was also 80+80 it was already either accepted in _cfg80211_chandef_compatible()
598 ret = check_chandef_primary_compat(c1, c2, NL80211_CHAN_WIDTH_160); in _cfg80211_chandef_compatible()
614 const struct cfg80211_chan_def *c2) in cfg80211_chandef_compatible() argument
618 ret = _cfg80211_chandef_compatible(c1, c2); in cfg80211_chandef_compatible()