Lines Matching refs:band
201 static struct hostapd_hw_modes *get_mode_by_band(struct wpa_supplicant *wpa_s, uint8_t band) in get_mode_by_band() argument
204 bool is_6ghz = (band == WIFI_FREQ_BAND_6_GHZ) ? true : false; in get_mode_by_band()
206 if (band == WIFI_FREQ_BAND_2_4_GHZ) { in get_mode_by_band()
208 } else if ((band == WIFI_FREQ_BAND_5_GHZ) || in get_mode_by_band()
209 (band == WIFI_FREQ_BAND_6_GHZ)) { in get_mode_by_band()
218 static int wpa_supp_supported_channels(struct wpa_supplicant *wpa_s, uint8_t band, char **chan_list) in wpa_supp_supported_channels() argument
226 mode = get_mode_by_band(wpa_s, band); in wpa_supp_supported_channels()
228 wpa_printf(MSG_ERROR, "Unsupported or invalid band: %d", band); in wpa_supp_supported_channels()
251 static int wpa_supp_band_chan_compat(struct wpa_supplicant *wpa_s, uint8_t band, uint8_t channel) in wpa_supp_band_chan_compat() argument
256 mode = get_mode_by_band(wpa_s, band); in wpa_supp_band_chan_compat()
258 wpa_printf(MSG_ERROR, "Unsupported or invalid band: %d", band); in wpa_supp_band_chan_compat()
268 wpa_printf(MSG_ERROR, "Channel %d not supported for band %d", channel, band); in wpa_supp_band_chan_compat()
309 enum wifi_frequency_bands wpas_band_to_zephyr(enum wpa_radio_work_band band) in wpas_band_to_zephyr() argument
311 switch (band) { in wpas_band_to_zephyr()
666 if (params->band != WIFI_FREQ_BAND_UNKNOWN) { in wpas_add_and_config_network()
667 ret = wpa_supp_supported_channels(wpa_s, params->band, &chan_list); in wpas_add_and_config_network()
1056 if (params->band != WIFI_FREQ_BAND_UNKNOWN) { in wpas_add_and_config_network()
1057 freq = wpa_supp_band_chan_compat(wpa_s, params->band, params->channel); in wpas_add_and_config_network()
1345 status->band = wpas_band_to_zephyr(wpas_freq_to_band(wpa_s->assoc_freq));