Lines Matching refs:conf
252 struct hostapd_bss_config *conf) in hostapd_config_read_eap_user() argument
261 os_free(conf->eap_user_sqlite); in hostapd_config_read_eap_user()
262 conf->eap_user_sqlite = os_strdup(fname + 7); in hostapd_config_read_eap_user()
571 hostapd_config_free_eap_users(conf->eap_user); in hostapd_config_read_eap_user()
572 conf->eap_user = new_user; in hostapd_config_read_eap_user()
818 static int hostapd_parse_chanlist(struct hostapd_config *conf, char *val) in hostapd_parse_chanlist() argument
829 if (freq_range_list_parse(&conf->acs_ch_list, val)) in hostapd_parse_chanlist()
875 static int hostapd_config_bss(struct hostapd_config *conf, const char *ifname) in hostapd_config_bss() argument
882 all = os_realloc_array(conf->bss, conf->num_bss + 1, in hostapd_config_bss()
889 conf->bss = all; in hostapd_config_bss()
902 conf->bss[conf->num_bss++] = bss; in hostapd_config_bss()
903 conf->last_bss = bss; in hostapd_config_bss()
1025 int hostapd_config_read_rxkh_file(struct hostapd_bss_config *conf, in hostapd_config_read_rxkh_file() argument
1068 if (add_r0kh(conf, pos) < 0) { in hostapd_config_read_rxkh_file()
1075 if (add_r1kh(conf, pos) < 0) { in hostapd_config_read_rxkh_file()
1098 static int hostapd_config_ht_capab(struct hostapd_config *conf, in hostapd_config_ht_capab() argument
1102 conf->ht_capab |= HT_CAP_INFO_LDPC_CODING_CAP; in hostapd_config_ht_capab()
1104 conf->ht_capab |= HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET; in hostapd_config_ht_capab()
1105 conf->secondary_channel = -1; in hostapd_config_ht_capab()
1108 conf->ht_capab |= HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET; in hostapd_config_ht_capab()
1109 conf->secondary_channel = 1; in hostapd_config_ht_capab()
1112 conf->ht_capab |= HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET; in hostapd_config_ht_capab()
1113 conf->ht40_plus_minus_allowed = 1; in hostapd_config_ht_capab()
1116 conf->secondary_channel = 0; in hostapd_config_ht_capab()
1118 conf->ht_capab |= HT_CAP_INFO_GREEN_FIELD; in hostapd_config_ht_capab()
1120 conf->ht_capab |= HT_CAP_INFO_SHORT_GI20MHZ; in hostapd_config_ht_capab()
1122 conf->ht_capab |= HT_CAP_INFO_SHORT_GI40MHZ; in hostapd_config_ht_capab()
1124 conf->ht_capab |= HT_CAP_INFO_TX_STBC; in hostapd_config_ht_capab()
1126 conf->ht_capab &= ~HT_CAP_INFO_RX_STBC_MASK; in hostapd_config_ht_capab()
1127 conf->ht_capab |= HT_CAP_INFO_RX_STBC_1; in hostapd_config_ht_capab()
1130 conf->ht_capab &= ~HT_CAP_INFO_RX_STBC_MASK; in hostapd_config_ht_capab()
1131 conf->ht_capab |= HT_CAP_INFO_RX_STBC_12; in hostapd_config_ht_capab()
1134 conf->ht_capab &= ~HT_CAP_INFO_RX_STBC_MASK; in hostapd_config_ht_capab()
1135 conf->ht_capab |= HT_CAP_INFO_RX_STBC_123; in hostapd_config_ht_capab()
1138 conf->ht_capab |= HT_CAP_INFO_DELAYED_BA; in hostapd_config_ht_capab()
1140 conf->ht_capab |= HT_CAP_INFO_MAX_AMSDU_SIZE; in hostapd_config_ht_capab()
1142 conf->ht_capab |= HT_CAP_INFO_DSSS_CCK40MHZ; in hostapd_config_ht_capab()
1144 conf->ht_capab |= HT_CAP_INFO_40MHZ_INTOLERANT; in hostapd_config_ht_capab()
1146 conf->ht_capab |= HT_CAP_INFO_LSIG_TXOP_PROTECT_SUPPORT; in hostapd_config_ht_capab()
1153 static int hostapd_config_vht_capab(struct hostapd_config *conf, in hostapd_config_vht_capab() argument
1157 conf->vht_capab |= VHT_CAP_MAX_MPDU_LENGTH_7991; in hostapd_config_vht_capab()
1159 conf->vht_capab |= VHT_CAP_MAX_MPDU_LENGTH_11454; in hostapd_config_vht_capab()
1161 conf->vht_capab |= VHT_CAP_SUPP_CHAN_WIDTH_160MHZ; in hostapd_config_vht_capab()
1163 conf->vht_capab |= VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ; in hostapd_config_vht_capab()
1165 conf->vht_capab |= VHT_CAP_RXLDPC; in hostapd_config_vht_capab()
1167 conf->vht_capab |= VHT_CAP_SHORT_GI_80; in hostapd_config_vht_capab()
1169 conf->vht_capab |= VHT_CAP_SHORT_GI_160; in hostapd_config_vht_capab()
1171 conf->vht_capab |= VHT_CAP_TXSTBC; in hostapd_config_vht_capab()
1173 conf->vht_capab |= VHT_CAP_RXSTBC_1; in hostapd_config_vht_capab()
1175 conf->vht_capab |= VHT_CAP_RXSTBC_2; in hostapd_config_vht_capab()
1177 conf->vht_capab |= VHT_CAP_RXSTBC_3; in hostapd_config_vht_capab()
1179 conf->vht_capab |= VHT_CAP_RXSTBC_4; in hostapd_config_vht_capab()
1181 conf->vht_capab |= VHT_CAP_SU_BEAMFORMER_CAPABLE; in hostapd_config_vht_capab()
1183 conf->vht_capab |= VHT_CAP_SU_BEAMFORMEE_CAPABLE; in hostapd_config_vht_capab()
1185 (conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE)) in hostapd_config_vht_capab()
1186 conf->vht_capab |= (1 << VHT_CAP_BEAMFORMEE_STS_OFFSET); in hostapd_config_vht_capab()
1188 (conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE)) in hostapd_config_vht_capab()
1189 conf->vht_capab |= (2 << VHT_CAP_BEAMFORMEE_STS_OFFSET); in hostapd_config_vht_capab()
1191 (conf->vht_capab & VHT_CAP_SU_BEAMFORMEE_CAPABLE)) in hostapd_config_vht_capab()
1192 conf->vht_capab |= (3 << VHT_CAP_BEAMFORMEE_STS_OFFSET); in hostapd_config_vht_capab()
1194 (conf->vht_capab & VHT_CAP_SU_BEAMFORMER_CAPABLE)) in hostapd_config_vht_capab()
1195 conf->vht_capab |= (1 << VHT_CAP_SOUNDING_DIMENSION_OFFSET); in hostapd_config_vht_capab()
1197 (conf->vht_capab & VHT_CAP_SU_BEAMFORMER_CAPABLE)) in hostapd_config_vht_capab()
1198 conf->vht_capab |= (2 << VHT_CAP_SOUNDING_DIMENSION_OFFSET); in hostapd_config_vht_capab()
1200 (conf->vht_capab & VHT_CAP_SU_BEAMFORMER_CAPABLE)) in hostapd_config_vht_capab()
1201 conf->vht_capab |= (3 << VHT_CAP_SOUNDING_DIMENSION_OFFSET); in hostapd_config_vht_capab()
1203 conf->vht_capab |= VHT_CAP_MU_BEAMFORMER_CAPABLE; in hostapd_config_vht_capab()
1205 conf->vht_capab |= VHT_CAP_VHT_TXOP_PS; in hostapd_config_vht_capab()
1207 conf->vht_capab |= VHT_CAP_HTC_VHT; in hostapd_config_vht_capab()
1209 conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MAX; in hostapd_config_vht_capab()
1211 conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_6; in hostapd_config_vht_capab()
1213 conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_5; in hostapd_config_vht_capab()
1215 conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_4; in hostapd_config_vht_capab()
1217 conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_3; in hostapd_config_vht_capab()
1219 conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_2; in hostapd_config_vht_capab()
1221 conf->vht_capab |= VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_1; in hostapd_config_vht_capab()
1223 (conf->vht_capab & VHT_CAP_HTC_VHT)) in hostapd_config_vht_capab()
1224 conf->vht_capab |= VHT_CAP_VHT_LINK_ADAPTATION_VHT_UNSOL_MFB; in hostapd_config_vht_capab()
1226 (conf->vht_capab & VHT_CAP_HTC_VHT)) in hostapd_config_vht_capab()
1227 conf->vht_capab |= VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB; in hostapd_config_vht_capab()
1229 conf->vht_capab |= VHT_CAP_RX_ANTENNA_PATTERN; in hostapd_config_vht_capab()
1231 conf->vht_capab |= VHT_CAP_TX_ANTENNA_PATTERN; in hostapd_config_vht_capab()
2068 static int hostapd_config_parse_acs_chan_bias(struct hostapd_config *conf, in hostapd_config_parse_acs_chan_bias() argument
2097 os_free(conf->acs_chan_bias); in hostapd_config_parse_acs_chan_bias()
2098 conf->acs_chan_bias = bias; in hostapd_config_parse_acs_chan_bias()
2099 conf->num_acs_chan_bias = num; in hostapd_config_parse_acs_chan_bias()
2379 struct dpp_controller_conf *conf; in hostapd_dpp_controller_parse() local
2382 conf = os_zalloc(sizeof(*conf)); in hostapd_dpp_controller_parse()
2383 if (!conf) in hostapd_dpp_controller_parse()
2386 if (!val || hostapd_parse_ip_addr(val, &conf->ipaddr)) in hostapd_dpp_controller_parse()
2391 hexstr2bin(val, conf->pkhash, SHA256_MAC_LEN) < 0) in hostapd_dpp_controller_parse()
2394 conf->next = bss->dpp_controller; in hostapd_dpp_controller_parse()
2395 bss->dpp_controller = conf; in hostapd_dpp_controller_parse()
2399 os_free(conf); in hostapd_dpp_controller_parse()
2464 static int hostapd_config_fill(struct hostapd_config *conf, in hostapd_config_fill() argument
2469 os_strlcpy(conf->bss[0]->iface, pos, in hostapd_config_fill()
2470 sizeof(conf->bss[0]->iface)); in hostapd_config_fill()
2495 conf->driver = driver; in hostapd_config_fill()
2497 os_free(conf->driver_params); in hostapd_config_fill()
2498 conf->driver_params = os_strdup(pos); in hostapd_config_fill()
2609 os_memcpy(conf->country, pos, 2); in hostapd_config_fill()
2611 conf->country[2] = strtol(pos, NULL, 16); in hostapd_config_fill()
2613 conf->ieee80211d = atoi(pos); in hostapd_config_fill()
2615 conf->ieee80211h = atoi(pos); in hostapd_config_fill()
3394 conf->hw_mode = HOSTAPD_MODE_IEEE80211A; in hostapd_config_fill()
3396 conf->hw_mode = HOSTAPD_MODE_IEEE80211B; in hostapd_config_fill()
3398 conf->hw_mode = HOSTAPD_MODE_IEEE80211G; in hostapd_config_fill()
3400 conf->hw_mode = HOSTAPD_MODE_IEEE80211AD; in hostapd_config_fill()
3402 conf->hw_mode = HOSTAPD_MODE_IEEE80211ANY; in hostapd_config_fill()
3408 conf->hw_mode_set = true; in hostapd_config_fill()
3427 conf->acs_exclude_dfs = atoi(pos); in hostapd_config_fill()
3429 conf->op_class = atoi(pos); in hostapd_config_fill()
3437 conf->acs = 1; in hostapd_config_fill()
3438 conf->channel = 0; in hostapd_config_fill()
3441 conf->channel = atoi(pos); in hostapd_config_fill()
3442 conf->acs = conf->channel == 0; in hostapd_config_fill()
3445 conf->edmg_channel = atoi(pos); in hostapd_config_fill()
3447 conf->enable_edmg = atoi(pos); in hostapd_config_fill()
3449 if (hostapd_parse_chanlist(conf, pos)) { in hostapd_config_fill()
3455 if (freq_range_list_parse(&conf->acs_freq_list, pos)) { in hostapd_config_fill()
3460 conf->acs_freq_list_present = 1; in hostapd_config_fill()
3462 conf->acs_exclude_6ghz_non_psc = atoi(pos); in hostapd_config_fill()
3464 conf->enable_background_radar = atoi(pos); in hostapd_config_fill()
3474 conf->min_tx_power = val; in hostapd_config_fill()
3488 conf->beacon_int = val; in hostapd_config_fill()
3497 conf->acs_num_scans = val; in hostapd_config_fill()
3499 if (hostapd_config_parse_acs_chan_bias(conf, pos)) { in hostapd_config_fill()
3535 conf->rts_threshold = atoi(pos); in hostapd_config_fill()
3536 if (conf->rts_threshold < -1 || conf->rts_threshold > 65535) { in hostapd_config_fill()
3539 line, conf->rts_threshold); in hostapd_config_fill()
3543 conf->fragm_threshold = atoi(pos); in hostapd_config_fill()
3544 if (conf->fragm_threshold == -1) { in hostapd_config_fill()
3546 } else if (conf->fragm_threshold < 256 || in hostapd_config_fill()
3547 conf->fragm_threshold > 2346) { in hostapd_config_fill()
3550 line, conf->fragm_threshold); in hostapd_config_fill()
3562 if (hostapd_parse_intlist(&conf->supported_rates, pos)) { in hostapd_config_fill()
3568 if (hostapd_parse_intlist(&conf->basic_rates, pos)) { in hostapd_config_fill()
3584 conf->rate_type = BEACON_RATE_HT; in hostapd_config_fill()
3585 conf->beacon_rate = val; in hostapd_config_fill()
3594 conf->rate_type = BEACON_RATE_VHT; in hostapd_config_fill()
3595 conf->beacon_rate = val; in hostapd_config_fill()
3604 conf->rate_type = BEACON_RATE_HE; in hostapd_config_fill()
3605 conf->beacon_rate = val; in hostapd_config_fill()
3614 conf->rate_type = BEACON_RATE_LEGACY; in hostapd_config_fill()
3615 conf->beacon_rate = val; in hostapd_config_fill()
3619 conf->preamble = SHORT_PREAMBLE; in hostapd_config_fill()
3621 conf->preamble = LONG_PREAMBLE; in hostapd_config_fill()
3673 conf->ap_table_max_size = atoi(pos); in hostapd_config_fill()
3675 conf->ap_table_expiration_time = atoi(pos); in hostapd_config_fill()
3677 if (hostapd_config_tx_queue(conf->tx_queue, buf, pos)) { in hostapd_config_fill()
3689 if (hostapd_config_wmm_ac(conf->wmm_ac_params, buf, pos)) { in hostapd_config_fill()
3695 if (hostapd_config_bss(conf, pos)) { in hostapd_config_fill()
3707 conf->use_driver_iface_addr = atoi(pos); in hostapd_config_fill()
3751 conf->ieee80211n = atoi(pos); in hostapd_config_fill()
3753 if (hostapd_config_ht_capab(conf, pos) < 0) { in hostapd_config_fill()
3759 conf->require_ht = atoi(pos); in hostapd_config_fill()
3761 conf->ht_vht_twt_responder = atoi(pos); in hostapd_config_fill()
3763 conf->obss_interval = atoi(pos); in hostapd_config_fill()
3766 conf->ieee80211ac = atoi(pos); in hostapd_config_fill()
3768 if (hostapd_config_vht_capab(conf, pos) < 0) { in hostapd_config_fill()
3774 conf->require_vht = atoi(pos); in hostapd_config_fill()
3776 conf->vht_oper_chwidth = atoi(pos); in hostapd_config_fill()
3778 conf->vht_oper_centr_freq_seg0_idx = atoi(pos); in hostapd_config_fill()
3780 conf->vht_oper_centr_freq_seg1_idx = atoi(pos); in hostapd_config_fill()
3788 conf->ieee80211ax = atoi(pos); in hostapd_config_fill()
3790 conf->require_he = atoi(pos); in hostapd_config_fill()
3792 conf->he_phy_capab.he_su_beamformer = atoi(pos); in hostapd_config_fill()
3794 conf->he_phy_capab.he_su_beamformee = atoi(pos); in hostapd_config_fill()
3796 conf->he_phy_capab.he_mu_beamformer = atoi(pos); in hostapd_config_fill()
3798 conf->he_op.he_bss_color = atoi(pos) & 0x3f; in hostapd_config_fill()
3799 conf->he_op.he_bss_color_disabled = 0; in hostapd_config_fill()
3801 conf->he_op.he_bss_color_partial = atoi(pos); in hostapd_config_fill()
3803 conf->he_op.he_default_pe_duration = atoi(pos); in hostapd_config_fill()
3805 conf->he_op.he_twt_required = atoi(pos); in hostapd_config_fill()
3807 conf->he_op.he_twt_responder = atoi(pos); in hostapd_config_fill()
3809 conf->he_op.he_rts_threshold = atoi(pos); in hostapd_config_fill()
3811 conf->he_op.he_er_su_disable = atoi(pos); in hostapd_config_fill()
3813 conf->he_op.he_basic_mcs_nss_set = atoi(pos); in hostapd_config_fill()
3815 conf->he_mu_edca.he_qos_info |= in hostapd_config_fill()
3818 conf->he_mu_edca.he_qos_info |= in hostapd_config_fill()
3821 conf->he_mu_edca.he_qos_info |= in hostapd_config_fill()
3824 conf->he_mu_edca.he_qos_info |= in hostapd_config_fill()
3827 conf->he_mu_edca.he_mu_ac_be_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3830 conf->he_mu_edca.he_mu_ac_be_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3833 conf->he_mu_edca.he_mu_ac_be_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3836 conf->he_mu_edca.he_mu_ac_be_param[HE_MU_AC_PARAM_ECW_IDX] |= in hostapd_config_fill()
3839 conf->he_mu_edca.he_mu_ac_be_param[HE_MU_AC_PARAM_ECW_IDX] |= in hostapd_config_fill()
3842 conf->he_mu_edca.he_mu_ac_be_param[HE_MU_AC_PARAM_TIMER_IDX] = in hostapd_config_fill()
3845 conf->he_mu_edca.he_mu_ac_bk_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3848 conf->he_mu_edca.he_mu_ac_bk_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3851 conf->he_mu_edca.he_mu_ac_bk_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3854 conf->he_mu_edca.he_mu_ac_bk_param[HE_MU_AC_PARAM_ECW_IDX] |= in hostapd_config_fill()
3857 conf->he_mu_edca.he_mu_ac_bk_param[HE_MU_AC_PARAM_ECW_IDX] |= in hostapd_config_fill()
3860 conf->he_mu_edca.he_mu_ac_bk_param[HE_MU_AC_PARAM_TIMER_IDX] = in hostapd_config_fill()
3863 conf->he_mu_edca.he_mu_ac_vi_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3866 conf->he_mu_edca.he_mu_ac_vi_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3869 conf->he_mu_edca.he_mu_ac_vi_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3872 conf->he_mu_edca.he_mu_ac_vi_param[HE_MU_AC_PARAM_ECW_IDX] |= in hostapd_config_fill()
3875 conf->he_mu_edca.he_mu_ac_vi_param[HE_MU_AC_PARAM_ECW_IDX] |= in hostapd_config_fill()
3878 conf->he_mu_edca.he_mu_ac_vi_param[HE_MU_AC_PARAM_TIMER_IDX] = in hostapd_config_fill()
3881 conf->he_mu_edca.he_mu_ac_vo_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3884 conf->he_mu_edca.he_mu_ac_vo_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3887 conf->he_mu_edca.he_mu_ac_vo_param[HE_MU_AC_PARAM_ACI_IDX] |= in hostapd_config_fill()
3890 conf->he_mu_edca.he_mu_ac_vo_param[HE_MU_AC_PARAM_ECW_IDX] |= in hostapd_config_fill()
3893 conf->he_mu_edca.he_mu_ac_vo_param[HE_MU_AC_PARAM_ECW_IDX] |= in hostapd_config_fill()
3896 conf->he_mu_edca.he_mu_ac_vo_param[HE_MU_AC_PARAM_TIMER_IDX] = in hostapd_config_fill()
3899 conf->spr.sr_control = atoi(pos) & 0x1f; in hostapd_config_fill()
3901 conf->spr.non_srg_obss_pd_max_offset = atoi(pos); in hostapd_config_fill()
3903 conf->spr.srg_obss_pd_min_offset = atoi(pos); in hostapd_config_fill()
3905 conf->spr.srg_obss_pd_max_offset = atoi(pos); in hostapd_config_fill()
3908 conf->spr.srg_bss_color_bitmap, pos)) { in hostapd_config_fill()
3916 conf->spr.srg_partial_bssid_bitmap, pos)) { in hostapd_config_fill()
3923 conf->he_6ghz_reg_pwr_type = atoi(pos); in hostapd_config_fill()
3924 if (conf->he_6ghz_reg_pwr_type > HE_REG_INFO_6GHZ_AP_TYPE_MAX) { in hostapd_config_fill()
3931 conf->reg_def_cli_eirp_psd = atoi(pos); in hostapd_config_fill()
3933 conf->reg_sub_cli_eirp_psd = atoi(pos); in hostapd_config_fill()
3935 conf->reg_def_cli_eirp = atoi(pos); in hostapd_config_fill()
3937 conf->he_oper_chwidth = atoi(pos); in hostapd_config_fill()
3939 conf->he_oper_centr_freq_seg0_idx = atoi(pos); in hostapd_config_fill()
3941 conf->he_oper_centr_freq_seg1_idx = atoi(pos); in hostapd_config_fill()
3943 conf->he_6ghz_max_mpdu = atoi(pos); in hostapd_config_fill()
3945 conf->he_6ghz_max_ampdu_len_exp = atoi(pos); in hostapd_config_fill()
3947 conf->he_6ghz_rx_ant_pat = atoi(pos); in hostapd_config_fill()
3949 conf->he_6ghz_tx_ant_pat = atoi(pos); in hostapd_config_fill()
3968 conf->mbssid = mbssid; in hostapd_config_fill()
4489 conf->_val = strtod(pos, &end); \ in hostapd_config_fill()
4490 if (*end || conf->_val < 0.0 || \ in hostapd_config_fill()
4491 conf->_val > 1.0) { \ in hostapd_config_fill()
4503 conf->ecsa_ie_only = atoi(pos); in hostapd_config_fill()
4609 conf->delay_eapol_tx = atoi(pos); in hostapd_config_fill()
4670 conf->local_pwr_constraint = val; in hostapd_config_fill()
4672 conf->spectrum_mgmt_required = atoi(pos); in hostapd_config_fill()
4680 if (!len || len >= sizeof(conf->fst_cfg.group_id)) { in hostapd_config_fill()
4687 if (conf->fst_cfg.group_id[0]) { in hostapd_config_fill()
4694 os_strlcpy(conf->fst_cfg.group_id, pos, in hostapd_config_fill()
4695 sizeof(conf->fst_cfg.group_id)); in hostapd_config_fill()
4714 conf->fst_cfg.priority = (u8) val; in hostapd_config_fill()
4733 conf->fst_cfg.llt = (u32) val; in hostapd_config_fill()
4736 conf->track_sta_max_num = atoi(pos); in hostapd_config_fill()
4738 conf->track_sta_max_age = atoi(pos); in hostapd_config_fill()
4746 wpabuf_free(conf->lci); in hostapd_config_fill()
4747 conf->lci = wpabuf_parse_bin(pos); in hostapd_config_fill()
4748 if (conf->lci && wpabuf_len(conf->lci) == 0) { in hostapd_config_fill()
4749 wpabuf_free(conf->lci); in hostapd_config_fill()
4750 conf->lci = NULL; in hostapd_config_fill()
4753 wpabuf_free(conf->civic); in hostapd_config_fill()
4754 conf->civic = wpabuf_parse_bin(pos); in hostapd_config_fill()
4755 if (conf->civic && wpabuf_len(conf->civic) == 0) { in hostapd_config_fill()
4756 wpabuf_free(conf->civic); in hostapd_config_fill()
4757 conf->civic = NULL; in hostapd_config_fill()
4776 conf->stationary_ap = atoi(pos); in hostapd_config_fill()
4944 conf->rssi_reject_assoc_rssi = atoi(pos); in hostapd_config_fill()
4946 conf->rssi_reject_assoc_timeout = atoi(pos); in hostapd_config_fill()
4948 conf->rssi_ignore_probe_request = atoi(pos); in hostapd_config_fill()
4962 conf->airtime_mode = val; in hostapd_config_fill()
4964 conf->airtime_update_interval = atoi(pos); in hostapd_config_fill()
5133 conf->ieee80211be = atoi(pos); in hostapd_config_fill()
5135 conf->eht_oper_chwidth = atoi(pos); in hostapd_config_fill()
5137 conf->eht_oper_centr_freq_seg0_idx = atoi(pos); in hostapd_config_fill()
5139 conf->eht_phy_capab.su_beamformer = atoi(pos); in hostapd_config_fill()
5141 conf->eht_phy_capab.su_beamformee = atoi(pos); in hostapd_config_fill()
5143 conf->eht_phy_capab.mu_beamformer = atoi(pos); in hostapd_config_fill()
5145 conf->eht_default_pe_duration = atoi(pos); in hostapd_config_fill()
5147 if (get_u16(pos, line, &conf->punct_bitmap)) in hostapd_config_fill()
5158 conf->punct_acs_threshold = val; in hostapd_config_fill()
5168 conf->eht_bw320_offset = atoi(pos); in hostapd_config_fill()
5195 struct hostapd_config *conf; in hostapd_config_read() local
5209 conf = hostapd_config_defaults(); in hostapd_config_read()
5210 if (conf == NULL) { in hostapd_config_read()
5216 conf->driver = wpa_drivers[0]; in hostapd_config_read()
5217 if (conf->driver == NULL) { in hostapd_config_read()
5219 hostapd_config_free(conf); in hostapd_config_read()
5224 conf->last_bss = conf->bss[0]; in hostapd_config_read()
5229 bss = conf->last_bss; in hostapd_config_read()
5254 errors += hostapd_config_fill(conf, bss, buf, pos, line); in hostapd_config_read()
5259 for (i = 0; i < conf->num_bss; i++) in hostapd_config_read()
5260 hostapd_set_security_params(conf->bss[i], 1); in hostapd_config_read()
5262 if (hostapd_config_check(conf, 1)) in hostapd_config_read()
5269 hostapd_config_free(conf); in hostapd_config_read()
5270 conf = NULL; in hostapd_config_read()
5274 return conf; in hostapd_config_read()
5278 int hostapd_set_iface(struct hostapd_config *conf, in hostapd_set_iface() argument
5285 errors = hostapd_config_fill(conf, bss, field, value, 0); in hostapd_set_iface()
5292 for (i = 0; i < conf->num_bss; i++) in hostapd_set_iface()
5293 hostapd_set_security_params(conf->bss[i], 0); in hostapd_set_iface()
5295 if (hostapd_config_check(conf, 0)) { in hostapd_set_iface()