• Home
  • Raw
  • Download

Lines Matching refs:conf

65 		    (hapd->conf->wps_independent ||  in wps_for_each()
66 data->calling_hapd->conf->wps_independent)) in wps_for_each()
101 struct hostapd_ssid *ssid = &hapd->conf->ssid; in hostapd_wps_new_psk_cb()
191 if (hapd->conf->wps_pin_requests) { in hostapd_wps_pin_needed_cb()
194 f = fopen(hapd->conf->wps_pin_requests, "a"); in hostapd_wps_pin_needed_cb()
316 struct hostapd_bss_config *bss = hapd->conf; in hapd_wps_reconfig_in_memory()
422 if ((hapd->conf->wps_cred_processing == 1 || in hapd_wps_cred_cb()
423 hapd->conf->wps_cred_processing == 2) && cred->cred_attr) { in hapd_wps_cred_cb()
425 } else if (hapd->conf->wps_cred_processing == 1 || in hapd_wps_cred_cb()
426 hapd->conf->wps_cred_processing == 2) { in hapd_wps_cred_cb()
436 if (hapd->conf->wps_cred_processing == 1) in hapd_wps_cred_cb()
634 if (hapd->conf->ap_setup_locked) in hostapd_wps_reenable_ap_pin()
650 if (!data->enrollee || hapd->conf->ap_pin == NULL || hapd->wps == NULL) in wps_pwd_auth_fail()
671 if (!hapd->conf->ap_setup_locked && in wps_pwd_auth_fail()
679 } else if (!hapd->conf->ap_setup_locked) { in wps_pwd_auth_fail()
713 if (hapd->conf->ap_pin == NULL || hapd->wps == NULL) in wps_ap_pin_success()
889 if (hapd->wps && !hapd->conf->wps_independent && in get_uuid_cb()
942 if (hapd->conf->wps_vendor_ext[i] == NULL) in hostapd_wps_set_vendor_ext()
946 wpabuf_dup(hapd->conf->wps_vendor_ext[i]); in hostapd_wps_set_vendor_ext()
974 struct hostapd_bss_config *conf) in hostapd_init_wps() argument
979 if (conf->wps_state == 0) { in hostapd_init_wps()
994 wps->wps_state = hapd->conf->wps_state; in hostapd_init_wps()
995 wps->ap_setup_locked = hapd->conf->ap_setup_locked; in hostapd_init_wps()
996 if (is_nil_uuid(hapd->conf->uuid)) { in hostapd_init_wps()
999 if (uuid && !conf->wps_independent) { in hostapd_init_wps()
1009 os_memcpy(wps->uuid, hapd->conf->uuid, UUID_LEN); in hostapd_init_wps()
1013 wps->ssid_len = hapd->conf->ssid.ssid_len; in hostapd_init_wps()
1014 os_memcpy(wps->ssid, hapd->conf->ssid.ssid, wps->ssid_len); in hostapd_init_wps()
1017 wps->dev.device_name = hapd->conf->device_name ? in hostapd_init_wps()
1018 os_strdup(hapd->conf->device_name) : NULL; in hostapd_init_wps()
1019 wps->dev.manufacturer = hapd->conf->manufacturer ? in hostapd_init_wps()
1020 os_strdup(hapd->conf->manufacturer) : NULL; in hostapd_init_wps()
1021 wps->dev.model_name = hapd->conf->model_name ? in hostapd_init_wps()
1022 os_strdup(hapd->conf->model_name) : NULL; in hostapd_init_wps()
1023 wps->dev.model_number = hapd->conf->model_number ? in hostapd_init_wps()
1024 os_strdup(hapd->conf->model_number) : NULL; in hostapd_init_wps()
1025 wps->dev.serial_number = hapd->conf->serial_number ? in hostapd_init_wps()
1026 os_strdup(hapd->conf->serial_number) : NULL; in hostapd_init_wps()
1028 wps_config_methods_str2bin(hapd->conf->config_methods); in hostapd_init_wps()
1043 os_memcpy(wps->dev.pri_dev_type, hapd->conf->device_type, in hostapd_init_wps()
1049 wps->dev.os_version = WPA_GET_BE32(hapd->conf->os_version); in hostapd_init_wps()
1051 if (conf->wps_rf_bands) { in hostapd_init_wps()
1052 wps->dev.rf_bands = conf->wps_rf_bands; in hostapd_init_wps()
1061 if (conf->wpa & WPA_PROTO_RSN) { in hostapd_init_wps()
1062 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) in hostapd_init_wps()
1064 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X) in hostapd_init_wps()
1067 if (conf->rsn_pairwise & (WPA_CIPHER_CCMP | WPA_CIPHER_GCMP)) { in hostapd_init_wps()
1071 if (conf->rsn_pairwise & WPA_CIPHER_TKIP) { in hostapd_init_wps()
1077 if (conf->wpa & WPA_PROTO_WPA) { in hostapd_init_wps()
1078 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) in hostapd_init_wps()
1080 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X) in hostapd_init_wps()
1083 if (conf->wpa_pairwise & WPA_CIPHER_CCMP) { in hostapd_init_wps()
1087 if (conf->wpa_pairwise & WPA_CIPHER_TKIP) { in hostapd_init_wps()
1093 if (conf->ssid.security_policy == SECURITY_PLAINTEXT) { in hostapd_init_wps()
1098 if (conf->ssid.wpa_psk_file) { in hostapd_init_wps()
1100 } else if (conf->ssid.wpa_passphrase) { in hostapd_init_wps()
1101 wps->network_key = (u8 *) os_strdup(conf->ssid.wpa_passphrase); in hostapd_init_wps()
1102 wps->network_key_len = os_strlen(conf->ssid.wpa_passphrase); in hostapd_init_wps()
1103 } else if (conf->ssid.wpa_psk) { in hostapd_init_wps()
1108 conf->ssid.wpa_psk->psk, PMK_LEN); in hostapd_init_wps()
1110 } else if (conf->ssid.wep.keys_set && conf->ssid.wep.key[0]) { in hostapd_init_wps()
1111 wps->network_key = os_malloc(conf->ssid.wep.len[0]); in hostapd_init_wps()
1114 os_memcpy(wps->network_key, conf->ssid.wep.key[0], in hostapd_init_wps()
1115 conf->ssid.wep.len[0]); in hostapd_init_wps()
1116 wps->network_key_len = conf->ssid.wep.len[0]; in hostapd_init_wps()
1119 if (conf->ssid.wpa_psk) { in hostapd_init_wps()
1120 os_memcpy(wps->psk, conf->ssid.wpa_psk->psk, PMK_LEN); in hostapd_init_wps()
1126 if (conf->wps_state == WPS_STATE_NOT_CONFIGURED) { in hostapd_init_wps()
1134 wps->ap_settings = conf->ap_settings; in hostapd_init_wps()
1135 wps->ap_settings_len = conf->ap_settings_len; in hostapd_init_wps()
1143 cfg.skip_cred_build = conf->skip_cred_build; in hostapd_init_wps()
1144 cfg.extra_cred = conf->extra_cred; in hostapd_init_wps()
1145 cfg.extra_cred_len = conf->extra_cred_len; in hostapd_init_wps()
1146 cfg.disable_auto_conf = (hapd->conf->wps_cred_processing == 1) && in hostapd_init_wps()
1147 conf->skip_cred_build; in hostapd_init_wps()
1148 if (conf->ssid.security_policy == SECURITY_STATIC_WEP) in hostapd_init_wps()
1156 cfg.force_per_enrollee_psk = conf->force_per_enrollee_psk; in hostapd_init_wps()
1165 wps->friendly_name = hapd->conf->friendly_name; in hostapd_init_wps()
1166 wps->manufacturer_url = hapd->conf->manufacturer_url; in hostapd_init_wps()
1167 wps->model_description = hapd->conf->model_description; in hostapd_init_wps()
1168 wps->model_url = hapd->conf->model_url; in hostapd_init_wps()
1169 wps->upc = hapd->conf->upc; in hostapd_init_wps()
1246 hapd->wps->friendly_name = hapd->conf->friendly_name; in hostapd_update_wps()
1247 hapd->wps->manufacturer_url = hapd->conf->manufacturer_url; in hostapd_update_wps()
1248 hapd->wps->model_description = hapd->conf->model_description; in hostapd_update_wps()
1249 hapd->wps->model_url = hapd->conf->model_url; in hostapd_update_wps()
1250 hapd->wps->upc = hapd->conf->upc; in hostapd_update_wps()
1255 if (hapd->conf->wps_state) in hostapd_update_wps()
1398 (elems.ssid_len != hapd->conf->ssid.ssid_len || in hostapd_wps_probe_req_rx()
1399 os_memcmp(elems.ssid, hapd->conf->ssid.ssid, elems.ssid_len) != in hostapd_wps_probe_req_rx()
1513 if (!hapd->conf->upnp_iface) in hostapd_wps_upnp_init()
1520 if (hapd->conf->ap_pin) in hostapd_wps_upnp_init()
1521 ctx->ap_pin = os_strdup(hapd->conf->ap_pin); in hostapd_wps_upnp_init()
1524 hapd->conf->upnp_iface); in hostapd_wps_upnp_init()
1564 hapd->conf->ap_setup_locked = 0; in hostapd_wps_ap_pin_enable()
1579 os_free(hapd->conf->ap_pin); in wps_ap_pin_disable()
1580 hapd->conf->ap_pin = NULL; in wps_ap_pin_disable()
1609 os_free(hapd->conf->ap_pin); in wps_ap_pin_set()
1610 hapd->conf->ap_pin = os_strdup(data->pin_txt); in wps_ap_pin_set()
1629 return hapd->conf->ap_pin; in hostapd_wps_ap_pin_random()
1635 return hapd->conf->ap_pin; in hostapd_wps_ap_pin_get()
1829 if (hapd->conf->wps_nfc_dh_pubkey == NULL) { in hostapd_wps_nfc_hs_cr()
1831 if (wps_nfc_gen_dh(&hapd->conf->wps_nfc_dh_pubkey, in hostapd_wps_nfc_hs_cr()
1832 &hapd->conf->wps_nfc_dh_privkey) < 0) in hostapd_wps_nfc_hs_cr()
1837 wpabuf_dup(hapd->conf->wps_nfc_dh_pubkey); in hostapd_wps_nfc_hs_cr()
1839 wpabuf_dup(hapd->conf->wps_nfc_dh_privkey); in hostapd_wps_nfc_hs_cr()
1847 hapd->conf->wps_nfc_dh_pubkey, in hostapd_wps_nfc_hs_cr()
1959 if (hapd->conf->wps_nfc_pw_from_config) { in hostapd_wps_nfc_token_gen()
1961 hapd->conf->wps_nfc_dev_pw_id, in hostapd_wps_nfc_token_gen()
1962 hapd->conf->wps_nfc_dh_pubkey, in hostapd_wps_nfc_token_gen()
1963 hapd->conf->wps_nfc_dev_pw); in hostapd_wps_nfc_token_gen()
1966 return wps_nfc_token_gen(ndef, &hapd->conf->wps_nfc_dev_pw_id, in hostapd_wps_nfc_token_gen()
1967 &hapd->conf->wps_nfc_dh_pubkey, in hostapd_wps_nfc_token_gen()
1968 &hapd->conf->wps_nfc_dh_privkey, in hostapd_wps_nfc_token_gen()
1969 &hapd->conf->wps_nfc_dev_pw); in hostapd_wps_nfc_token_gen()
1981 if (!hapd->conf->wps_nfc_dh_pubkey || in hostapd_wps_nfc_token_enable()
1982 !hapd->conf->wps_nfc_dh_privkey || in hostapd_wps_nfc_token_enable()
1983 !hapd->conf->wps_nfc_dev_pw || in hostapd_wps_nfc_token_enable()
1984 !hapd->conf->wps_nfc_dev_pw_id) in hostapd_wps_nfc_token_enable()
1990 hapd->conf->wps_nfc_dev_pw_id, hapd->conf->iface, wps); in hostapd_wps_nfc_token_enable()
1991 wps->ap_nfc_dev_pw_id = hapd->conf->wps_nfc_dev_pw_id; in hostapd_wps_nfc_token_enable()
1992 wps->ap_nfc_dh_pubkey = wpabuf_dup(hapd->conf->wps_nfc_dh_pubkey); in hostapd_wps_nfc_token_enable()
1993 wps->ap_nfc_dh_privkey = wpabuf_dup(hapd->conf->wps_nfc_dh_privkey); in hostapd_wps_nfc_token_enable()
1994 pw = hapd->conf->wps_nfc_dev_pw; in hostapd_wps_nfc_token_enable()
2018 hapd->conf->iface); in hostapd_wps_nfc_token_disable()