Lines Matching full:channel
132 wpa_printf(MSG_ERROR, "Channel %d is not allowed as primary", in allowed_ht40_channel_pair()
138 "HT40: control channel: %d (%d MHz), secondary channel: %d (%d MHz)", in allowed_ht40_channel_pair()
141 /* Verify that HT40 secondary channel is an allowed 20 MHz in allowed_ht40_channel_pair()
142 * channel */ in allowed_ht40_channel_pair()
146 wpa_printf(MSG_ERROR, "HT40 secondary channel %d not allowed", in allowed_ht40_channel_pair()
152 * Verify that HT40 primary,secondary channel pair is allowed per in allowed_ht40_channel_pair()
154 * 2.4 GHz rules allow all cases where the secondary channel fits into in allowed_ht40_channel_pair()
170 wpa_printf(MSG_ERROR, "HT40 channel pair (%d, %d) not allowed", in allowed_ht40_channel_pair()
217 * channel, but not on selected PRI channel. in check_40mhz_5g()
229 …"Switch own primary and secondary channel to get secondary channel with no Beacons from other BSSe… in check_40mhz_5g()
234 * Match PRI/SEC channel with any existing HT40 BSS on the same in check_40mhz_5g()
255 "secondary channel due to BSS " in check_40mhz_5g()
316 wpa_printf(MSG_DEBUG, "40 MHz affected channel range: [%d,%d] MHz", in check_40mhz_2g4()
343 continue; /* not within affected channel range */ in check_40mhz_2g4()
373 "40 MHz Intolerant is set on channel %d in BSS " in check_40mhz_2g4()
455 int freq, int channel, int enable_edmg, in hostapd_set_freq_params() argument
476 data->channel = channel; in hostapd_set_freq_params()
497 hostapd_encode_edmg_chan(enable_edmg, edmg_channel, channel, in hostapd_set_freq_params()
507 if (center_idx_to_bw_6ghz(channel) < 0) { in hostapd_set_freq_params()
509 "Invalid control channel for 6 GHz band"); in hostapd_set_freq_params()
532 /* The 6 GHz channel 2 uses a different operating class in hostapd_set_freq_params()
575 "320 MHz channel width is not supported in 5 or 6 GHz"); in hostapd_set_freq_params()
593 "40 MHz channel width is not supported in 2.4 GHz"); in hostapd_set_freq_params()
605 "40/80 MHz channel width is not supported in 5/6 GHz"); in hostapd_set_freq_params()
615 "80+80 MHz channel width is not supported in 5/6 GHz"); in hostapd_set_freq_params()
624 "160 MHz channel width is not supported in 5 / 6GHz"); in hostapd_set_freq_params()
636 "80+80 channel width is not supported!"); in hostapd_set_freq_params()
646 "160 MHz channel width is not supported!"); in hostapd_set_freq_params()
658 punct_update_legacy_bw(punct_bitmap, channel, in hostapd_set_freq_params()
689 "80/80+80 MHz: no second channel offset"); in hostapd_set_freq_params()
705 if (channel <= 48) in hostapd_set_freq_params()
707 else if (channel <= 64) in hostapd_set_freq_params()
709 else if (channel <= 112) in hostapd_set_freq_params()
711 else if (channel <= 128) in hostapd_set_freq_params()
713 else if (channel <= 144) in hostapd_set_freq_params()
715 else if (channel <= 161) in hostapd_set_freq_params()
717 else if (channel <= 177) in hostapd_set_freq_params()
723 * HT40 channel band is in VHT80 Pri channel band in hostapd_set_freq_params()
726 if (center_segment0 == channel + 6 || in hostapd_set_freq_params()
727 center_segment0 == channel + 2 || in hostapd_set_freq_params()
728 center_segment0 == channel - 2 || in hostapd_set_freq_params()
729 center_segment0 == channel - 6) in hostapd_set_freq_params()
733 "Wrong coupling between HT and VHT/HE channel setting"); in hostapd_set_freq_params()
748 "160 MHz: second channel offset not set"); in hostapd_set_freq_params()
753 * HT40 channel band is in VHT160 channel band configuration. in hostapd_set_freq_params()
755 if (center_segment0 == channel + 14 || in hostapd_set_freq_params()
756 center_segment0 == channel + 10 || in hostapd_set_freq_params()
757 center_segment0 == channel + 6 || in hostapd_set_freq_params()
758 center_segment0 == channel + 2 || in hostapd_set_freq_params()
759 center_segment0 == channel - 2 || in hostapd_set_freq_params()
760 center_segment0 == channel - 6 || in hostapd_set_freq_params()
761 center_segment0 == channel - 10 || in hostapd_set_freq_params()
762 center_segment0 == channel - 14) in hostapd_set_freq_params()
766 "160 MHz: HT40 channel band is not in 160 MHz band"); in hostapd_set_freq_params()
774 "320 MHz: EHT not enabled or not a 6 GHz channel"); in hostapd_set_freq_params()
782 if (center_segment0 == channel + 30 || in hostapd_set_freq_params()
783 center_segment0 == channel + 26 || in hostapd_set_freq_params()
784 center_segment0 == channel + 22 || in hostapd_set_freq_params()
785 center_segment0 == channel + 18 || in hostapd_set_freq_params()
786 center_segment0 == channel + 14 || in hostapd_set_freq_params()
787 center_segment0 == channel + 10 || in hostapd_set_freq_params()
788 center_segment0 == channel + 6 || in hostapd_set_freq_params()
789 center_segment0 == channel + 2 || in hostapd_set_freq_params()
790 center_segment0 == channel - 2 || in hostapd_set_freq_params()
791 center_segment0 == channel - 6 || in hostapd_set_freq_params()
792 center_segment0 == channel - 10 || in hostapd_set_freq_params()
793 center_segment0 == channel - 14 || in hostapd_set_freq_params()
794 center_segment0 == channel - 18 || in hostapd_set_freq_params()
795 center_segment0 == channel - 22 || in hostapd_set_freq_params()
796 center_segment0 == channel - 26 || in hostapd_set_freq_params()
797 center_segment0 == channel - 30) in hostapd_set_freq_params()
925 /* check if BW is applicable for channel */
936 /* HT 40 MHz support declared only for primary channel, in chan_bw_allowed()
963 /* check if channel is allowed to be used as primary */
971 /* IEEE P802.11be/D3.0, Table 36-30 - Definition of the Punctured Channel
1021 if (!bitmap) /* No channel active */ in is_punct_bitmap_valid()
1025 wpa_printf(MSG_DEBUG, "Primary channel cannot be punctured"); in is_punct_bitmap_valid()