Lines Matching refs:mode
86 enum hostapd_hw_mode mode = HOSTAPD_MODE_IEEE80211ANY; in hostapd_get_hw_features() local
113 mode = iface->current_mode->mode; in hostapd_get_hw_features()
127 if (orig_mode_valid && feature->mode == mode && in hostapd_get_hw_features()
161 feature->mode, in hostapd_get_hw_features()
180 struct hostapd_hw_modes *mode) in hostapd_prepare_rates() argument
190 else switch (mode->mode) { in hostapd_prepare_rates()
220 os_calloc(mode->num_rates, sizeof(struct hostapd_rate_data)); in hostapd_prepare_rates()
227 for (i = 0; i < mode->num_rates; i++) { in hostapd_prepare_rates()
232 mode->rates[i])) in hostapd_prepare_rates()
236 rate->rate = mode->rates[i]; in hostapd_prepare_rates()
269 p_chan = hw_get_channel_freq(iface->current_mode->mode, pri_freq, NULL, in ieee80211n_allowed_ht40_channel_pair()
273 s_chan = hw_get_channel_freq(iface->current_mode->mode, sec_freq, NULL, in ieee80211n_allowed_ht40_channel_pair()
277 return allowed_ht40_channel_pair(iface->current_mode->mode, in ieee80211n_allowed_ht40_channel_pair()
308 pri_chan = hw_get_channel_freq(iface->current_mode->mode, pri_freq, in ieee80211n_check_40mhz_5g()
311 sec_chan = hw_get_channel_freq(iface->current_mode->mode, sec_freq, in ieee80211n_check_40mhz_5g()
360 if (iface->current_mode->mode == HOSTAPD_MODE_IEEE80211A) in ieee80211n_check_scan()
385 iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G && in ieee80211n_check_scan()
421 struct hostapd_hw_modes *mode; in ieee80211n_scan_channels_2g4() local
441 mode = iface->current_mode; in ieee80211n_scan_channels_2g4()
442 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in ieee80211n_scan_channels_2g4()
447 for (i = 0; i < mode->num_channels; i++) { in ieee80211n_scan_channels_2g4()
448 struct hostapd_channel_data *chan = &mode->channels[i]; in ieee80211n_scan_channels_2g4()
466 struct hostapd_hw_modes *mode; in ieee80211n_scan_channels_5g() local
482 mode = iface->current_mode; in ieee80211n_scan_channels_5g()
483 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in ieee80211n_scan_channels_5g()
488 for (i = 0; i < mode->num_channels; i++) { in ieee80211n_scan_channels_5g()
489 struct hostapd_channel_data *chan = &mode->channels[i]; in ieee80211n_scan_channels_5g()
508 if (iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G) in ap_ht40_scan_retry()
565 if (iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G) in ieee80211n_check_40mhz()
693 struct hostapd_hw_modes *mode = iface->current_mode; in ieee80211ac_supported_vht_capab() local
694 u32 hw = mode->vht_capab; in ieee80211ac_supported_vht_capab()
700 if (mode->mode == HOSTAPD_MODE_IEEE80211G && in ieee80211ac_supported_vht_capab()
702 mode->vht_capab == 0 && iface->hw_features) { in ieee80211ac_supported_vht_capab()
706 if (iface->hw_features[i].mode == in ieee80211ac_supported_vht_capab()
708 mode = &iface->hw_features[i]; in ieee80211ac_supported_vht_capab()
709 hw = mode->vht_capab; in ieee80211ac_supported_vht_capab()
740 if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211B && in hostapd_check_ht_capab()
741 iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G && in hostapd_check_ht_capab()
772 struct hostapd_hw_modes *mode = iface->hw_features; in hostapd_check_edmg_capab() local
783 if (mode->edmg.channels && ieee802_edmg_is_allowed(mode->edmg, edmg)) in hostapd_check_edmg_capab()
788 mode->edmg.channels, mode->edmg.bw_config); in hostapd_check_edmg_capab()
854 chan = hw_get_channel_freq(iface->current_mode->mode, frequency, NULL, in hostapd_is_usable_chan()
891 pri_chan = hw_get_channel_freq(iface->current_mode->mode, in hostapd_is_usable_edmg()
1023 pri_chan = hw_get_channel_freq(iface->current_mode->mode, in hostapd_is_usable_chans()
1080 struct hostapd_hw_modes *mode) in skip_mode() argument
1084 if (iface->freq > 0 && !hw_mode_get_channel(mode, iface->freq, &chan)) in skip_mode()
1088 !mode->is_6ghz) in skip_mode()
1112 struct hostapd_hw_modes *mode; in hostapd_determine_mode() local
1114 mode = &iface->hw_features[i]; in hostapd_determine_mode()
1115 if (mode->mode == target_mode) { in hostapd_determine_mode()
1116 if (skip_mode(iface, mode)) in hostapd_determine_mode()
1119 iface->current_mode = mode; in hostapd_determine_mode()
1120 iface->conf->hw_mode = mode->mode; in hostapd_determine_mode()
1192 iface->current_mode->mode, in hostapd_notify_bad_chans()
1193 hostapd_hw_mode_txt(iface->current_mode->mode)); in hostapd_notify_bad_chans()
1292 struct hostapd_hw_modes *mode = &iface->hw_features[i]; in hostapd_select_hw_mode() local
1294 if (mode->mode == iface->conf->hw_mode) { in hostapd_select_hw_mode()
1295 if (skip_mode(iface, mode)) in hostapd_select_hw_mode()
1298 iface->current_mode = mode; in hostapd_select_hw_mode()
1346 const char * hostapd_hw_mode_txt(int mode) in hostapd_hw_mode_txt() argument
1348 switch (mode) { in hostapd_hw_mode_txt()
1372 struct hostapd_hw_modes *mode; in hostapd_hw_get_channel() local
1375 channel = hw_get_chan(hapd->iface->current_mode->mode, freq, in hostapd_hw_get_channel()
1387 mode = &hapd->iface->hw_features[i]; in hostapd_hw_get_channel()
1388 channel = hw_get_chan(mode->mode, freq, in hostapd_hw_get_channel()
1399 struct hostapd_hw_modes *mode) in hostapd_hw_skip_mode() argument
1404 return mode != iface->current_mode; in hostapd_hw_skip_mode()
1405 if (mode->mode != HOSTAPD_MODE_IEEE80211B) in hostapd_hw_skip_mode()
1408 if (iface->hw_features[i].mode == HOSTAPD_MODE_IEEE80211G) in hostapd_hw_skip_mode()