Lines Matching refs:conf

184 	if (iface->conf->basic_rates)  in hostapd_prepare_rates()
185 basic_rates = iface->conf->basic_rates; in hostapd_prepare_rates()
226 if (iface->conf->supported_rates && in hostapd_prepare_rates()
227 !hostapd_rate_found(iface->conf->supported_rates, in hostapd_prepare_rates()
243 (!iface->conf->ieee80211n || !iface->conf->require_ht)) { in hostapd_prepare_rates()
260 sec_freq = pri_freq + iface->conf->secondary_channel * 20; in ieee80211n_allowed_ht40_channel_pair()
280 if (iface->conf->secondary_channel > 0) { in ieee80211n_switch_pri_sec()
281 iface->conf->channel += 4; in ieee80211n_switch_pri_sec()
283 iface->conf->secondary_channel = -1; 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()
300 sec_freq = pri_freq + iface->conf->secondary_channel * 20; in ieee80211n_check_40mhz_5g()
314 if (iface->conf->no_pri_sec_switch) { in ieee80211n_check_40mhz_5g()
331 pri_chan = iface->conf->channel; in ieee80211n_check_40mhz_2g4()
332 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_check_40mhz_2g4()
362 iface->secondary_ch = iface->conf->secondary_channel; in ieee80211n_check_scan()
366 iface->conf->channel, in ieee80211n_check_scan()
367 iface->conf->channel + in ieee80211n_check_scan()
368 iface->conf->secondary_channel * 4); in ieee80211n_check_scan()
369 iface->conf->secondary_channel = 0; in ieee80211n_check_scan()
380 if (iface->conf->secondary_channel && in ieee80211n_check_scan()
382 iface->conf->ieee80211ax) { in ieee80211n_check_scan()
390 iface->conf->secondary_channel = 0; in ieee80211n_check_scan()
395 if (iface->conf->secondary_channel) in ieee80211n_check_scan()
398 iface->conf->secondary_channel = 0; in ieee80211n_check_scan()
399 hostapd_set_oper_centr_freq_seg0_idx(iface->conf, 0); in ieee80211n_check_scan()
400 hostapd_set_oper_centr_freq_seg1_idx(iface->conf, 0); in ieee80211n_check_scan()
401 hostapd_set_oper_chwidth(iface->conf, CONF_OPER_CHWIDTH_USE_HT); in ieee80211n_check_scan()
423 if (iface->conf->secondary_channel > 0) in ieee80211n_scan_channels_2g4()
468 if (iface->conf->secondary_channel > 0) { in ieee80211n_scan_channels_5g()
511 if (iface->bss[0]->conf->mld_ap) in ap_ht40_scan_retry()
536 iface->conf->secondary_channel = 0; in ap_ht40_scan_retry()
537 iface->conf->ht_capab &= ~HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET; in ap_ht40_scan_retry()
554 if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch) in ieee80211n_check_40mhz()
568 if (iface->bss[0]->conf->mld_ap) in ieee80211n_check_40mhz()
600 u16 conf = iface->conf->ht_capab; in ieee80211n_supported_ht_capab() local
602 if ((conf & HT_CAP_INFO_LDPC_CODING_CAP) && in ieee80211n_supported_ht_capab()
613 if (!iface->conf->acs && (conf & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET) && in ieee80211n_supported_ht_capab()
620 if ((conf & HT_CAP_INFO_GREEN_FIELD) && in ieee80211n_supported_ht_capab()
627 if ((conf & HT_CAP_INFO_SHORT_GI20MHZ) && in ieee80211n_supported_ht_capab()
634 if ((conf & HT_CAP_INFO_SHORT_GI40MHZ) && in ieee80211n_supported_ht_capab()
641 if ((conf & HT_CAP_INFO_TX_STBC) && !(hw & HT_CAP_INFO_TX_STBC)) { in ieee80211n_supported_ht_capab()
647 if ((conf & HT_CAP_INFO_RX_STBC_MASK) > in ieee80211n_supported_ht_capab()
654 if ((conf & HT_CAP_INFO_DELAYED_BA) && in ieee80211n_supported_ht_capab()
661 if ((conf & HT_CAP_INFO_MAX_AMSDU_SIZE) && in ieee80211n_supported_ht_capab()
668 if ((conf & HT_CAP_INFO_DSSS_CCK40MHZ) && in ieee80211n_supported_ht_capab()
675 if ((conf & HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT) && in ieee80211n_supported_ht_capab()
691 u32 conf = iface->conf->vht_capab; in ieee80211ac_supported_vht_capab() local
694 hw, conf); in ieee80211ac_supported_vht_capab()
697 iface->conf->bss[0]->vendor_vht && in ieee80211ac_supported_vht_capab()
714 return ieee80211ac_cap_check(hw, conf); in ieee80211ac_supported_vht_capab()
733 if (!iface->conf->ieee80211n) in hostapd_check_ht_capab()
738 (iface->conf->ht_capab & HT_CAP_INFO_DSSS_CCK40MHZ)) { in hostapd_check_ht_capab()
741 iface->conf->ht_capab &= ~HT_CAP_INFO_DSSS_CCK40MHZ; in hostapd_check_ht_capab()
747 if (iface->conf->ieee80211ax && in hostapd_check_ht_capab()
752 if (iface->conf->ieee80211ac && in hostapd_check_ht_capab()
771 if (!iface->conf->enable_edmg) in hostapd_check_edmg_capab()
774 hostapd_encode_edmg_chan(iface->conf->enable_edmg, in hostapd_check_edmg_capab()
775 iface->conf->edmg_channel, in hostapd_check_edmg_capab()
776 iface->conf->channel, in hostapd_check_edmg_capab()
803 if (iface->conf->he_6ghz_max_mpdu > in hostapd_check_he_6ghz_capab()
811 if (iface->conf->he_6ghz_max_ampdu_len_exp > in hostapd_check_he_6ghz_capab()
819 if (iface->conf->he_6ghz_rx_ant_pat && in hostapd_check_he_6ghz_capab()
826 if (iface->conf->he_6ghz_tx_ant_pat && in hostapd_check_he_6ghz_capab()
882 if (!iface->conf->enable_edmg) in hostapd_is_usable_edmg()
893 hostapd_encode_edmg_chan(iface->conf->enable_edmg, in hostapd_is_usable_edmg()
894 iface->conf->edmg_channel, in hostapd_is_usable_edmg()
950 struct hostapd_config *conf = iface->conf; in hostapd_is_usable_punct_bitmap() local
954 if (!conf->punct_bitmap) in hostapd_is_usable_punct_bitmap()
957 if (!conf->ieee80211be) { in hostapd_is_usable_punct_bitmap()
973 if (conf->op_class == 137) { in hostapd_is_usable_punct_bitmap()
975 start_chan = conf->eht_oper_centr_freq_seg0_idx - 30; in hostapd_is_usable_punct_bitmap()
977 switch (conf->eht_oper_chwidth) { in hostapd_is_usable_punct_bitmap()
984 start_chan = conf->eht_oper_centr_freq_seg0_idx - 6; in hostapd_is_usable_punct_bitmap()
988 start_chan = conf->eht_oper_centr_freq_seg0_idx - 14; in hostapd_is_usable_punct_bitmap()
995 if (!is_punct_bitmap_valid(bw, (conf->channel - start_chan) / 4, in hostapd_is_usable_punct_bitmap()
996 conf->punct_bitmap)) { in hostapd_is_usable_punct_bitmap()
1040 if (!iface->conf->secondary_channel) in hostapd_is_usable_chans()
1044 iface->conf->secondary_channel * 20, 0); in hostapd_is_usable_chans()
1046 if (iface->conf->secondary_channel == 1 && in hostapd_is_usable_chans()
1049 if (iface->conf->secondary_channel == -1 && in hostapd_is_usable_chans()
1053 if (!iface->conf->ht40_plus_minus_allowed) in hostapd_is_usable_chans()
1060 iface->conf->secondary_channel = 1; in hostapd_is_usable_chans()
1067 iface->conf->secondary_channel = -1; in hostapd_is_usable_chans()
1083 if (is_6ghz_op_class(iface->conf->op_class) && iface->freq == 0 && in skip_mode()
1097 iface->conf->hw_mode != HOSTAPD_MODE_IEEE80211ANY) in hostapd_determine_mode()
1116 iface->conf->hw_mode = mode->mode; in hostapd_determine_mode()
1176 iface->conf->channel, in hostapd_notify_bad_chans()
1177 iface->freq, iface->conf->secondary_channel, in hostapd_notify_bad_chans()
1198 iface->freq, iface->conf->channel); in hostapd_acs_completed()
1239 if (!iface || !iface->conf) in hostapd_csa_update_hwmode()
1243 iface->conf->hw_mode = HOSTAPD_MODE_IEEE80211ANY; in hostapd_csa_update_hwmode()
1264 if ((iface->conf->hw_mode == HOSTAPD_MODE_IEEE80211G || in hostapd_select_hw_mode()
1265 iface->conf->ieee80211n || iface->conf->ieee80211ac || in hostapd_select_hw_mode()
1266 iface->conf->ieee80211ax || iface->conf->ieee80211be) && in hostapd_select_hw_mode()
1267 iface->conf->channel == 14) { in hostapd_select_hw_mode()
1269 iface->conf->hw_mode = HOSTAPD_MODE_IEEE80211B; in hostapd_select_hw_mode()
1270 iface->conf->ieee80211n = 0; in hostapd_select_hw_mode()
1271 iface->conf->ieee80211ac = 0; in hostapd_select_hw_mode()
1272 iface->conf->ieee80211ax = 0; in hostapd_select_hw_mode()
1273 iface->conf->ieee80211be = 0; in hostapd_select_hw_mode()
1280 if (mode->mode == iface->conf->hw_mode) { in hostapd_select_hw_mode()
1295 iface->conf->hw_mode == HOSTAPD_MODE_IEEE80211ANY) { in hostapd_select_hw_mode()
1305 (int) iface->conf->hw_mode); in hostapd_select_hw_mode()