Lines Matching refs:modes
459 if (wpa_s->hw.modes == NULL) in free_hw_features()
463 os_free(wpa_s->hw.modes[i].channels); in free_hw_features()
464 os_free(wpa_s->hw.modes[i].rates); in free_hw_features()
467 os_free(wpa_s->hw.modes); in free_hw_features()
468 wpa_s->hw.modes = NULL; in free_hw_features()
2780 for (i = 0; wpa_s->hw.modes && i < wpa_s->hw.num_modes; i++) { in drv_supports_vht()
2781 if (wpa_s->hw.modes[i].mode == hw_mode) { in drv_supports_vht()
2782 mode = &wpa_s->hw.modes[i]; in drv_supports_vht()
2873 for (i = 0; wpa_s->hw.modes && i < wpa_s->hw.num_modes; i++) { in ibss_mesh_setup_freq()
2874 if (wpa_s->hw.modes[i].mode == hw_mode) { in ibss_mesh_setup_freq()
2875 mode = &wpa_s->hw.modes[i]; in ibss_mesh_setup_freq()
4009 if (!wpa_s->hw.modes) in get_supported_edmg()
4016 mode = get_mode(wpa_s->hw.modes, wpa_s->hw.num_modes, hw_mode, false); in get_supported_edmg()
6333 *hw_mode = wpa_s->hw.modes[0].mode; in wpas_fst_get_channel_info_cb()
6341 static int wpas_fst_get_hw_modes(void *ctx, struct hostapd_hw_modes **modes) in wpas_fst_get_hw_modes() argument
6345 *modes = wpa_s->hw.modes; in wpas_fst_get_hw_modes()
6479 if (wpa_s->hw.modes[i].num_channels != 0) { in wpas_get_bands()
6480 if (wpa_s->hw.modes[i].mode == in wpas_get_bands()
6482 wpa_s->hw.modes[i].mode == in wpas_get_bands()
6485 else if (wpa_s->hw.modes[i].mode == in wpas_get_bands()
6488 else if (wpa_s->hw.modes[i].mode == in wpas_get_bands()
6491 else if (wpa_s->hw.modes[i].mode == in wpas_get_bands()
7166 wpa_s->hw.modes = wpa_drv_get_hw_feature_data(wpa_s, in wpa_supplicant_init_iface()
7170 if (wpa_s->hw.modes) { in wpa_supplicant_init_iface()
7174 if (wpa_s->hw.modes[i].vht_capab) { in wpa_supplicant_init_iface()
7179 if (wpa_s->hw.modes[i].ht_capab & in wpa_supplicant_init_iface()
7182 else if (wpa_s->hw.modes[i].ht_capab && in wpa_supplicant_init_iface()
8912 struct hostapd_hw_modes * get_mode(struct hostapd_hw_modes *modes, in get_mode() argument
8918 if (!modes) in get_mode()
8922 if (modes[i].mode != mode || in get_mode()
8923 !modes[i].num_channels || !modes[i].channels) in get_mode()
8925 if ((!is_6ghz && !is_6ghz_freq(modes[i].channels[0].freq)) || in get_mode()
8926 (is_6ghz && is_6ghz_freq(modes[i].channels[0].freq))) in get_mode()
8927 return &modes[i]; in get_mode()
8934 struct hostapd_hw_modes * get_mode_with_freq(struct hostapd_hw_modes *modes, in get_mode_with_freq() argument
8940 for (j = 0; j < modes[i].num_channels; j++) { in get_mode_with_freq()
8941 if (freq == modes[i].channels[j].freq) in get_mode_with_freq()
8942 return &modes[i]; in get_mode_with_freq()
9264 if (wpa_s->hw.modes[i].mode == HOSTAPD_MODE_IEEE80211A) { in wpas_is_6ghz_supported()
9265 chnl = wpa_s->hw.modes[i].channels; in wpas_is_6ghz_supported()
9266 for (j = 0; j < wpa_s->hw.modes[i].num_channels; j++) { in wpas_is_6ghz_supported()