Lines Matching refs:conf
74 struct hostapd_config *conf; in hostapd_config_defaults() local
78 conf = (struct hostapd_config *)os_zalloc(sizeof(*conf)); in hostapd_config_defaults()
80 if (conf == NULL || bss == NULL) { in hostapd_config_defaults()
83 os_free(conf); in hostapd_config_defaults()
90 conf->num_bss = 1; in hostapd_config_defaults()
91 conf->bss = bss; in hostapd_config_defaults()
93 conf->beacon_int = 100; in hostapd_config_defaults()
94 conf->rts_threshold = -1; /* use driver default: 2347 */ in hostapd_config_defaults()
95 conf->fragm_threshold = -1; /* user driver default: 2346 */ in hostapd_config_defaults()
96 conf->send_probe_response = 1; in hostapd_config_defaults()
98 conf->ht_capab = HT_CAP_INFO_SMPS_DISABLED; in hostapd_config_defaults()
100 conf->ap_table_max_size = 255; in hostapd_config_defaults()
101 conf->ap_table_expiration_time = 60; in hostapd_config_defaults()
103 return conf; in hostapd_config_defaults()
148 int hostapd_setup_sae_pt(struct hostapd_bss_config *conf) in hostapd_setup_sae_pt() argument
151 struct hostapd_ssid *ssid = &conf->ssid; in hostapd_setup_sae_pt()
152 if ((conf->sae_pwe == SAE_PWE_HUNT_AND_PECK || in hostapd_setup_sae_pt()
153 !wpa_key_mgmt_sae(conf->wpa_key_mgmt))) in hostapd_setup_sae_pt()
159 ssid->pt = sae_derive_pt(conf->sae_groups, ssid->ssid, in hostapd_setup_sae_pt()
174 int hostapd_setup_wpa_psk(struct hostapd_bss_config *conf) in hostapd_setup_wpa_psk() argument
176 struct hostapd_ssid *ssid = &conf->ssid; in hostapd_setup_wpa_psk()
178 if (hostapd_setup_sae_pt(conf) < 0) in hostapd_setup_wpa_psk()
261 const u8 * hostapd_get_psk(const struct hostapd_bss_config *conf, in hostapd_get_psk() argument
267 for (psk = conf->ssid.wpa_psk; psk != NULL; psk = psk->next) { in hostapd_get_psk()
291 void hostapd_config_free_bss(struct hostapd_bss_config *conf) in hostapd_config_free_bss() argument
293 hostapd_config_clear_wpa_psk(&conf->ssid.wpa_psk); in hostapd_config_free_bss()
295 sae_deinit_pt(conf->ssid.pt); in hostapd_config_free_bss()
297 os_free(conf); in hostapd_config_free_bss()