Lines Matching refs:band
248 static struct hostapd_hw_modes *get_mode_by_band(struct wpa_supplicant *wpa_s, uint8_t band) in get_mode_by_band() argument
251 bool is_6ghz = (band == WIFI_FREQ_BAND_6_GHZ) ? true : false; in get_mode_by_band()
253 if (band == WIFI_FREQ_BAND_2_4_GHZ) { in get_mode_by_band()
255 } else if ((band == WIFI_FREQ_BAND_5_GHZ) || in get_mode_by_band()
256 (band == WIFI_FREQ_BAND_6_GHZ)) { in get_mode_by_band()
265 static int wpa_supp_supported_channels(struct wpa_supplicant *wpa_s, uint8_t band, char **chan_list) in wpa_supp_supported_channels() argument
273 mode = get_mode_by_band(wpa_s, band); in wpa_supp_supported_channels()
275 wpa_printf(MSG_ERROR, "Unsupported or invalid band: %d", band); in wpa_supp_supported_channels()
298 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
303 mode = get_mode_by_band(wpa_s, band); in wpa_supp_band_chan_compat()
305 wpa_printf(MSG_ERROR, "Unsupported or invalid band: %d", band); in wpa_supp_band_chan_compat()
315 wpa_printf(MSG_ERROR, "Channel %d not supported for band %d", channel, band); in wpa_supp_band_chan_compat()
356 static inline enum wifi_frequency_bands wpas_band_to_zephyr(enum wpa_radio_work_band band) in wpas_band_to_zephyr() argument
358 switch (band) { in wpas_band_to_zephyr()
979 if (params->band != WIFI_FREQ_BAND_UNKNOWN) { in wpas_add_and_config_network()
980 ret = wpa_supp_supported_channels(wpa_s, params->band, &chan_list); in wpas_add_and_config_network()
1334 if (params->band != WIFI_FREQ_BAND_UNKNOWN) { in wpas_add_and_config_network()
1335 freq = wpa_supp_band_chan_compat(wpa_s, params->band, params->channel); in wpas_add_and_config_network()
1621 status->band = wpas_band_to_zephyr(wpas_freq_to_band(wpa_s->assoc_freq));
2321 if (params->band == 0) {
2325 } else if (params->band == 1) {
2330 wpa_printf(MSG_ERROR, "Invalid band %d", params->band);
2612 status->band = wpas_band_to_zephyr(wpas_freq_to_band(iface->freq));