Lines Matching defs:width
37 chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
41 chandef->width = NL80211_CHAN_WIDTH_20;
45 chandef->width = NL80211_CHAN_WIDTH_40;
49 chandef->width = NL80211_CHAN_WIDTH_40;
143 switch (chandef->width) {
312 enum nl80211_chan_width width)
321 bw = nl80211_chan_width_to_mhz(width);
354 switch (chandef->width) {
396 switch (chandef->width) {
441 if (!cfg80211_valid_center_freq(chandef->center_freq1, chandef->width))
444 if (chandef->width == NL80211_CHAN_WIDTH_80P80 &&
445 !cfg80211_valid_center_freq(chandef->center_freq2, chandef->width))
450 chandef->width != NL80211_CHAN_WIDTH_20_NOHT)
469 int width = cfg80211_chandef_get_width(c);
474 if (WARN_ON_ONCE(pri_width < 0 || width < 0))
478 if (WARN_ON_ONCE(pri_width > width))
486 while (width > pri_width) {
487 unsigned int bits_to_drop = width / 20 / 2;
490 center += width / 4;
493 center -= width / 4;
496 width /= 2;
518 /* assumes c1 is smaller width, if that was just checked -> done */
519 if (c1->width == primary_chan_width)
522 /* otherwise continue checking the next width */
541 * If they have the same width, but aren't identical,
544 if (c1->width == c2->width)
549 * but they don't have the same width.
551 #define NARROW_OR_S1G(width) ((width) == NL80211_CHAN_WIDTH_5 || \
552 (width) == NL80211_CHAN_WIDTH_10 || \
553 (width) == NL80211_CHAN_WIDTH_1 || \
554 (width) == NL80211_CHAN_WIDTH_2 || \
555 (width) == NL80211_CHAN_WIDTH_4 || \
556 (width) == NL80211_CHAN_WIDTH_8 || \
557 (width) == NL80211_CHAN_WIDTH_16)
559 if (NARROW_OR_S1G(c1->width) || NARROW_OR_S1G(c2->width))
567 if (c1->width > c2->width)
575 if (c1->width <= NL80211_CHAN_WIDTH_20)
591 if (c1->width == NL80211_CHAN_WIDTH_80P80)
626 int width;
631 width = cfg80211_chandef_get_width(chandef);
632 if (width < 0)
746 int width;
757 width = cfg80211_chandef_get_width(chandef);
758 if (width < 0)
763 return (ret > 0) ? BIT(chandef->width) : ret;
787 int width, count = 0;
792 width = cfg80211_chandef_get_width(chandef);
793 if (width < 0)
831 int width;
843 width = cfg80211_chandef_get_width(chandef);
844 if (width <= 20)
847 for (freq = chandef->center_freq1 - width / 2 + 10;
848 freq <= chandef->center_freq1 + width / 2 - 10; freq += 20) {
856 for (freq = chandef->center_freq2 - width / 2 + 10;
857 freq <= chandef->center_freq2 + width / 2 - 10; freq += 20) {
997 int width;
1003 width = cfg80211_chandef_get_width(chandef);
1004 if (width < 0)
1037 int width;
1043 width = cfg80211_chandef_get_width(chandef);
1044 if (width < 0)
1190 u32 width, control_freq, cap;
1219 switch (chandef->width) {
1221 width = 5;
1225 width = 10;
1234 width = 20;
1237 width = 40;
1265 width = 80;
1273 width = 160;
1287 width = 320;
1326 if (width > 20)
1330 if (width < 20)
1534 (chandef->width == NL80211_CHAN_WIDTH_20_NOHT ||
1535 chandef->width == NL80211_CHAN_WIDTH_20))