Lines Matching refs:modes
412 if (wpa_s->hw.modes == NULL)
416 os_free(wpa_s->hw.modes[i].channels);
417 os_free(wpa_s->hw.modes[i].rates);
420 os_free(wpa_s->hw.modes);
421 wpa_s->hw.modes = NULL;
1978 for (i = 0; wpa_s->hw.modes && i < wpa_s->hw.num_modes; i++) {
1979 if (wpa_s->hw.modes[i].mode == hw_mode) {
1980 mode = &wpa_s->hw.modes[i];
2049 for (i = 0; wpa_s->hw.modes && i < wpa_s->hw.num_modes; i++) {
2050 if (wpa_s->hw.modes[i].mode == hw_mode) {
2051 mode = &wpa_s->hw.modes[i];
4490 *hw_mode = wpa_s->hw.modes[0].mode;
4498 static int wpas_fst_get_hw_modes(void *ctx, struct hostapd_hw_modes **modes)
4502 *modes = wpa_s->hw.modes;
4636 if (wpa_s->hw.modes[i].num_channels != 0) {
4637 if (wpa_s->hw.modes[i].mode ==
4639 wpa_s->hw.modes[i].mode ==
4642 else if (wpa_s->hw.modes[i].mode ==
4645 else if (wpa_s->hw.modes[i].mode ==
4648 else if (wpa_s->hw.modes[i].mode ==
5288 wpa_s->hw.modes = wpa_drv_get_hw_feature_data(wpa_s,
5292 if (wpa_s->hw.modes) {
5296 if (wpa_s->hw.modes[i].vht_capab) {
5301 if (wpa_s->hw.modes[i].ht_capab &
5304 else if (wpa_s->hw.modes[i].ht_capab &&
6903 struct hostapd_hw_modes * get_mode(struct hostapd_hw_modes *modes,
6909 if (modes[i].mode == mode)
6910 return &modes[i];