• Home
  • Raw
  • Download

Lines Matching full:config

19 #include "config.h"
350 static int wpa_config_process_blob(struct wpa_config *config, FILE *f, in wpa_config_process_blob() argument
370 wpa_config_set_blob(config, blob); in wpa_config_process_blob()
383 struct wpa_config *config; in wpa_config_read() local
390 config = cfgp; in wpa_config_read()
392 config = wpa_config_alloc_empty(NULL, NULL); in wpa_config_read()
393 if (config == NULL) { in wpa_config_read()
394 wpa_printf(MSG_ERROR, "Failed to allocate config file " in wpa_config_read()
398 tail = head = config->ssid; in wpa_config_read()
401 cred_tail = cred_head = config->cred; in wpa_config_read()
408 wpa_printf(MSG_ERROR, "Failed to open config file '%s', " in wpa_config_read()
410 if (config != cfgp) in wpa_config_read()
411 os_free(config); in wpa_config_read()
430 if (wpa_config_add_prio_network(config, ssid)) { in wpa_config_read()
453 if (wpa_config_process_blob(config, f, &line, pos + 12) in wpa_config_read()
461 } else if (wpa_config_process_global(config, pos, line) < 0) { in wpa_config_read()
471 config->ssid = head; in wpa_config_read()
472 wpa_config_debug_dump_networks(config); in wpa_config_read()
473 config->cred = cred_head; in wpa_config_read()
477 if (config != cfgp) in wpa_config_read()
478 wpa_config_free(config); in wpa_config_read()
479 config = NULL; in wpa_config_read()
484 return config; in wpa_config_read()
1113 static void wpa_config_write_global(FILE *f, struct wpa_config *config) in wpa_config_write_global() argument
1116 if (config->ctrl_interface) in wpa_config_write_global()
1117 fprintf(f, "ctrl_interface=%s\n", config->ctrl_interface); in wpa_config_write_global()
1118 if (config->ctrl_interface_group) in wpa_config_write_global()
1120 config->ctrl_interface_group); in wpa_config_write_global()
1122 if (config->eapol_version != DEFAULT_EAPOL_VERSION) in wpa_config_write_global()
1123 fprintf(f, "eapol_version=%d\n", config->eapol_version); in wpa_config_write_global()
1124 if (config->ap_scan != DEFAULT_AP_SCAN) in wpa_config_write_global()
1125 fprintf(f, "ap_scan=%d\n", config->ap_scan); in wpa_config_write_global()
1126 if (config->disable_scan_offload) in wpa_config_write_global()
1128 config->disable_scan_offload); in wpa_config_write_global()
1129 if (config->fast_reauth != DEFAULT_FAST_REAUTH) in wpa_config_write_global()
1130 fprintf(f, "fast_reauth=%d\n", config->fast_reauth); in wpa_config_write_global()
1131 if (config->opensc_engine_path) in wpa_config_write_global()
1133 config->opensc_engine_path); in wpa_config_write_global()
1134 if (config->pkcs11_engine_path) in wpa_config_write_global()
1136 config->pkcs11_engine_path); in wpa_config_write_global()
1137 if (config->pkcs11_module_path) in wpa_config_write_global()
1139 config->pkcs11_module_path); in wpa_config_write_global()
1140 if (config->openssl_ciphers) in wpa_config_write_global()
1141 fprintf(f, "openssl_ciphers=%s\n", config->openssl_ciphers); in wpa_config_write_global()
1142 if (config->pcsc_reader) in wpa_config_write_global()
1143 fprintf(f, "pcsc_reader=%s\n", config->pcsc_reader); in wpa_config_write_global()
1144 if (config->pcsc_pin) in wpa_config_write_global()
1145 fprintf(f, "pcsc_pin=%s\n", config->pcsc_pin); in wpa_config_write_global()
1146 if (config->driver_param) in wpa_config_write_global()
1147 fprintf(f, "driver_param=%s\n", config->driver_param); in wpa_config_write_global()
1148 if (config->dot11RSNAConfigPMKLifetime) in wpa_config_write_global()
1150 config->dot11RSNAConfigPMKLifetime); in wpa_config_write_global()
1151 if (config->dot11RSNAConfigPMKReauthThreshold) in wpa_config_write_global()
1153 config->dot11RSNAConfigPMKReauthThreshold); in wpa_config_write_global()
1154 if (config->dot11RSNAConfigSATimeout) in wpa_config_write_global()
1156 config->dot11RSNAConfigSATimeout); in wpa_config_write_global()
1157 if (config->update_config) in wpa_config_write_global()
1158 fprintf(f, "update_config=%d\n", config->update_config); in wpa_config_write_global()
1160 if (!is_nil_uuid(config->uuid)) { in wpa_config_write_global()
1162 uuid_bin2str(config->uuid, buf, sizeof(buf)); in wpa_config_write_global()
1165 if (config->auto_uuid) in wpa_config_write_global()
1166 fprintf(f, "auto_uuid=%d\n", config->auto_uuid); in wpa_config_write_global()
1167 if (config->device_name) in wpa_config_write_global()
1168 fprintf(f, "device_name=%s\n", config->device_name); in wpa_config_write_global()
1169 if (config->manufacturer) in wpa_config_write_global()
1170 fprintf(f, "manufacturer=%s\n", config->manufacturer); in wpa_config_write_global()
1171 if (config->model_name) in wpa_config_write_global()
1172 fprintf(f, "model_name=%s\n", config->model_name); in wpa_config_write_global()
1173 if (config->model_number) in wpa_config_write_global()
1174 fprintf(f, "model_number=%s\n", config->model_number); in wpa_config_write_global()
1175 if (config->serial_number) in wpa_config_write_global()
1176 fprintf(f, "serial_number=%s\n", config->serial_number); in wpa_config_write_global()
1179 buf = wps_dev_type_bin2str(config->device_type, in wpa_config_write_global()
1184 if (WPA_GET_BE32(config->os_version)) in wpa_config_write_global()
1186 WPA_GET_BE32(config->os_version)); in wpa_config_write_global()
1187 if (config->config_methods) in wpa_config_write_global()
1188 fprintf(f, "config_methods=%s\n", config->config_methods); in wpa_config_write_global()
1189 if (config->wps_cred_processing) in wpa_config_write_global()
1191 config->wps_cred_processing); in wpa_config_write_global()
1192 if (config->wps_cred_add_sae) in wpa_config_write_global()
1194 config->wps_cred_add_sae); in wpa_config_write_global()
1195 if (config->wps_vendor_ext_m1) { in wpa_config_write_global()
1196 int i, len = wpabuf_len(config->wps_vendor_ext_m1); in wpa_config_write_global()
1197 const u8 *p = wpabuf_head_u8(config->wps_vendor_ext_m1); in wpa_config_write_global()
1211 for (i = 0; i < config->num_sec_device_types; i++) { in wpa_config_write_global()
1212 buf = wps_dev_type_bin2str(config->sec_device_type[i], in wpa_config_write_global()
1218 if (config->p2p_listen_reg_class) in wpa_config_write_global()
1220 config->p2p_listen_reg_class); in wpa_config_write_global()
1221 if (config->p2p_listen_channel) in wpa_config_write_global()
1223 config->p2p_listen_channel); in wpa_config_write_global()
1224 if (config->p2p_oper_reg_class) in wpa_config_write_global()
1226 config->p2p_oper_reg_class); in wpa_config_write_global()
1227 if (config->p2p_oper_channel) in wpa_config_write_global()
1228 fprintf(f, "p2p_oper_channel=%d\n", config->p2p_oper_channel); in wpa_config_write_global()
1229 if (config->p2p_go_intent != DEFAULT_P2P_GO_INTENT) in wpa_config_write_global()
1230 fprintf(f, "p2p_go_intent=%d\n", config->p2p_go_intent); in wpa_config_write_global()
1231 if (config->p2p_ssid_postfix) in wpa_config_write_global()
1232 fprintf(f, "p2p_ssid_postfix=%s\n", config->p2p_ssid_postfix); in wpa_config_write_global()
1233 if (config->persistent_reconnect) in wpa_config_write_global()
1235 config->persistent_reconnect); in wpa_config_write_global()
1236 if (config->p2p_intra_bss != DEFAULT_P2P_INTRA_BSS) in wpa_config_write_global()
1237 fprintf(f, "p2p_intra_bss=%d\n", config->p2p_intra_bss); in wpa_config_write_global()
1238 if (config->p2p_group_idle) in wpa_config_write_global()
1239 fprintf(f, "p2p_group_idle=%d\n", config->p2p_group_idle); in wpa_config_write_global()
1240 if (config->p2p_passphrase_len) in wpa_config_write_global()
1242 config->p2p_passphrase_len); in wpa_config_write_global()
1243 if (config->p2p_pref_chan) { in wpa_config_write_global()
1246 for (i = 0; i < config->num_p2p_pref_chan; i++) { in wpa_config_write_global()
1248 config->p2p_pref_chan[i].op_class, in wpa_config_write_global()
1249 config->p2p_pref_chan[i].chan); in wpa_config_write_global()
1253 if (config->p2p_no_go_freq.num) { in wpa_config_write_global()
1254 char *val = freq_range_list_str(&config->p2p_no_go_freq); in wpa_config_write_global()
1260 if (config->p2p_add_cli_chan) in wpa_config_write_global()
1261 fprintf(f, "p2p_add_cli_chan=%d\n", config->p2p_add_cli_chan); in wpa_config_write_global()
1262 if (config->p2p_optimize_listen_chan != in wpa_config_write_global()
1265 config->p2p_optimize_listen_chan); in wpa_config_write_global()
1266 if (config->p2p_go_ht40) in wpa_config_write_global()
1267 fprintf(f, "p2p_go_ht40=%d\n", config->p2p_go_ht40); in wpa_config_write_global()
1268 if (config->p2p_go_vht) in wpa_config_write_global()
1269 fprintf(f, "p2p_go_vht=%d\n", config->p2p_go_vht); in wpa_config_write_global()
1270 if (config->p2p_go_he) in wpa_config_write_global()
1271 fprintf(f, "p2p_go_he=%d\n", config->p2p_go_he); in wpa_config_write_global()
1272 if (config->p2p_go_ctwindow != DEFAULT_P2P_GO_CTWINDOW) in wpa_config_write_global()
1273 fprintf(f, "p2p_go_ctwindow=%d\n", config->p2p_go_ctwindow); in wpa_config_write_global()
1274 if (config->p2p_disabled) in wpa_config_write_global()
1275 fprintf(f, "p2p_disabled=%d\n", config->p2p_disabled); in wpa_config_write_global()
1276 if (config->p2p_no_group_iface) in wpa_config_write_global()
1278 config->p2p_no_group_iface); in wpa_config_write_global()
1279 if (config->p2p_ignore_shared_freq) in wpa_config_write_global()
1281 config->p2p_ignore_shared_freq); in wpa_config_write_global()
1282 if (config->p2p_cli_probe) in wpa_config_write_global()
1283 fprintf(f, "p2p_cli_probe=%d\n", config->p2p_cli_probe); in wpa_config_write_global()
1284 if (config->p2p_go_freq_change_policy != DEFAULT_P2P_GO_FREQ_MOVE) in wpa_config_write_global()
1286 config->p2p_go_freq_change_policy); in wpa_config_write_global()
1287 if (WPA_GET_BE32(config->ip_addr_go)) in wpa_config_write_global()
1289 config->ip_addr_go[0], config->ip_addr_go[1], in wpa_config_write_global()
1290 config->ip_addr_go[2], config->ip_addr_go[3]); in wpa_config_write_global()
1291 if (WPA_GET_BE32(config->ip_addr_mask)) in wpa_config_write_global()
1293 config->ip_addr_mask[0], config->ip_addr_mask[1], in wpa_config_write_global()
1294 config->ip_addr_mask[2], config->ip_addr_mask[3]); in wpa_config_write_global()
1295 if (WPA_GET_BE32(config->ip_addr_start)) in wpa_config_write_global()
1297 config->ip_addr_start[0], config->ip_addr_start[1], in wpa_config_write_global()
1298 config->ip_addr_start[2], config->ip_addr_start[3]); in wpa_config_write_global()
1299 if (WPA_GET_BE32(config->ip_addr_end)) in wpa_config_write_global()
1301 config->ip_addr_end[0], config->ip_addr_end[1], in wpa_config_write_global()
1302 config->ip_addr_end[2], config->ip_addr_end[3]); in wpa_config_write_global()
1304 if (config->country[0] && config->country[1]) { in wpa_config_write_global()
1306 config->country[0], config->country[1]); in wpa_config_write_global()
1308 if (config->bss_max_count != DEFAULT_BSS_MAX_COUNT) in wpa_config_write_global()
1309 fprintf(f, "bss_max_count=%u\n", config->bss_max_count); in wpa_config_write_global()
1310 if (config->bss_expiration_age != DEFAULT_BSS_EXPIRATION_AGE) in wpa_config_write_global()
1312 config->bss_expiration_age); in wpa_config_write_global()
1313 if (config->bss_expiration_scan_count != in wpa_config_write_global()
1316 config->bss_expiration_scan_count); in wpa_config_write_global()
1317 if (config->filter_ssids) in wpa_config_write_global()
1318 fprintf(f, "filter_ssids=%d\n", config->filter_ssids); in wpa_config_write_global()
1319 if (config->filter_rssi) in wpa_config_write_global()
1320 fprintf(f, "filter_rssi=%d\n", config->filter_rssi); in wpa_config_write_global()
1321 if (config->max_num_sta != DEFAULT_MAX_NUM_STA) in wpa_config_write_global()
1322 fprintf(f, "max_num_sta=%u\n", config->max_num_sta); in wpa_config_write_global()
1323 if (config->ap_isolate != DEFAULT_AP_ISOLATE) in wpa_config_write_global()
1324 fprintf(f, "ap_isolate=%u\n", config->ap_isolate); in wpa_config_write_global()
1325 if (config->disassoc_low_ack) in wpa_config_write_global()
1326 fprintf(f, "disassoc_low_ack=%d\n", config->disassoc_low_ack); in wpa_config_write_global()
1328 if (config->hs20) in wpa_config_write_global()
1332 if (config->interworking) in wpa_config_write_global()
1333 fprintf(f, "interworking=%d\n", config->interworking); in wpa_config_write_global()
1334 if (!is_zero_ether_addr(config->hessid)) in wpa_config_write_global()
1335 fprintf(f, "hessid=" MACSTR "\n", MAC2STR(config->hessid)); in wpa_config_write_global()
1336 if (config->access_network_type != DEFAULT_ACCESS_NETWORK_TYPE) in wpa_config_write_global()
1338 config->access_network_type); in wpa_config_write_global()
1339 if (config->go_interworking) in wpa_config_write_global()
1340 fprintf(f, "go_interworking=%d\n", config->go_interworking); in wpa_config_write_global()
1341 if (config->go_access_network_type) in wpa_config_write_global()
1343 config->go_access_network_type); in wpa_config_write_global()
1344 if (config->go_internet) in wpa_config_write_global()
1345 fprintf(f, "go_internet=%d\n", config->go_internet); in wpa_config_write_global()
1346 if (config->go_venue_group) in wpa_config_write_global()
1347 fprintf(f, "go_venue_group=%d\n", config->go_venue_group); in wpa_config_write_global()
1348 if (config->go_venue_type) in wpa_config_write_global()
1349 fprintf(f, "go_venue_type=%d\n", config->go_venue_type); in wpa_config_write_global()
1351 if (config->pbc_in_m1) in wpa_config_write_global()
1352 fprintf(f, "pbc_in_m1=%d\n", config->pbc_in_m1); in wpa_config_write_global()
1353 if (config->wps_nfc_pw_from_config) { in wpa_config_write_global()
1354 if (config->wps_nfc_dev_pw_id) in wpa_config_write_global()
1356 config->wps_nfc_dev_pw_id); in wpa_config_write_global()
1358 config->wps_nfc_dh_pubkey); in wpa_config_write_global()
1360 config->wps_nfc_dh_privkey); in wpa_config_write_global()
1361 write_global_bin(f, "wps_nfc_dev_pw", config->wps_nfc_dev_pw); in wpa_config_write_global()
1364 if (config->ext_password_backend) in wpa_config_write_global()
1366 config->ext_password_backend); in wpa_config_write_global()
1367 if (config->p2p_go_max_inactivity != DEFAULT_P2P_GO_MAX_INACTIVITY) in wpa_config_write_global()
1369 config->p2p_go_max_inactivity); in wpa_config_write_global()
1370 if (config->auto_interworking) in wpa_config_write_global()
1372 config->auto_interworking); in wpa_config_write_global()
1373 if (config->okc) in wpa_config_write_global()
1374 fprintf(f, "okc=%d\n", config->okc); in wpa_config_write_global()
1375 if (config->pmf) in wpa_config_write_global()
1376 fprintf(f, "pmf=%d\n", config->pmf); in wpa_config_write_global()
1377 if (config->dtim_period) in wpa_config_write_global()
1378 fprintf(f, "dtim_period=%d\n", config->dtim_period); in wpa_config_write_global()
1379 if (config->beacon_int) in wpa_config_write_global()
1380 fprintf(f, "beacon_int=%d\n", config->beacon_int); in wpa_config_write_global()
1382 if (config->sae_groups) { in wpa_config_write_global()
1385 for (i = 0; config->sae_groups[i] > 0; i++) { in wpa_config_write_global()
1387 config->sae_groups[i]); in wpa_config_write_global()
1392 if (config->ap_vendor_elements) { in wpa_config_write_global()
1393 int i, len = wpabuf_len(config->ap_vendor_elements); in wpa_config_write_global()
1394 const u8 *p = wpabuf_head_u8(config->ap_vendor_elements); in wpa_config_write_global()
1403 if (config->ignore_old_scan_res) in wpa_config_write_global()
1405 config->ignore_old_scan_res); in wpa_config_write_global()
1407 if (config->freq_list && config->freq_list[0]) { in wpa_config_write_global()
1410 for (i = 0; config->freq_list[i]; i++) { in wpa_config_write_global()
1412 config->freq_list[i]); in wpa_config_write_global()
1416 if (config->scan_cur_freq != DEFAULT_SCAN_CUR_FREQ) in wpa_config_write_global()
1417 fprintf(f, "scan_cur_freq=%d\n", config->scan_cur_freq); in wpa_config_write_global()
1419 if (config->sched_scan_interval) in wpa_config_write_global()
1421 config->sched_scan_interval); in wpa_config_write_global()
1423 if (config->sched_scan_start_delay) in wpa_config_write_global()
1425 config->sched_scan_start_delay); in wpa_config_write_global()
1427 if (config->external_sim) in wpa_config_write_global()
1428 fprintf(f, "external_sim=%d\n", config->external_sim); in wpa_config_write_global()
1430 if (config->tdls_external_control) in wpa_config_write_global()
1432 config->tdls_external_control); in wpa_config_write_global()
1434 if (config->wowlan_triggers) in wpa_config_write_global()
1436 config->wowlan_triggers); in wpa_config_write_global()
1438 if (config->bgscan) in wpa_config_write_global()
1439 fprintf(f, "bgscan=\"%s\"\n", config->bgscan); in wpa_config_write_global()
1441 if (config->autoscan) in wpa_config_write_global()
1442 fprintf(f, "autoscan=%s\n", config->autoscan); in wpa_config_write_global()
1444 if (config->p2p_search_delay != DEFAULT_P2P_SEARCH_DELAY) in wpa_config_write_global()
1446 config->p2p_search_delay); in wpa_config_write_global()
1448 if (config->mac_addr) in wpa_config_write_global()
1449 fprintf(f, "mac_addr=%d\n", config->mac_addr); in wpa_config_write_global()
1451 if (config->rand_addr_lifetime != DEFAULT_RAND_ADDR_LIFETIME) in wpa_config_write_global()
1453 config->rand_addr_lifetime); in wpa_config_write_global()
1455 if (config->preassoc_mac_addr) in wpa_config_write_global()
1456 fprintf(f, "preassoc_mac_addr=%d\n", config->preassoc_mac_addr); in wpa_config_write_global()
1458 if (config->key_mgmt_offload != DEFAULT_KEY_MGMT_OFFLOAD) in wpa_config_write_global()
1459 fprintf(f, "key_mgmt_offload=%d\n", config->key_mgmt_offload); in wpa_config_write_global()
1461 if (config->user_mpm != DEFAULT_USER_MPM) in wpa_config_write_global()
1462 fprintf(f, "user_mpm=%d\n", config->user_mpm); in wpa_config_write_global()
1464 if (config->max_peer_links != DEFAULT_MAX_PEER_LINKS) in wpa_config_write_global()
1465 fprintf(f, "max_peer_links=%d\n", config->max_peer_links); in wpa_config_write_global()
1467 if (config->cert_in_cb != DEFAULT_CERT_IN_CB) in wpa_config_write_global()
1468 fprintf(f, "cert_in_cb=%d\n", config->cert_in_cb); in wpa_config_write_global()
1470 if (config->mesh_max_inactivity != DEFAULT_MESH_MAX_INACTIVITY) in wpa_config_write_global()
1472 config->mesh_max_inactivity); in wpa_config_write_global()
1474 if (config->dot11RSNASAERetransPeriod != in wpa_config_write_global()
1477 config->dot11RSNASAERetransPeriod); in wpa_config_write_global()
1479 if (config->passive_scan) in wpa_config_write_global()
1480 fprintf(f, "passive_scan=%d\n", config->passive_scan); in wpa_config_write_global()
1482 if (config->reassoc_same_bss_optim) in wpa_config_write_global()
1484 config->reassoc_same_bss_optim); in wpa_config_write_global()
1486 if (config->wps_priority) in wpa_config_write_global()
1487 fprintf(f, "wps_priority=%d\n", config->wps_priority); in wpa_config_write_global()
1489 if (config->wpa_rsc_relaxation != DEFAULT_WPA_RSC_RELAXATION) in wpa_config_write_global()
1491 config->wpa_rsc_relaxation); in wpa_config_write_global()
1493 if (config->sched_scan_plans) in wpa_config_write_global()
1494 fprintf(f, "sched_scan_plans=%s\n", config->sched_scan_plans); in wpa_config_write_global()
1497 if (config->non_pref_chan) in wpa_config_write_global()
1498 fprintf(f, "non_pref_chan=%s\n", config->non_pref_chan); in wpa_config_write_global()
1499 if (config->mbo_cell_capa != DEFAULT_MBO_CELL_CAPA) in wpa_config_write_global()
1500 fprintf(f, "mbo_cell_capa=%u\n", config->mbo_cell_capa); in wpa_config_write_global()
1501 if (config->disassoc_imminent_rssi_threshold != in wpa_config_write_global()
1504 config->disassoc_imminent_rssi_threshold); in wpa_config_write_global()
1505 if (config->oce != DEFAULT_OCE_SUPPORT) in wpa_config_write_global()
1506 fprintf(f, "oce=%u\n", config->oce); in wpa_config_write_global()
1509 if (config->gas_address3) in wpa_config_write_global()
1510 fprintf(f, "gas_address3=%d\n", config->gas_address3); in wpa_config_write_global()
1512 if (config->ftm_responder) in wpa_config_write_global()
1513 fprintf(f, "ftm_responder=%d\n", config->ftm_responder); in wpa_config_write_global()
1514 if (config->ftm_initiator) in wpa_config_write_global()
1515 fprintf(f, "ftm_initiator=%d\n", config->ftm_initiator); in wpa_config_write_global()
1517 if (config->osu_dir) in wpa_config_write_global()
1518 fprintf(f, "osu_dir=%s\n", config->osu_dir); in wpa_config_write_global()
1520 if (config->fst_group_id) in wpa_config_write_global()
1521 fprintf(f, "fst_group_id=%s\n", config->fst_group_id); in wpa_config_write_global()
1522 if (config->fst_priority) in wpa_config_write_global()
1523 fprintf(f, "fst_priority=%d\n", config->fst_priority); in wpa_config_write_global()
1524 if (config->fst_llt) in wpa_config_write_global()
1525 fprintf(f, "fst_llt=%d\n", config->fst_llt); in wpa_config_write_global()
1527 if (config->gas_rand_addr_lifetime != DEFAULT_RAND_ADDR_LIFETIME) in wpa_config_write_global()
1529 config->gas_rand_addr_lifetime); in wpa_config_write_global()
1530 if (config->gas_rand_mac_addr) in wpa_config_write_global()
1531 fprintf(f, "gas_rand_mac_addr=%d\n", config->gas_rand_mac_addr); in wpa_config_write_global()
1532 if (config->dpp_config_processing) in wpa_config_write_global()
1534 config->dpp_config_processing); in wpa_config_write_global()
1535 if (config->coloc_intf_reporting) in wpa_config_write_global()
1537 config->coloc_intf_reporting); in wpa_config_write_global()
1538 if (config->p2p_device_random_mac_addr) in wpa_config_write_global()
1540 config->p2p_device_random_mac_addr); in wpa_config_write_global()
1541 if (!is_zero_ether_addr(config->p2p_device_persistent_mac_addr)) in wpa_config_write_global()
1543 MAC2STR(config->p2p_device_persistent_mac_addr)); in wpa_config_write_global()
1544 if (config->p2p_interface_random_mac_addr) in wpa_config_write_global()
1546 config->p2p_interface_random_mac_addr); in wpa_config_write_global()
1547 if (config->bss_no_flush_when_down) in wpa_config_write_global()
1549 config->bss_no_flush_when_down); in wpa_config_write_global()
1556 int wpa_config_write(const char *name, struct wpa_config *config) in wpa_config_write() argument
1584 wpa_config_write_global(f, config); in wpa_config_write()
1586 for (cred = config->cred; cred; cred = cred->next) { in wpa_config_write()
1594 for (ssid = config->ssid; ssid; ssid = ssid->next) { in wpa_config_write()
1606 for (blob = config->blobs; blob; blob = blob->next) { in wpa_config_write()