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;
193 return nl80211_chan_width_to_mhz(c->width);
209 switch (chandef->width) {
296 chandef->width != NL80211_CHAN_WIDTH_20_NOHT)
312 switch (c->width) {
358 * If they have the same width, but aren't identical,
361 if (c1->width == c2->width)
366 * but they don't have the same width.
368 if (c1->width == NL80211_CHAN_WIDTH_5 ||
369 c1->width == NL80211_CHAN_WIDTH_10 ||
370 c2->width == NL80211_CHAN_WIDTH_5 ||
371 c2->width == NL80211_CHAN_WIDTH_10)
374 if (c1->width == NL80211_CHAN_WIDTH_20_NOHT ||
375 c1->width == NL80211_CHAN_WIDTH_20)
378 if (c2->width == NL80211_CHAN_WIDTH_20_NOHT ||
379 c2->width == NL80211_CHAN_WIDTH_20)
392 if (c1->width > c2->width)
421 int width;
426 width = cfg80211_chandef_get_width(chandef);
427 if (width < 0)
431 width, dfs_state);
436 width, dfs_state);
493 int width;
504 width = cfg80211_chandef_get_width(chandef);
505 if (width < 0)
510 width);
514 return BIT(chandef->width);
521 width);
525 return BIT(chandef->width);
586 int width;
592 width = cfg80211_chandef_get_width(chandef);
593 if (width < 0)
598 width);
603 switch (chandef->width) {
608 width);
627 int width;
633 width = cfg80211_chandef_get_width(chandef);
634 if (width <= 20)
637 for (freq = chandef->center_freq1 - width / 2 + 10;
638 freq <= chandef->center_freq1 + width / 2 - 10; freq += 20) {
646 for (freq = chandef->center_freq2 - width / 2 + 10;
647 freq <= chandef->center_freq2 + width / 2 - 10; freq += 20) {
775 int width;
781 width = cfg80211_chandef_get_width(chandef);
782 if (width < 0)
787 width);
793 switch (chandef->width) {
798 width);
841 int width;
847 width = cfg80211_chandef_get_width(chandef);
848 if (width < 0)
853 width);
860 width);
944 u32 width, control_freq, cap;
964 switch (chandef->width) {
966 width = 1;
969 width = 2;
972 width = 4;
975 width = 8;
978 width = 16;
981 width = 5;
985 width = 10;
994 width = 20;
997 width = 40;
1024 width = 80;
1032 width = 160;
1059 if (width > 20)
1063 if (width < 20)
1069 width, prohibited_flags))
1076 width, prohibited_flags);
1275 *radar_detect |= BIT(wdev->chandef.width);
1292 *radar_detect |= BIT(wdev->chandef.width);
1302 *radar_detect |= BIT(wdev->chandef.width);
1315 *radar_detect |= BIT(wdev->chandef.width);