Lines Matching defs:width
38 chandef->width = NL80211_CHAN_WIDTH_20_NOHT;
42 chandef->width = NL80211_CHAN_WIDTH_20;
46 chandef->width = NL80211_CHAN_WIDTH_40;
50 chandef->width = NL80211_CHAN_WIDTH_40;
196 return nl80211_chan_width_to_mhz(c->width);
212 switch (chandef->width) {
265 switch (chandef->width) {
312 chandef->width != NL80211_CHAN_WIDTH_20_NOHT)
328 switch (c->width) {
391 * If they have the same width, but aren't identical,
394 if (c1->width == c2->width)
399 * but they don't have the same width.
401 if (c1->width == NL80211_CHAN_WIDTH_5 ||
402 c1->width == NL80211_CHAN_WIDTH_10 ||
403 c2->width == NL80211_CHAN_WIDTH_5 ||
404 c2->width == NL80211_CHAN_WIDTH_10)
407 if (c1->width == NL80211_CHAN_WIDTH_20_NOHT ||
408 c1->width == NL80211_CHAN_WIDTH_20)
411 if (c2->width == NL80211_CHAN_WIDTH_20_NOHT ||
412 c2->width == NL80211_CHAN_WIDTH_20)
421 if (c1->width == NL80211_CHAN_WIDTH_40)
424 if (c2->width == NL80211_CHAN_WIDTH_40)
430 if (c1->width == NL80211_CHAN_WIDTH_80 &&
431 c2->width > NL80211_CHAN_WIDTH_80)
434 if (c2->width == NL80211_CHAN_WIDTH_80 &&
435 c1->width > NL80211_CHAN_WIDTH_80)
442 if (c1->width > c2->width)
471 int width;
476 width = cfg80211_chandef_get_width(chandef);
477 if (width < 0)
481 width, dfs_state);
486 width, dfs_state);
543 int width;
554 width = cfg80211_chandef_get_width(chandef);
555 if (width < 0)
560 width);
564 return BIT(chandef->width);
571 width);
575 return BIT(chandef->width);
636 int width;
642 width = cfg80211_chandef_get_width(chandef);
643 if (width < 0)
648 width);
653 switch (chandef->width) {
658 width);
678 int width;
690 width = cfg80211_chandef_get_width(chandef);
691 if (width <= 20)
694 for (freq = chandef->center_freq1 - width / 2 + 10;
695 freq <= chandef->center_freq1 + width / 2 - 10; freq += 20) {
703 for (freq = chandef->center_freq2 - width / 2 + 10;
704 freq <= chandef->center_freq2 + width / 2 - 10; freq += 20) {
879 int width;
885 width = cfg80211_chandef_get_width(chandef);
886 if (width < 0)
891 width);
897 switch (chandef->width) {
902 width);
945 int width;
951 width = cfg80211_chandef_get_width(chandef);
952 if (width < 0)
957 width);
964 width);
1048 u32 width, control_freq, cap;
1073 switch (chandef->width) {
1075 width = 1;
1078 width = 2;
1081 width = 4;
1084 width = 8;
1087 width = 16;
1090 width = 5;
1094 width = 10;
1103 width = 20;
1106 width = 40;
1134 width = 80;
1142 width = 160;
1156 width = 320;
1196 if (width > 20)
1200 if (width < 20)
1206 width, prohibited_flags))
1213 width, prohibited_flags);
1500 switch (chandef->width) {