Lines Matching refs:conf
63 xhdr->version = hapd->conf->eapol_version;
166 if (hapd->conf->eapol_key_index_workaround) {
197 hdr->version = hapd->conf->eapol_version;
234 hapd->conf->default_wep_key_len);
237 if (hapd->conf->individual_wep_key_len > 0) {
239 ikey = os_malloc(hapd->conf->individual_wep_key_len);
241 random_get_bytes(ikey, hapd->conf->individual_wep_key_len))
250 ikey, hapd->conf->individual_wep_key_len);
253 hapd->conf->individual_wep_key_len);
257 if (hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_WEP,
259 hapd->conf->individual_wep_key_len)) {
274 switch (hapd->iface->conf->hw_mode) {
358 suite = wpa_cipher_to_suite(((hapd->conf->wpa & 0x2) ||
359 hapd->conf->osen) ?
361 hapd->conf->wpa_group);
382 if (hapd->conf->ieee80211w != NO_MGMT_FRAME_PROTECTION) {
384 hapd->conf->group_mgmt_cipher);
459 if ((hapd->conf->wpa & 2) &&
460 !hapd->conf->disable_pmksa_caching &&
475 if (hapd->conf->wpa && wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt) &&
483 hapd->conf->mobility_domain))) {
489 if ((hapd->conf->wpa || hapd->conf->osen) && sta->wpa_sm &&
508 hapd->conf->own_ip_addr.af == AF_INET &&
510 (u8 *) &hapd->conf->own_ip_addr.u.v4, 4)) {
518 hapd->conf->own_ip_addr.af == AF_INET6 &&
520 (u8 *) &hapd->conf->own_ip_addr.u.v6, 16)) {
528 hapd->conf->nas_identifier &&
530 (u8 *) hapd->conf->nas_identifier,
531 os_strlen(hapd->conf->nas_identifier))) {
538 os_memcpy(&buf[len], hapd->conf->ssid.ssid,
539 hapd->conf->ssid.ssid_len);
540 len += hapd->conf->ssid.ssid_len;
558 if (hapd->conf->interworking &&
559 !is_zero_ether_addr(hapd->conf->hessid)) {
561 MAC2STR(hapd->conf->hessid));
625 if (add_common_radius_attr(hapd, hapd->conf->radius_auth_req_attr, sta,
632 if (!hostapd_config_get_radius_attr(hapd->conf->radius_auth_req_attr,
660 if (hapd->conf->radius_request_cui) {
680 if (hapd->conf->hs20) {
906 if (!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen &&
907 !hapd->conf->wps_state)
964 if (!hapd->conf->ieee802_1x && !hapd->conf->osen &&
984 if (!hapd->conf->ieee802_1x && hapd->conf->wps_state) {
1091 if (hapd->conf->wps_state &&
1092 ((hapd->conf->wpa && (sta->flags & WLAN_STA_MAYBE_WPS)) ||
1103 if (!force_1x && !hapd->conf->ieee802_1x && !hapd->conf->osen) {
1141 if (!hapd->conf->ieee802_1x && hapd->conf->wps_state &&
1371 if (!hapd->conf->radius->acct_server || hapd->radius == NULL ||
1516 ap_sta_session_timeout(hapd, sta, hapd->conf->hs20_deauth_req_timeout);
1719 if (hapd->conf->acct_interim_interval == 0 &&
1738 if (hapd->conf->ssid.dynamic_vlan != DYNAMIC_VLAN_DISABLED) {
1748 !hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) {
1761 if (hapd->conf->ssid.dynamic_vlan == DYNAMIC_VLAN_REQUIRED &&
1880 if (hapd->conf->default_wep_key_len < 1)
1884 eapol->default_wep_key = os_malloc(hapd->conf->default_wep_key_len);
1887 hapd->conf->default_wep_key_len)) {
1896 hapd->conf->default_wep_key_len);
1920 hapd->conf->individual_wep_key_len > 0 ? 1 : 0;
1938 if (hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_WEP,
1942 hapd->conf->default_wep_key_len)) {
1953 if (hapd->conf->wep_rekeying_period > 0) {
1954 eloop_register_timeout(hapd->conf->wep_rekeying_period, 0,
2172 struct eapol_auth_config conf;
2177 os_memset(&conf, 0, sizeof(conf));
2178 conf.ctx = hapd;
2179 conf.eap_reauth_period = hapd->conf->eap_reauth_period;
2180 conf.wpa = hapd->conf->wpa;
2181 conf.individual_wep_key_len = hapd->conf->individual_wep_key_len;
2182 conf.eap_server = hapd->conf->eap_server;
2183 conf.ssl_ctx = hapd->ssl_ctx;
2184 conf.msg_ctx = hapd->msg_ctx;
2185 conf.eap_sim_db_priv = hapd->eap_sim_db_priv;
2186 conf.eap_req_id_text = hapd->conf->eap_req_id_text;
2187 conf.eap_req_id_text_len = hapd->conf->eap_req_id_text_len;
2188 conf.erp_send_reauth_start = hapd->conf->erp_send_reauth_start;
2189 conf.erp_domain = hapd->conf->erp_domain;
2190 conf.erp = hapd->conf->eap_server_erp;
2191 conf.tls_session_lifetime = hapd->conf->tls_session_lifetime;
2192 conf.pac_opaque_encr_key = hapd->conf->pac_opaque_encr_key;
2193 conf.eap_fast_a_id = hapd->conf->eap_fast_a_id;
2194 conf.eap_fast_a_id_len = hapd->conf->eap_fast_a_id_len;
2195 conf.eap_fast_a_id_info = hapd->conf->eap_fast_a_id_info;
2196 conf.eap_fast_prov = hapd->conf->eap_fast_prov;
2197 conf.pac_key_lifetime = hapd->conf->pac_key_lifetime;
2198 conf.pac_key_refresh_time = hapd->conf->pac_key_refresh_time;
2199 conf.eap_sim_aka_result_ind = hapd->conf->eap_sim_aka_result_ind;
2200 conf.tnc = hapd->conf->tnc;
2201 conf.wps = hapd->wps;
2202 conf.fragment_size = hapd->conf->fragment_size;
2203 conf.pwd_group = hapd->conf->pwd_group;
2204 conf.pbc_in_m1 = hapd->conf->pbc_in_m1;
2205 if (hapd->conf->server_id) {
2206 conf.server_id = (const u8 *) hapd->conf->server_id;
2207 conf.server_id_len = os_strlen(hapd->conf->server_id);
2209 conf.server_id = (const u8 *) "hostapd";
2210 conf.server_id_len = 7;
2229 hapd->eapol_auth = eapol_auth_init(&conf, &cb);
2233 if ((hapd->conf->ieee802_1x || hapd->conf->wpa) &&
2234 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1))
2243 if (hapd->conf->default_wep_key_len) {
2245 hostapd_drv_set_key(hapd->conf->iface, hapd,
2276 (hapd->conf->ieee802_1x || hapd->conf->wpa))
2277 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0);
2663 os_strdup(hapd->conf->subscr_remediation_url);