Lines Matching refs:conf

65 	xhdr->version = hapd->conf->eapol_version;  in ieee802_1x_send()
168 if (hapd->conf->eapol_key_index_workaround) { in ieee802_1x_tx_key_one()
199 hdr->version = hapd->conf->eapol_version; in ieee802_1x_tx_key_one()
236 hapd->conf->default_wep_key_len); in ieee802_1x_tx_key()
239 if (hapd->conf->individual_wep_key_len > 0) { in ieee802_1x_tx_key()
241 ikey = os_malloc(hapd->conf->individual_wep_key_len); in ieee802_1x_tx_key()
243 random_get_bytes(ikey, hapd->conf->individual_wep_key_len)) in ieee802_1x_tx_key()
252 ikey, hapd->conf->individual_wep_key_len); in ieee802_1x_tx_key()
255 hapd->conf->individual_wep_key_len); in ieee802_1x_tx_key()
259 if (hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_WEP, in ieee802_1x_tx_key()
261 hapd->conf->individual_wep_key_len)) { in ieee802_1x_tx_key()
276 switch (hapd->iface->conf->hw_mode) { in radius_mode_txt()
361 suite = wpa_cipher_to_suite(((hapd->conf->wpa & 0x2) || in add_common_radius_sta_attr_rsn()
362 hapd->conf->osen) ? in add_common_radius_sta_attr_rsn()
364 hapd->conf->wpa_group); in add_common_radius_sta_attr_rsn()
385 if (hapd->conf->ieee80211w != NO_MGMT_FRAME_PROTECTION) { in add_common_radius_sta_attr_rsn()
387 hapd->conf->group_mgmt_cipher); in add_common_radius_sta_attr_rsn()
463 if ((hapd->conf->wpa & 2) && in add_common_radius_sta_attr()
464 !hapd->conf->disable_pmksa_caching && in add_common_radius_sta_attr()
479 if (hapd->conf->wpa && wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt) && in add_common_radius_sta_attr()
487 hapd->conf->mobility_domain))) { in add_common_radius_sta_attr()
493 if ((hapd->conf->wpa || hapd->conf->osen) && sta->wpa_sm && in add_common_radius_sta_attr()
512 hapd->conf->own_ip_addr.af == AF_INET && in add_common_radius_attr()
514 (u8 *) &hapd->conf->own_ip_addr.u.v4, 4)) { in add_common_radius_attr()
522 hapd->conf->own_ip_addr.af == AF_INET6 && in add_common_radius_attr()
524 (u8 *) &hapd->conf->own_ip_addr.u.v6, 16)) { in add_common_radius_attr()
532 hapd->conf->nas_identifier && in add_common_radius_attr()
534 (u8 *) hapd->conf->nas_identifier, in add_common_radius_attr()
535 os_strlen(hapd->conf->nas_identifier))) { in add_common_radius_attr()
542 os_memcpy(&buf[len], hapd->conf->ssid.ssid, in add_common_radius_attr()
543 hapd->conf->ssid.ssid_len); in add_common_radius_attr()
544 len += hapd->conf->ssid.ssid_len; in add_common_radius_attr()
562 if (hapd->conf->interworking && in add_common_radius_attr()
563 !is_zero_ether_addr(hapd->conf->hessid)) { in add_common_radius_attr()
565 MAC2STR(hapd->conf->hessid)); in add_common_radius_attr()
629 if (add_common_radius_attr(hapd, hapd->conf->radius_auth_req_attr, sta, in ieee802_1x_encapsulate_radius()
636 if (!hostapd_config_get_radius_attr(hapd->conf->radius_auth_req_attr, in ieee802_1x_encapsulate_radius()
664 if (hapd->conf->radius_request_cui) { in ieee802_1x_encapsulate_radius()
684 if (hapd->conf->hs20) { in ieee802_1x_encapsulate_radius()
910 if (!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen && in ieee802_1x_receive()
911 !hapd->conf->wps_state) in ieee802_1x_receive()
968 if (!hapd->conf->ieee802_1x && !hapd->conf->osen && in ieee802_1x_receive()
988 if (!hapd->conf->ieee802_1x && hapd->conf->wps_state) { in ieee802_1x_receive()
1095 if (hapd->conf->wps_state && in ieee802_1x_new_station()
1096 ((hapd->conf->wpa && (sta->flags & WLAN_STA_MAYBE_WPS)) || in ieee802_1x_new_station()
1107 if (!force_1x && !hapd->conf->ieee802_1x && !hapd->conf->osen) { in ieee802_1x_new_station()
1145 if (!hapd->conf->ieee802_1x && hapd->conf->wps_state && in ieee802_1x_new_station()
1397 if (!hapd->conf->radius->acct_server || hapd->radius == NULL || in ieee802_1x_store_radius_class()
1542 ap_sta_session_timeout(hapd, sta, hapd->conf->hs20_deauth_req_timeout); in ieee802_1x_hs20_deauth_req()
1745 if (hapd->conf->acct_interim_interval == 0 && in ieee802_1x_receive_auth()
1764 if (hapd->conf->ssid.dynamic_vlan != DYNAMIC_VLAN_DISABLED) { in ieee802_1x_receive_auth()
1774 !hostapd_vlan_valid(hapd->conf->vlan, &vlan_desc)) { in ieee802_1x_receive_auth()
1787 if (hapd->conf->ssid.dynamic_vlan == DYNAMIC_VLAN_REQUIRED && in ieee802_1x_receive_auth()
1919 if (hapd->conf->default_wep_key_len < 1) in ieee802_1x_rekey_broadcast()
1923 eapol->default_wep_key = os_malloc(hapd->conf->default_wep_key_len); in ieee802_1x_rekey_broadcast()
1926 hapd->conf->default_wep_key_len)) { in ieee802_1x_rekey_broadcast()
1935 hapd->conf->default_wep_key_len); in ieee802_1x_rekey_broadcast()
1959 hapd->conf->individual_wep_key_len > 0 ? 1 : 0; in ieee802_1x_rekey()
1977 if (hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_WEP, in ieee802_1x_rekey()
1981 hapd->conf->default_wep_key_len)) { in ieee802_1x_rekey()
1992 if (hapd->conf->wep_rekeying_period > 0) { in ieee802_1x_rekey()
1993 eloop_register_timeout(hapd->conf->wep_rekeying_period, 0, in ieee802_1x_rekey()
2211 struct eapol_auth_config conf; in ieee802_1x_init() local
2216 os_memset(&conf, 0, sizeof(conf)); in ieee802_1x_init()
2217 conf.ctx = hapd; in ieee802_1x_init()
2218 conf.eap_reauth_period = hapd->conf->eap_reauth_period; in ieee802_1x_init()
2219 conf.wpa = hapd->conf->wpa; in ieee802_1x_init()
2220 conf.individual_wep_key_len = hapd->conf->individual_wep_key_len; in ieee802_1x_init()
2221 conf.eap_server = hapd->conf->eap_server; in ieee802_1x_init()
2222 conf.ssl_ctx = hapd->ssl_ctx; in ieee802_1x_init()
2223 conf.msg_ctx = hapd->msg_ctx; in ieee802_1x_init()
2224 conf.eap_sim_db_priv = hapd->eap_sim_db_priv; in ieee802_1x_init()
2225 conf.eap_req_id_text = hapd->conf->eap_req_id_text; in ieee802_1x_init()
2226 conf.eap_req_id_text_len = hapd->conf->eap_req_id_text_len; in ieee802_1x_init()
2227 conf.erp_send_reauth_start = hapd->conf->erp_send_reauth_start; in ieee802_1x_init()
2228 conf.erp_domain = hapd->conf->erp_domain; in ieee802_1x_init()
2229 conf.erp = hapd->conf->eap_server_erp; in ieee802_1x_init()
2230 conf.tls_session_lifetime = hapd->conf->tls_session_lifetime; in ieee802_1x_init()
2231 conf.pac_opaque_encr_key = hapd->conf->pac_opaque_encr_key; in ieee802_1x_init()
2232 conf.eap_fast_a_id = hapd->conf->eap_fast_a_id; in ieee802_1x_init()
2233 conf.eap_fast_a_id_len = hapd->conf->eap_fast_a_id_len; in ieee802_1x_init()
2234 conf.eap_fast_a_id_info = hapd->conf->eap_fast_a_id_info; in ieee802_1x_init()
2235 conf.eap_fast_prov = hapd->conf->eap_fast_prov; in ieee802_1x_init()
2236 conf.pac_key_lifetime = hapd->conf->pac_key_lifetime; in ieee802_1x_init()
2237 conf.pac_key_refresh_time = hapd->conf->pac_key_refresh_time; in ieee802_1x_init()
2238 conf.eap_sim_aka_result_ind = hapd->conf->eap_sim_aka_result_ind; in ieee802_1x_init()
2239 conf.tnc = hapd->conf->tnc; in ieee802_1x_init()
2240 conf.wps = hapd->wps; in ieee802_1x_init()
2241 conf.fragment_size = hapd->conf->fragment_size; in ieee802_1x_init()
2242 conf.pwd_group = hapd->conf->pwd_group; in ieee802_1x_init()
2243 conf.pbc_in_m1 = hapd->conf->pbc_in_m1; in ieee802_1x_init()
2244 if (hapd->conf->server_id) { in ieee802_1x_init()
2245 conf.server_id = (const u8 *) hapd->conf->server_id; in ieee802_1x_init()
2246 conf.server_id_len = os_strlen(hapd->conf->server_id); in ieee802_1x_init()
2248 conf.server_id = (const u8 *) "hostapd"; in ieee802_1x_init()
2249 conf.server_id_len = 7; in ieee802_1x_init()
2268 hapd->eapol_auth = eapol_auth_init(&conf, &cb); in ieee802_1x_init()
2272 if ((hapd->conf->ieee802_1x || hapd->conf->wpa) && in ieee802_1x_init()
2273 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1)) in ieee802_1x_init()
2282 if (hapd->conf->default_wep_key_len) { in ieee802_1x_init()
2284 hostapd_drv_set_key(hapd->conf->iface, hapd, in ieee802_1x_init()
2315 (hapd->conf->ieee802_1x || hapd->conf->wpa)) in ieee802_1x_deinit()
2316 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in ieee802_1x_deinit()
2712 os_strdup(hapd->conf->subscr_remediation_url); in ieee802_1x_finished()