Lines Matching full:width

36 		chandef->width = NL80211_CHAN_WIDTH_20_NOHT;  in cfg80211_chandef_create()
40 chandef->width = NL80211_CHAN_WIDTH_20; in cfg80211_chandef_create()
44 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create()
48 chandef->width = NL80211_CHAN_WIDTH_40; in cfg80211_chandef_create()
151 switch (chandef->width) { in cfg80211_chandef_valid()
209 chandef->width != NL80211_CHAN_WIDTH_20_NOHT) in cfg80211_chandef_valid()
225 switch (c->width) { in chandef_primary_freqs()
258 int width; in cfg80211_chandef_get_width() local
260 switch (c->width) { in cfg80211_chandef_get_width()
262 width = 5; in cfg80211_chandef_get_width()
265 width = 10; in cfg80211_chandef_get_width()
269 width = 20; in cfg80211_chandef_get_width()
272 width = 40; in cfg80211_chandef_get_width()
276 width = 80; in cfg80211_chandef_get_width()
279 width = 160; in cfg80211_chandef_get_width()
285 return width; in cfg80211_chandef_get_width()
303 * If they have the same width, but aren't identical, in cfg80211_chandef_compatible()
306 if (c1->width == c2->width) in cfg80211_chandef_compatible()
311 * but they don't have the same width. in cfg80211_chandef_compatible()
313 if (c1->width == NL80211_CHAN_WIDTH_5 || in cfg80211_chandef_compatible()
314 c1->width == NL80211_CHAN_WIDTH_10 || in cfg80211_chandef_compatible()
315 c2->width == NL80211_CHAN_WIDTH_5 || in cfg80211_chandef_compatible()
316 c2->width == NL80211_CHAN_WIDTH_10) in cfg80211_chandef_compatible()
319 if (c1->width == NL80211_CHAN_WIDTH_20_NOHT || in cfg80211_chandef_compatible()
320 c1->width == NL80211_CHAN_WIDTH_20) in cfg80211_chandef_compatible()
323 if (c2->width == NL80211_CHAN_WIDTH_20_NOHT || in cfg80211_chandef_compatible()
324 c2->width == NL80211_CHAN_WIDTH_20) in cfg80211_chandef_compatible()
337 if (c1->width > c2->width) in cfg80211_chandef_compatible()
366 int width; in cfg80211_set_dfs_state() local
371 width = cfg80211_chandef_get_width(chandef); in cfg80211_set_dfs_state()
372 if (width < 0) in cfg80211_set_dfs_state()
376 width, dfs_state); in cfg80211_set_dfs_state()
381 width, dfs_state); in cfg80211_set_dfs_state()
436 int width; in cfg80211_chandef_dfs_required() local
447 width = cfg80211_chandef_get_width(chandef); in cfg80211_chandef_dfs_required()
448 if (width < 0) in cfg80211_chandef_dfs_required()
453 width); in cfg80211_chandef_dfs_required()
457 return BIT(chandef->width); in cfg80211_chandef_dfs_required()
464 width); in cfg80211_chandef_dfs_required()
468 return BIT(chandef->width); in cfg80211_chandef_dfs_required()
529 int width; in cfg80211_chandef_dfs_usable() local
535 width = cfg80211_chandef_get_width(chandef); in cfg80211_chandef_dfs_usable()
536 if (width < 0) in cfg80211_chandef_dfs_usable()
540 width); in cfg80211_chandef_dfs_usable()
545 switch (chandef->width) { in cfg80211_chandef_dfs_usable()
550 width); in cfg80211_chandef_dfs_usable()
569 int width; in cfg80211_is_sub_chan() local
575 width = cfg80211_chandef_get_width(chandef); in cfg80211_is_sub_chan()
576 if (width <= 20) in cfg80211_is_sub_chan()
579 for (freq = chandef->center_freq1 - width / 2 + 10; in cfg80211_is_sub_chan()
580 freq <= chandef->center_freq1 + width / 2 - 10; freq += 20) { in cfg80211_is_sub_chan()
588 for (freq = chandef->center_freq2 - width / 2 + 10; in cfg80211_is_sub_chan()
589 freq <= chandef->center_freq2 + width / 2 - 10; freq += 20) { in cfg80211_is_sub_chan()
717 int width; in cfg80211_chandef_dfs_available() local
723 width = cfg80211_chandef_get_width(chandef); in cfg80211_chandef_dfs_available()
724 if (width < 0) in cfg80211_chandef_dfs_available()
728 width); in cfg80211_chandef_dfs_available()
734 switch (chandef->width) { in cfg80211_chandef_dfs_available()
739 width); in cfg80211_chandef_dfs_available()
782 int width; in cfg80211_chandef_dfs_cac_time() local
788 width = cfg80211_chandef_get_width(chandef); in cfg80211_chandef_dfs_cac_time()
789 if (width < 0) in cfg80211_chandef_dfs_cac_time()
794 width); in cfg80211_chandef_dfs_cac_time()
801 width); in cfg80211_chandef_dfs_cac_time()
885 u32 width, control_freq, cap; in cfg80211_chandef_usable() local
904 switch (chandef->width) { in cfg80211_chandef_usable()
906 width = 5; in cfg80211_chandef_usable()
910 width = 10; in cfg80211_chandef_usable()
918 width = 20; in cfg80211_chandef_usable()
921 width = 40; in cfg80211_chandef_usable()
943 width = 80; in cfg80211_chandef_usable()
953 width = 160; in cfg80211_chandef_usable()
971 if (width > 20) in cfg80211_chandef_usable()
975 if (width < 20) in cfg80211_chandef_usable()
980 width, prohibited_flags)) in cfg80211_chandef_usable()
986 width, prohibited_flags); in cfg80211_chandef_usable()
1185 *radar_detect |= BIT(wdev->chandef.width); in cfg80211_get_chan_state()
1202 *radar_detect |= BIT(wdev->chandef.width); in cfg80211_get_chan_state()
1212 *radar_detect |= BIT(wdev->chandef.width); in cfg80211_get_chan_state()
1225 *radar_detect |= BIT(wdev->chandef.width); in cfg80211_get_chan_state()