Lines Matching refs:c1
508 check_chandef_primary_compat(const struct cfg80211_chan_def *c1,
515 if (cfg80211_chandef_primary(c1, primary_chan_width, &punct_c1) !=
522 /* assumes c1 is smaller width, if that was just checked -> done */
523 if (c1->width == primary_chan_width)
531 _cfg80211_chandef_compatible(const struct cfg80211_chan_def *c1,
537 if (cfg80211_chandef_identical(c1, c2))
541 if (c1->chan != c2->chan)
548 if (c1->width == c2->width)
563 if (NARROW_OR_S1G(c1->width) || NARROW_OR_S1G(c2->width))
567 * Make sure that c1 is always the narrower one, so that later
571 if (c1->width > c2->width)
572 swap(c1, c2);
579 if (c1->width <= NL80211_CHAN_WIDTH_20)
582 ret = check_chandef_primary_compat(c1, c2, NL80211_CHAN_WIDTH_40);
586 ret = check_chandef_primary_compat(c1, c2, NL80211_CHAN_WIDTH_80);
591 * If c1 is 80+80, then c2 is 160 or higher, but that cannot
595 if (c1->width == NL80211_CHAN_WIDTH_80P80)
598 ret = check_chandef_primary_compat(c1, c2, NL80211_CHAN_WIDTH_160);
613 cfg80211_chandef_compatible(const struct cfg80211_chan_def *c1,
618 ret = _cfg80211_chandef_compatible(c1, c2);