Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:conf

244 		if (wpa_s->conf->ap_scan == 1)
255 if (wpa_s->conf->ap_scan == 1)
268 for (ssid = wpa_s->conf->ssid, next = ssid ? ssid->next : NULL; ssid;
354 wpa_config_remove_network(wpa_s->conf, ssid->id);
369 if ((wpa_s->conf->wps_cred_processing == 1 ||
370 wpa_s->conf->wps_cred_processing == 2) && cred->cred_attr) {
388 if (wpa_s->conf->wps_cred_processing == 1)
453 ssid = wpa_config_add_network(wpa_s->conf);
550 ssid->priority = wpa_s->conf->wps_priority;
557 if (wpa_s->conf->update_config &&
558 wpa_config_write(wpa_s->confname, wpa_s->conf)) {
565 wpa_config_update_prio_list(wpa_s->conf);
657 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
668 if (wpa_s->conf->update_config &&
669 wpa_config_write(wpa_s->confname, wpa_s->conf)) {
934 ssid = wpa_s->conf->ssid;
954 wpa_config_remove_network(wpa_s->conf, id);
989 ssid = wpa_config_add_network(wpa_s->conf);
1001 wpa_config_remove_network(wpa_s->conf, ssid->id);
1067 ssid = wpa_s->conf->ssid;
1459 if (is_nil_uuid(wpa_s->conf->uuid)) {
1475 os_memcpy(wps->uuid, wpa_s->conf->uuid, WPS_UUID_LEN);
1490 if (wpa_s->conf->wps_vendor_ext_m1) {
1492 wpabuf_dup(wpa_s->conf->wps_vendor_ext_m1);
1517 wps->dev.device_name = wpa_s->conf->device_name;
1518 wps->dev.manufacturer = wpa_s->conf->manufacturer;
1519 wps->dev.model_name = wpa_s->conf->model_name;
1520 wps->dev.model_number = wpa_s->conf->model_number;
1521 wps->dev.serial_number = wpa_s->conf->serial_number;
1523 wps_config_methods_str2bin(wpa_s->conf->config_methods);
1533 os_memcpy(wps->dev.pri_dev_type, wpa_s->conf->device_type,
1536 wps->dev.num_sec_dev_types = wpa_s->conf->num_sec_device_types;
1537 os_memcpy(wps->dev.sec_dev_type, wpa_s->conf->sec_device_type,
1542 wps->dev.os_version = WPA_GET_BE32(wpa_s->conf->os_version);
1859 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
2015 ssid = wpa_config_get_network(wpa_s->conf, id);
2150 if (wpa_s->conf->changed_parameters & CFG_CHANGED_CONFIG_METHODS) {
2152 wpa_s->conf->config_methods);
2165 if (wpa_s->conf->changed_parameters & CFG_CHANGED_DEVICE_TYPE)
2166 os_memcpy(wps->dev.pri_dev_type, wpa_s->conf->device_type,
2169 if (wpa_s->conf->changed_parameters & CFG_CHANGED_SEC_DEVICE_TYPE) {
2170 wps->dev.num_sec_dev_types = wpa_s->conf->num_sec_device_types;
2171 os_memcpy(wps->dev.sec_dev_type, wpa_s->conf->sec_device_type,
2175 if (wpa_s->conf->changed_parameters & CFG_CHANGED_VENDOR_EXTENSION)
2178 if (wpa_s->conf->changed_parameters & CFG_CHANGED_OS_VERSION)
2179 wps->dev.os_version = WPA_GET_BE32(wpa_s->conf->os_version);
2181 if (wpa_s->conf->changed_parameters & CFG_CHANGED_UUID)
2184 if (wpa_s->conf->changed_parameters &
2187 wps->dev.device_name = wpa_s->conf->device_name;
2188 wps->dev.manufacturer = wpa_s->conf->manufacturer;
2189 wps->dev.model_name = wpa_s->conf->model_name;
2190 wps->dev.model_number = wpa_s->conf->model_number;
2191 wps->dev.serial_number = wpa_s->conf->serial_number;
2238 ssid = wpa_config_get_network(wpa_s->conf, id);
2254 if (wpa_s->conf->wps_nfc_pw_from_config) {
2256 wpa_s->conf->wps_nfc_dev_pw_id,
2257 wpa_s->conf->wps_nfc_dh_pubkey,
2258 wpa_s->conf->wps_nfc_dev_pw);
2261 return wps_nfc_token_gen(ndef, &wpa_s->conf->wps_nfc_dev_pw_id,
2262 &wpa_s->conf->wps_nfc_dh_pubkey,
2263 &wpa_s->conf->wps_nfc_dh_privkey,
2264 &wpa_s->conf->wps_nfc_dev_pw);
2278 dev_pw = wpa_s->conf->wps_nfc_dev_pw;
2279 dev_pw_id = wpa_s->conf->wps_nfc_dev_pw_id;
2282 if (wpa_s->conf->wps_nfc_dh_pubkey == NULL ||
2283 wpa_s->conf->wps_nfc_dh_privkey == NULL) {
2298 wps->dh_privkey = wpabuf_dup(wpa_s->conf->wps_nfc_dh_privkey);
2299 wps->dh_pubkey = wpabuf_dup(wpa_s->conf->wps_nfc_dh_pubkey);
2458 if (wpa_s->conf->wps_nfc_dh_pubkey == NULL &&
2459 wps_nfc_gen_dh(&wpa_s->conf->wps_nfc_dh_pubkey,
2460 &wpa_s->conf->wps_nfc_dh_privkey) < 0)
2464 wpa_s->conf->wps_nfc_dh_pubkey);
2503 if (wpa_s->conf->wps_nfc_dh_pubkey == NULL) {
2504 if (wps_nfc_gen_dh(&wpa_s->conf->wps_nfc_dh_pubkey,
2505 &wpa_s->conf->wps_nfc_dh_privkey) < 0)
2511 wps->ap_nfc_dh_pubkey = wpabuf_dup(wpa_s->conf->wps_nfc_dh_pubkey);
2512 wps->ap_nfc_dh_privkey = wpabuf_dup(wpa_s->conf->wps_nfc_dh_privkey);
2519 use_addr, wpa_s->conf->wps_nfc_dh_pubkey);