Lines Matching refs:config
266 static int wpa_config_process_blob(struct wpa_config *config, FILE *f, in wpa_config_process_blob() argument
286 wpa_config_set_blob(config, blob); in wpa_config_process_blob()
299 struct wpa_config *config; in wpa_config_read() local
306 config = cfgp; in wpa_config_read()
308 config = wpa_config_alloc_empty(NULL, NULL); in wpa_config_read()
309 if (config == NULL) { in wpa_config_read()
314 tail = head = config->ssid; in wpa_config_read()
317 cred_tail = cred_head = config->cred; in wpa_config_read()
326 if (config != cfgp) in wpa_config_read()
327 os_free(config); in wpa_config_read()
346 if (wpa_config_add_prio_network(config, ssid)) { in wpa_config_read()
369 if (wpa_config_process_blob(config, f, &line, pos + 12) in wpa_config_read()
377 } else if (wpa_config_process_global(config, pos, line) < 0) { in wpa_config_read()
387 config->ssid = head; in wpa_config_read()
388 wpa_config_debug_dump_networks(config); in wpa_config_read()
389 config->cred = cred_head; in wpa_config_read()
393 if (config != cfgp) in wpa_config_read()
394 wpa_config_free(config); in wpa_config_read()
395 config = NULL; in wpa_config_read()
400 return config; in wpa_config_read()
1064 static void wpa_config_write_global(FILE *f, struct wpa_config *config) in wpa_config_write_global() argument
1067 if (config->ctrl_interface) in wpa_config_write_global()
1068 fprintf(f, "ctrl_interface=%s\n", config->ctrl_interface); in wpa_config_write_global()
1069 if (config->ctrl_interface_group) in wpa_config_write_global()
1071 config->ctrl_interface_group); in wpa_config_write_global()
1073 if (config->eapol_version != DEFAULT_EAPOL_VERSION) in wpa_config_write_global()
1074 fprintf(f, "eapol_version=%d\n", config->eapol_version); in wpa_config_write_global()
1075 if (config->ap_scan != DEFAULT_AP_SCAN) in wpa_config_write_global()
1076 fprintf(f, "ap_scan=%d\n", config->ap_scan); in wpa_config_write_global()
1077 if (config->disable_scan_offload) in wpa_config_write_global()
1079 config->disable_scan_offload); in wpa_config_write_global()
1080 if (config->fast_reauth != DEFAULT_FAST_REAUTH) in wpa_config_write_global()
1081 fprintf(f, "fast_reauth=%d\n", config->fast_reauth); in wpa_config_write_global()
1082 if (config->opensc_engine_path) in wpa_config_write_global()
1084 config->opensc_engine_path); in wpa_config_write_global()
1085 if (config->pkcs11_engine_path) in wpa_config_write_global()
1087 config->pkcs11_engine_path); in wpa_config_write_global()
1088 if (config->pkcs11_module_path) in wpa_config_write_global()
1090 config->pkcs11_module_path); in wpa_config_write_global()
1091 if (config->openssl_ciphers) in wpa_config_write_global()
1092 fprintf(f, "openssl_ciphers=%s\n", config->openssl_ciphers); in wpa_config_write_global()
1093 if (config->pcsc_reader) in wpa_config_write_global()
1094 fprintf(f, "pcsc_reader=%s\n", config->pcsc_reader); in wpa_config_write_global()
1095 if (config->pcsc_pin) in wpa_config_write_global()
1096 fprintf(f, "pcsc_pin=%s\n", config->pcsc_pin); in wpa_config_write_global()
1097 if (config->driver_param) in wpa_config_write_global()
1098 fprintf(f, "driver_param=%s\n", config->driver_param); in wpa_config_write_global()
1099 if (config->dot11RSNAConfigPMKLifetime) in wpa_config_write_global()
1101 config->dot11RSNAConfigPMKLifetime); in wpa_config_write_global()
1102 if (config->dot11RSNAConfigPMKReauthThreshold) in wpa_config_write_global()
1104 config->dot11RSNAConfigPMKReauthThreshold); in wpa_config_write_global()
1105 if (config->dot11RSNAConfigSATimeout) in wpa_config_write_global()
1107 config->dot11RSNAConfigSATimeout); in wpa_config_write_global()
1108 if (config->update_config) in wpa_config_write_global()
1109 fprintf(f, "update_config=%d\n", config->update_config); in wpa_config_write_global()
1111 if (!is_nil_uuid(config->uuid)) { in wpa_config_write_global()
1113 uuid_bin2str(config->uuid, buf, sizeof(buf)); in wpa_config_write_global()
1116 if (config->auto_uuid) in wpa_config_write_global()
1117 fprintf(f, "auto_uuid=%d\n", config->auto_uuid); in wpa_config_write_global()
1118 if (config->device_name) in wpa_config_write_global()
1119 fprintf(f, "device_name=%s\n", config->device_name); in wpa_config_write_global()
1120 if (config->manufacturer) in wpa_config_write_global()
1121 fprintf(f, "manufacturer=%s\n", config->manufacturer); in wpa_config_write_global()
1122 if (config->model_name) in wpa_config_write_global()
1123 fprintf(f, "model_name=%s\n", config->model_name); in wpa_config_write_global()
1124 if (config->model_number) in wpa_config_write_global()
1125 fprintf(f, "model_number=%s\n", config->model_number); in wpa_config_write_global()
1126 if (config->serial_number) in wpa_config_write_global()
1127 fprintf(f, "serial_number=%s\n", config->serial_number); in wpa_config_write_global()
1130 buf = wps_dev_type_bin2str(config->device_type, in wpa_config_write_global()
1135 if (WPA_GET_BE32(config->os_version)) in wpa_config_write_global()
1137 WPA_GET_BE32(config->os_version)); in wpa_config_write_global()
1138 if (config->config_methods) in wpa_config_write_global()
1139 fprintf(f, "config_methods=%s\n", config->config_methods); in wpa_config_write_global()
1140 if (config->wps_cred_processing) in wpa_config_write_global()
1142 config->wps_cred_processing); in wpa_config_write_global()
1143 if (config->wps_cred_add_sae) in wpa_config_write_global()
1145 config->wps_cred_add_sae); in wpa_config_write_global()
1146 if (config->wps_vendor_ext_m1) { in wpa_config_write_global()
1147 int i, len = wpabuf_len(config->wps_vendor_ext_m1); in wpa_config_write_global()
1148 const u8 *p = wpabuf_head_u8(config->wps_vendor_ext_m1); in wpa_config_write_global()
1162 for (i = 0; i < config->num_sec_device_types; i++) { in wpa_config_write_global()
1163 buf = wps_dev_type_bin2str(config->sec_device_type[i], in wpa_config_write_global()
1169 if (config->p2p_listen_reg_class) in wpa_config_write_global()
1171 config->p2p_listen_reg_class); in wpa_config_write_global()
1172 if (config->p2p_listen_channel) in wpa_config_write_global()
1174 config->p2p_listen_channel); in wpa_config_write_global()
1175 if (config->p2p_oper_reg_class) in wpa_config_write_global()
1177 config->p2p_oper_reg_class); in wpa_config_write_global()
1178 if (config->p2p_oper_channel) in wpa_config_write_global()
1179 fprintf(f, "p2p_oper_channel=%d\n", config->p2p_oper_channel); in wpa_config_write_global()
1180 if (config->p2p_go_intent != DEFAULT_P2P_GO_INTENT) in wpa_config_write_global()
1181 fprintf(f, "p2p_go_intent=%d\n", config->p2p_go_intent); in wpa_config_write_global()
1182 if (config->p2p_ssid_postfix) in wpa_config_write_global()
1183 fprintf(f, "p2p_ssid_postfix=%s\n", config->p2p_ssid_postfix); in wpa_config_write_global()
1184 if (config->persistent_reconnect) in wpa_config_write_global()
1186 config->persistent_reconnect); in wpa_config_write_global()
1187 if (config->p2p_intra_bss != DEFAULT_P2P_INTRA_BSS) in wpa_config_write_global()
1188 fprintf(f, "p2p_intra_bss=%d\n", config->p2p_intra_bss); in wpa_config_write_global()
1189 if (config->p2p_group_idle) in wpa_config_write_global()
1190 fprintf(f, "p2p_group_idle=%d\n", config->p2p_group_idle); in wpa_config_write_global()
1191 if (config->p2p_passphrase_len) in wpa_config_write_global()
1193 config->p2p_passphrase_len); in wpa_config_write_global()
1194 if (config->p2p_pref_chan) { in wpa_config_write_global()
1197 for (i = 0; i < config->num_p2p_pref_chan; i++) { in wpa_config_write_global()
1199 config->p2p_pref_chan[i].op_class, in wpa_config_write_global()
1200 config->p2p_pref_chan[i].chan); in wpa_config_write_global()
1204 if (config->p2p_no_go_freq.num) { in wpa_config_write_global()
1205 char *val = freq_range_list_str(&config->p2p_no_go_freq); in wpa_config_write_global()
1211 if (config->p2p_add_cli_chan) in wpa_config_write_global()
1212 fprintf(f, "p2p_add_cli_chan=%d\n", config->p2p_add_cli_chan); in wpa_config_write_global()
1213 if (config->p2p_optimize_listen_chan != in wpa_config_write_global()
1216 config->p2p_optimize_listen_chan); in wpa_config_write_global()
1217 if (config->p2p_go_ht40) in wpa_config_write_global()
1218 fprintf(f, "p2p_go_ht40=%d\n", config->p2p_go_ht40); in wpa_config_write_global()
1219 if (config->p2p_go_vht) in wpa_config_write_global()
1220 fprintf(f, "p2p_go_vht=%d\n", config->p2p_go_vht); in wpa_config_write_global()
1221 if (config->p2p_go_he) in wpa_config_write_global()
1222 fprintf(f, "p2p_go_he=%d\n", config->p2p_go_he); in wpa_config_write_global()
1223 if (config->p2p_go_edmg) in wpa_config_write_global()
1224 fprintf(f, "p2p_go_edmg=%d\n", config->p2p_go_edmg); in wpa_config_write_global()
1225 if (config->p2p_go_ctwindow != DEFAULT_P2P_GO_CTWINDOW) in wpa_config_write_global()
1226 fprintf(f, "p2p_go_ctwindow=%d\n", config->p2p_go_ctwindow); in wpa_config_write_global()
1227 if (config->p2p_disabled) in wpa_config_write_global()
1228 fprintf(f, "p2p_disabled=%d\n", config->p2p_disabled); in wpa_config_write_global()
1229 if (config->p2p_no_group_iface) in wpa_config_write_global()
1231 config->p2p_no_group_iface); in wpa_config_write_global()
1232 if (config->p2p_ignore_shared_freq) in wpa_config_write_global()
1234 config->p2p_ignore_shared_freq); in wpa_config_write_global()
1235 if (config->p2p_cli_probe) in wpa_config_write_global()
1236 fprintf(f, "p2p_cli_probe=%d\n", config->p2p_cli_probe); in wpa_config_write_global()
1237 if (config->p2p_go_freq_change_policy != DEFAULT_P2P_GO_FREQ_MOVE) in wpa_config_write_global()
1239 config->p2p_go_freq_change_policy); in wpa_config_write_global()
1241 if (config->p2p_6ghz_disable) in wpa_config_write_global()
1242 fprintf(f, "p2p_6ghz_disable=%d\n", config->p2p_6ghz_disable); in wpa_config_write_global()
1244 if (WPA_GET_BE32(config->ip_addr_go)) in wpa_config_write_global()
1246 config->ip_addr_go[0], config->ip_addr_go[1], in wpa_config_write_global()
1247 config->ip_addr_go[2], config->ip_addr_go[3]); in wpa_config_write_global()
1248 if (WPA_GET_BE32(config->ip_addr_mask)) in wpa_config_write_global()
1250 config->ip_addr_mask[0], config->ip_addr_mask[1], in wpa_config_write_global()
1251 config->ip_addr_mask[2], config->ip_addr_mask[3]); in wpa_config_write_global()
1252 if (WPA_GET_BE32(config->ip_addr_start)) in wpa_config_write_global()
1254 config->ip_addr_start[0], config->ip_addr_start[1], in wpa_config_write_global()
1255 config->ip_addr_start[2], config->ip_addr_start[3]); in wpa_config_write_global()
1256 if (WPA_GET_BE32(config->ip_addr_end)) in wpa_config_write_global()
1258 config->ip_addr_end[0], config->ip_addr_end[1], in wpa_config_write_global()
1259 config->ip_addr_end[2], config->ip_addr_end[3]); in wpa_config_write_global()
1261 if (config->country[0] && config->country[1]) { in wpa_config_write_global()
1263 config->country[0], config->country[1]); in wpa_config_write_global()
1265 if (config->bss_max_count != DEFAULT_BSS_MAX_COUNT) in wpa_config_write_global()
1266 fprintf(f, "bss_max_count=%u\n", config->bss_max_count); in wpa_config_write_global()
1267 if (config->bss_expiration_age != DEFAULT_BSS_EXPIRATION_AGE) in wpa_config_write_global()
1269 config->bss_expiration_age); in wpa_config_write_global()
1270 if (config->bss_expiration_scan_count != in wpa_config_write_global()
1273 config->bss_expiration_scan_count); in wpa_config_write_global()
1274 if (config->filter_ssids) in wpa_config_write_global()
1275 fprintf(f, "filter_ssids=%d\n", config->filter_ssids); in wpa_config_write_global()
1276 if (config->filter_rssi) in wpa_config_write_global()
1277 fprintf(f, "filter_rssi=%d\n", config->filter_rssi); in wpa_config_write_global()
1278 if (config->max_num_sta != DEFAULT_MAX_NUM_STA) in wpa_config_write_global()
1279 fprintf(f, "max_num_sta=%u\n", config->max_num_sta); in wpa_config_write_global()
1280 if (config->ap_isolate != DEFAULT_AP_ISOLATE) in wpa_config_write_global()
1281 fprintf(f, "ap_isolate=%u\n", config->ap_isolate); in wpa_config_write_global()
1282 if (config->disassoc_low_ack) in wpa_config_write_global()
1283 fprintf(f, "disassoc_low_ack=%d\n", config->disassoc_low_ack); in wpa_config_write_global()
1285 if (config->hs20) in wpa_config_write_global()
1289 if (config->interworking) in wpa_config_write_global()
1290 fprintf(f, "interworking=%d\n", config->interworking); in wpa_config_write_global()
1291 if (!is_zero_ether_addr(config->hessid)) in wpa_config_write_global()
1292 fprintf(f, "hessid=" MACSTR "\n", MAC2STR(config->hessid)); in wpa_config_write_global()
1293 if (config->access_network_type != DEFAULT_ACCESS_NETWORK_TYPE) in wpa_config_write_global()
1295 config->access_network_type); in wpa_config_write_global()
1296 if (config->go_interworking) in wpa_config_write_global()
1297 fprintf(f, "go_interworking=%d\n", config->go_interworking); in wpa_config_write_global()
1298 if (config->go_access_network_type) in wpa_config_write_global()
1300 config->go_access_network_type); in wpa_config_write_global()
1301 if (config->go_internet) in wpa_config_write_global()
1302 fprintf(f, "go_internet=%d\n", config->go_internet); in wpa_config_write_global()
1303 if (config->go_venue_group) in wpa_config_write_global()
1304 fprintf(f, "go_venue_group=%d\n", config->go_venue_group); in wpa_config_write_global()
1305 if (config->go_venue_type) in wpa_config_write_global()
1306 fprintf(f, "go_venue_type=%d\n", config->go_venue_type); in wpa_config_write_global()
1308 if (config->pbc_in_m1) in wpa_config_write_global()
1309 fprintf(f, "pbc_in_m1=%d\n", config->pbc_in_m1); in wpa_config_write_global()
1310 if (config->wps_nfc_pw_from_config) { in wpa_config_write_global()
1311 if (config->wps_nfc_dev_pw_id) in wpa_config_write_global()
1313 config->wps_nfc_dev_pw_id); in wpa_config_write_global()
1315 config->wps_nfc_dh_pubkey); in wpa_config_write_global()
1317 config->wps_nfc_dh_privkey); in wpa_config_write_global()
1318 write_global_bin(f, "wps_nfc_dev_pw", config->wps_nfc_dev_pw); in wpa_config_write_global()
1321 if (config->ext_password_backend) in wpa_config_write_global()
1323 config->ext_password_backend); in wpa_config_write_global()
1324 if (config->p2p_go_max_inactivity != DEFAULT_P2P_GO_MAX_INACTIVITY) in wpa_config_write_global()
1326 config->p2p_go_max_inactivity); in wpa_config_write_global()
1327 if (config->auto_interworking) in wpa_config_write_global()
1329 config->auto_interworking); in wpa_config_write_global()
1330 if (config->okc) in wpa_config_write_global()
1331 fprintf(f, "okc=%d\n", config->okc); in wpa_config_write_global()
1332 if (config->pmf) in wpa_config_write_global()
1333 fprintf(f, "pmf=%d\n", config->pmf); in wpa_config_write_global()
1334 if (config->dtim_period) in wpa_config_write_global()
1335 fprintf(f, "dtim_period=%d\n", config->dtim_period); in wpa_config_write_global()
1336 if (config->beacon_int) in wpa_config_write_global()
1337 fprintf(f, "beacon_int=%d\n", config->beacon_int); in wpa_config_write_global()
1339 if (config->sae_groups) { in wpa_config_write_global()
1342 for (i = 0; config->sae_groups[i] > 0; i++) { in wpa_config_write_global()
1344 config->sae_groups[i]); in wpa_config_write_global()
1349 if (config->sae_pwe) in wpa_config_write_global()
1350 fprintf(f, "sae_pwe=%d\n", config->sae_pwe); in wpa_config_write_global()
1352 if (config->sae_pmkid_in_assoc) in wpa_config_write_global()
1354 config->sae_pmkid_in_assoc); in wpa_config_write_global()
1356 if (config->ap_vendor_elements) { in wpa_config_write_global()
1357 int i, len = wpabuf_len(config->ap_vendor_elements); in wpa_config_write_global()
1358 const u8 *p = wpabuf_head_u8(config->ap_vendor_elements); in wpa_config_write_global()
1367 if (config->ignore_old_scan_res) in wpa_config_write_global()
1369 config->ignore_old_scan_res); in wpa_config_write_global()
1371 if (config->freq_list && config->freq_list[0]) { in wpa_config_write_global()
1374 for (i = 0; config->freq_list[i]; i++) { in wpa_config_write_global()
1376 config->freq_list[i]); in wpa_config_write_global()
1380 if (config->initial_freq_list && config->initial_freq_list[0]) { in wpa_config_write_global()
1383 for (i = 0; config->initial_freq_list[i]; i++) { in wpa_config_write_global()
1385 config->initial_freq_list[i]); in wpa_config_write_global()
1389 if (config->scan_cur_freq != DEFAULT_SCAN_CUR_FREQ) in wpa_config_write_global()
1390 fprintf(f, "scan_cur_freq=%d\n", config->scan_cur_freq); in wpa_config_write_global()
1392 if (config->scan_res_valid_for_connect != in wpa_config_write_global()
1395 config->scan_res_valid_for_connect); in wpa_config_write_global()
1397 if (config->sched_scan_interval) in wpa_config_write_global()
1399 config->sched_scan_interval); in wpa_config_write_global()
1401 if (config->sched_scan_start_delay) in wpa_config_write_global()
1403 config->sched_scan_start_delay); in wpa_config_write_global()
1405 if (config->external_sim) in wpa_config_write_global()
1406 fprintf(f, "external_sim=%d\n", config->external_sim); in wpa_config_write_global()
1408 if (config->tdls_external_control) in wpa_config_write_global()
1410 config->tdls_external_control); in wpa_config_write_global()
1412 if (config->wowlan_triggers) in wpa_config_write_global()
1414 config->wowlan_triggers); in wpa_config_write_global()
1416 if (config->bgscan) in wpa_config_write_global()
1417 fprintf(f, "bgscan=\"%s\"\n", config->bgscan); in wpa_config_write_global()
1419 if (config->autoscan) in wpa_config_write_global()
1420 fprintf(f, "autoscan=%s\n", config->autoscan); in wpa_config_write_global()
1422 if (config->p2p_search_delay != DEFAULT_P2P_SEARCH_DELAY) in wpa_config_write_global()
1424 config->p2p_search_delay); in wpa_config_write_global()
1426 if (config->mac_addr) in wpa_config_write_global()
1427 fprintf(f, "mac_addr=%d\n", config->mac_addr); in wpa_config_write_global()
1429 if (config->rand_addr_lifetime != DEFAULT_RAND_ADDR_LIFETIME) in wpa_config_write_global()
1431 config->rand_addr_lifetime); in wpa_config_write_global()
1433 if (config->preassoc_mac_addr) in wpa_config_write_global()
1434 fprintf(f, "preassoc_mac_addr=%d\n", config->preassoc_mac_addr); in wpa_config_write_global()
1436 if (config->key_mgmt_offload != DEFAULT_KEY_MGMT_OFFLOAD) in wpa_config_write_global()
1437 fprintf(f, "key_mgmt_offload=%d\n", config->key_mgmt_offload); in wpa_config_write_global()
1439 if (config->user_mpm != DEFAULT_USER_MPM) in wpa_config_write_global()
1440 fprintf(f, "user_mpm=%d\n", config->user_mpm); in wpa_config_write_global()
1442 if (config->max_peer_links != DEFAULT_MAX_PEER_LINKS) in wpa_config_write_global()
1443 fprintf(f, "max_peer_links=%d\n", config->max_peer_links); in wpa_config_write_global()
1445 if (config->cert_in_cb != DEFAULT_CERT_IN_CB) in wpa_config_write_global()
1446 fprintf(f, "cert_in_cb=%d\n", config->cert_in_cb); in wpa_config_write_global()
1448 if (config->mesh_max_inactivity != DEFAULT_MESH_MAX_INACTIVITY) in wpa_config_write_global()
1450 config->mesh_max_inactivity); in wpa_config_write_global()
1452 if (config->dot11RSNASAERetransPeriod != in wpa_config_write_global()
1455 config->dot11RSNASAERetransPeriod); in wpa_config_write_global()
1457 if (config->passive_scan) in wpa_config_write_global()
1458 fprintf(f, "passive_scan=%d\n", config->passive_scan); in wpa_config_write_global()
1460 if (config->reassoc_same_bss_optim) in wpa_config_write_global()
1462 config->reassoc_same_bss_optim); in wpa_config_write_global()
1464 if (config->wps_priority) in wpa_config_write_global()
1465 fprintf(f, "wps_priority=%d\n", config->wps_priority); in wpa_config_write_global()
1467 if (config->wpa_rsc_relaxation != DEFAULT_WPA_RSC_RELAXATION) in wpa_config_write_global()
1469 config->wpa_rsc_relaxation); in wpa_config_write_global()
1471 if (config->sched_scan_plans) in wpa_config_write_global()
1472 fprintf(f, "sched_scan_plans=%s\n", config->sched_scan_plans); in wpa_config_write_global()
1475 if (config->non_pref_chan) in wpa_config_write_global()
1476 fprintf(f, "non_pref_chan=%s\n", config->non_pref_chan); in wpa_config_write_global()
1477 if (config->mbo_cell_capa != DEFAULT_MBO_CELL_CAPA) in wpa_config_write_global()
1478 fprintf(f, "mbo_cell_capa=%u\n", config->mbo_cell_capa); in wpa_config_write_global()
1479 if (config->disassoc_imminent_rssi_threshold != in wpa_config_write_global()
1482 config->disassoc_imminent_rssi_threshold); in wpa_config_write_global()
1483 if (config->oce != DEFAULT_OCE_SUPPORT) in wpa_config_write_global()
1484 fprintf(f, "oce=%u\n", config->oce); in wpa_config_write_global()
1487 if (config->gas_address3) in wpa_config_write_global()
1488 fprintf(f, "gas_address3=%d\n", config->gas_address3); in wpa_config_write_global()
1490 if (config->ftm_responder) in wpa_config_write_global()
1491 fprintf(f, "ftm_responder=%d\n", config->ftm_responder); in wpa_config_write_global()
1492 if (config->ftm_initiator) in wpa_config_write_global()
1493 fprintf(f, "ftm_initiator=%d\n", config->ftm_initiator); in wpa_config_write_global()
1495 if (config->osu_dir) in wpa_config_write_global()
1496 fprintf(f, "osu_dir=%s\n", config->osu_dir); in wpa_config_write_global()
1498 if (config->fst_group_id) in wpa_config_write_global()
1499 fprintf(f, "fst_group_id=%s\n", config->fst_group_id); in wpa_config_write_global()
1500 if (config->fst_priority) in wpa_config_write_global()
1501 fprintf(f, "fst_priority=%d\n", config->fst_priority); in wpa_config_write_global()
1502 if (config->fst_llt) in wpa_config_write_global()
1503 fprintf(f, "fst_llt=%d\n", config->fst_llt); in wpa_config_write_global()
1505 if (config->gas_rand_addr_lifetime != DEFAULT_RAND_ADDR_LIFETIME) in wpa_config_write_global()
1507 config->gas_rand_addr_lifetime); in wpa_config_write_global()
1508 if (config->gas_rand_mac_addr) in wpa_config_write_global()
1509 fprintf(f, "gas_rand_mac_addr=%d\n", config->gas_rand_mac_addr); in wpa_config_write_global()
1510 if (config->dpp_config_processing) in wpa_config_write_global()
1512 config->dpp_config_processing); in wpa_config_write_global()
1513 if (config->coloc_intf_reporting) in wpa_config_write_global()
1515 config->coloc_intf_reporting); in wpa_config_write_global()
1516 if (config->p2p_device_random_mac_addr) in wpa_config_write_global()
1518 config->p2p_device_random_mac_addr); in wpa_config_write_global()
1519 if (!is_zero_ether_addr(config->p2p_device_persistent_mac_addr)) in wpa_config_write_global()
1521 MAC2STR(config->p2p_device_persistent_mac_addr)); in wpa_config_write_global()
1522 if (config->p2p_interface_random_mac_addr) in wpa_config_write_global()
1524 config->p2p_interface_random_mac_addr); in wpa_config_write_global()
1525 if (config->bss_no_flush_when_down) in wpa_config_write_global()
1527 config->bss_no_flush_when_down); in wpa_config_write_global()
1528 if (config->disable_btm) in wpa_config_write_global()
1530 if (config->extended_key_id != DEFAULT_EXTENDED_KEY_ID) in wpa_config_write_global()
1532 config->extended_key_id); in wpa_config_write_global()
1533 if (config->wowlan_disconnect_on_deinit) in wpa_config_write_global()
1535 config->wowlan_disconnect_on_deinit); in wpa_config_write_global()
1541 int wpa_config_write(const char *name, struct wpa_config *config) in wpa_config_write() argument
1576 wpa_config_write_global(f, config); in wpa_config_write()
1578 for (cred = config->cred; cred; cred = cred->next) { in wpa_config_write()
1586 for (ssid = config->ssid; ssid; ssid = ssid->next) { in wpa_config_write()
1601 for (blob = config->blobs; blob; blob = blob->next) { in wpa_config_write()