Lines Matching refs:conf
188 if (iface->conf->basic_rates) in hostapd_prepare_rates()
189 basic_rates = iface->conf->basic_rates; in hostapd_prepare_rates()
230 if (iface->conf->supported_rates && in hostapd_prepare_rates()
231 !hostapd_rate_found(iface->conf->supported_rates, in hostapd_prepare_rates()
247 (!iface->conf->ieee80211n || !iface->conf->require_ht)) { in hostapd_prepare_rates()
264 sec_freq = pri_freq + iface->conf->secondary_channel * 20; in ieee80211n_allowed_ht40_channel_pair()
284 if (iface->conf->secondary_channel > 0) { in ieee80211n_switch_pri_sec()
285 iface->conf->channel += 4; in ieee80211n_switch_pri_sec()
287 iface->conf->secondary_channel = -1; in ieee80211n_switch_pri_sec()
289 iface->conf->channel -= 4; in ieee80211n_switch_pri_sec()
291 iface->conf->secondary_channel = 1; in ieee80211n_switch_pri_sec()
304 sec_freq = pri_freq + iface->conf->secondary_channel * 20; in ieee80211n_check_40mhz_5g()
318 if (iface->conf->no_pri_sec_switch) { in ieee80211n_check_40mhz_5g()
335 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_2g4()
336 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_check_40mhz_2g4()
366 iface->secondary_ch = iface->conf->secondary_channel; in ieee80211n_check_scan()
370 iface->conf->channel, in ieee80211n_check_scan()
371 iface->conf->channel + in ieee80211n_check_scan()
372 iface->conf->secondary_channel * 4); in ieee80211n_check_scan()
373 iface->conf->secondary_channel = 0; in ieee80211n_check_scan()
384 if (iface->conf->secondary_channel && in ieee80211n_check_scan()
386 iface->conf->ieee80211ax) { in ieee80211n_check_scan()
394 iface->conf->secondary_channel = 0; in ieee80211n_check_scan()
399 if (iface->conf->secondary_channel) in ieee80211n_check_scan()
402 iface->conf->secondary_channel = 0; in ieee80211n_check_scan()
403 hostapd_set_oper_centr_freq_seg0_idx(iface->conf, 0); in ieee80211n_check_scan()
404 hostapd_set_oper_centr_freq_seg1_idx(iface->conf, 0); in ieee80211n_check_scan()
405 hostapd_set_oper_chwidth(iface->conf, CONF_OPER_CHWIDTH_USE_HT); in ieee80211n_check_scan()
427 if (iface->conf->secondary_channel > 0) in ieee80211n_scan_channels_2g4()
472 if (iface->conf->secondary_channel > 0) { in ieee80211n_scan_channels_5g()
515 if (iface->bss[0]->conf->mld_ap) in ap_ht40_scan_retry()
540 iface->conf->secondary_channel = 0; in ap_ht40_scan_retry()
541 iface->conf->ht_capab &= ~HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET; in ap_ht40_scan_retry()
558 if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch) in ieee80211n_check_40mhz()
572 if (iface->bss[0]->conf->mld_ap) in ieee80211n_check_40mhz()
604 u16 conf = iface->conf->ht_capab; in ieee80211n_supported_ht_capab() local
606 if ((conf & HT_CAP_INFO_LDPC_CODING_CAP) && in ieee80211n_supported_ht_capab()
617 if (!iface->conf->acs && (conf & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET) && in ieee80211n_supported_ht_capab()
624 if ((conf & HT_CAP_INFO_GREEN_FIELD) && in ieee80211n_supported_ht_capab()
631 if ((conf & HT_CAP_INFO_SHORT_GI20MHZ) && in ieee80211n_supported_ht_capab()
638 if ((conf & HT_CAP_INFO_SHORT_GI40MHZ) && in ieee80211n_supported_ht_capab()
645 if ((conf & HT_CAP_INFO_TX_STBC) && !(hw & HT_CAP_INFO_TX_STBC)) { in ieee80211n_supported_ht_capab()
651 if ((conf & HT_CAP_INFO_RX_STBC_MASK) > in ieee80211n_supported_ht_capab()
658 if ((conf & HT_CAP_INFO_DELAYED_BA) && in ieee80211n_supported_ht_capab()
665 if ((conf & HT_CAP_INFO_MAX_AMSDU_SIZE) && in ieee80211n_supported_ht_capab()
672 if ((conf & HT_CAP_INFO_DSSS_CCK40MHZ) && in ieee80211n_supported_ht_capab()
679 if ((conf & HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT) && in ieee80211n_supported_ht_capab()
695 u32 conf = iface->conf->vht_capab; in ieee80211ac_supported_vht_capab() local
698 hw, conf); in ieee80211ac_supported_vht_capab()
701 iface->conf->bss[0]->vendor_vht && in ieee80211ac_supported_vht_capab()
718 return ieee80211ac_cap_check(hw, conf); in ieee80211ac_supported_vht_capab()
737 if (!iface->conf->ieee80211n) in hostapd_check_ht_capab()
742 (iface->conf->ht_capab & HT_CAP_INFO_DSSS_CCK40MHZ)) { in hostapd_check_ht_capab()
745 iface->conf->ht_capab &= ~HT_CAP_INFO_DSSS_CCK40MHZ; in hostapd_check_ht_capab()
751 if (iface->conf->ieee80211ax && in hostapd_check_ht_capab()
756 if (iface->conf->ieee80211ac && in hostapd_check_ht_capab()
775 if (!iface->conf->enable_edmg) in hostapd_check_edmg_capab()
778 hostapd_encode_edmg_chan(iface->conf->enable_edmg, in hostapd_check_edmg_capab()
779 iface->conf->edmg_channel, in hostapd_check_edmg_capab()
780 iface->conf->channel, in hostapd_check_edmg_capab()
807 if (iface->conf->he_6ghz_max_mpdu > in hostapd_check_he_6ghz_capab()
815 if (iface->conf->he_6ghz_max_ampdu_len_exp > in hostapd_check_he_6ghz_capab()
823 if (iface->conf->he_6ghz_rx_ant_pat && in hostapd_check_he_6ghz_capab()
830 if (iface->conf->he_6ghz_tx_ant_pat && in hostapd_check_he_6ghz_capab()
886 if (!iface->conf->enable_edmg) in hostapd_is_usable_edmg()
897 hostapd_encode_edmg_chan(iface->conf->enable_edmg, in hostapd_is_usable_edmg()
898 iface->conf->edmg_channel, in hostapd_is_usable_edmg()
954 struct hostapd_config *conf = iface->conf; in hostapd_is_usable_punct_bitmap() local
958 if (!conf->punct_bitmap) in hostapd_is_usable_punct_bitmap()
961 if (!conf->ieee80211be) { in hostapd_is_usable_punct_bitmap()
977 if (conf->op_class == 137) { in hostapd_is_usable_punct_bitmap()
979 start_chan = conf->eht_oper_centr_freq_seg0_idx - 30; in hostapd_is_usable_punct_bitmap()
981 switch (conf->eht_oper_chwidth) { in hostapd_is_usable_punct_bitmap()
988 start_chan = conf->eht_oper_centr_freq_seg0_idx - 6; in hostapd_is_usable_punct_bitmap()
992 start_chan = conf->eht_oper_centr_freq_seg0_idx - 14; in hostapd_is_usable_punct_bitmap()
999 if (!is_punct_bitmap_valid(bw, (conf->channel - start_chan) / 4, in hostapd_is_usable_punct_bitmap()
1000 conf->punct_bitmap)) { in hostapd_is_usable_punct_bitmap()
1044 if (!iface->conf->secondary_channel) in hostapd_is_usable_chans()
1048 iface->conf->secondary_channel * 20, 0); in hostapd_is_usable_chans()
1050 if (iface->conf->secondary_channel == 1 && in hostapd_is_usable_chans()
1053 if (iface->conf->secondary_channel == -1 && in hostapd_is_usable_chans()
1057 if (!iface->conf->ht40_plus_minus_allowed) in hostapd_is_usable_chans()
1064 iface->conf->secondary_channel = 1; in hostapd_is_usable_chans()
1071 iface->conf->secondary_channel = -1; in hostapd_is_usable_chans()
1087 if (is_6ghz_op_class(iface->conf->op_class) && iface->freq == 0 && in skip_mode()
1101 iface->conf->hw_mode != HOSTAPD_MODE_IEEE80211ANY) in hostapd_determine_mode()
1120 iface->conf->hw_mode = mode->mode; in hostapd_determine_mode()
1190 iface->conf->channel, in hostapd_notify_bad_chans()
1191 iface->freq, iface->conf->secondary_channel, in hostapd_notify_bad_chans()
1212 iface->freq, iface->conf->channel); in hostapd_acs_completed()
1253 if (!iface || !iface->conf) in hostapd_csa_update_hwmode()
1257 iface->conf->hw_mode = HOSTAPD_MODE_IEEE80211ANY; in hostapd_csa_update_hwmode()
1278 if ((iface->conf->hw_mode == HOSTAPD_MODE_IEEE80211G || in hostapd_select_hw_mode()
1279 iface->conf->ieee80211n || iface->conf->ieee80211ac || in hostapd_select_hw_mode()
1280 iface->conf->ieee80211ax || iface->conf->ieee80211be) && in hostapd_select_hw_mode()
1281 iface->conf->channel == 14) { in hostapd_select_hw_mode()
1283 iface->conf->hw_mode = HOSTAPD_MODE_IEEE80211B; in hostapd_select_hw_mode()
1284 iface->conf->ieee80211n = 0; in hostapd_select_hw_mode()
1285 iface->conf->ieee80211ac = 0; in hostapd_select_hw_mode()
1286 iface->conf->ieee80211ax = 0; in hostapd_select_hw_mode()
1287 iface->conf->ieee80211be = 0; in hostapd_select_hw_mode()
1294 if (mode->mode == iface->conf->hw_mode) { in hostapd_select_hw_mode()
1309 iface->conf->hw_mode == HOSTAPD_MODE_IEEE80211ANY) { in hostapd_select_hw_mode()
1319 (int) iface->conf->hw_mode); in hostapd_select_hw_mode()