Updated to hostap_2_6
[mech_eap.git] / libeap / wpa_supplicant / config_file.c
index fb438ea..7ae1654 100644 (file)
@@ -747,10 +747,16 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
        INT(no_auto_peer);
        INT(frequency);
        INT(fixed_freq);
+#ifdef CONFIG_ACS
+       INT(acs);
+#endif /* CONFIG_ACS */
        write_int(f, "proactive_key_caching", ssid->proactive_key_caching, -1);
        INT(disabled);
        INT(peerkey);
        INT(mixed_cell);
+       INT(max_oper_chwidth);
+       INT(pbss);
+       INT(wps_disabled);
 #ifdef CONFIG_IEEE80211W
        write_int(f, "ieee80211w", ssid->ieee80211w,
                  MGMT_FRAME_PROTECTION_DEFAULT);
@@ -779,6 +785,7 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
        INT_DEF(dot11MeshHoldingTimeout, DEFAULT_MESH_HOLDING_TIMEOUT);
 #endif /* CONFIG_MESH */
        INT(wpa_ptk_rekey);
+       INT(group_rekey);
        INT(ignore_broadcast_ssid);
 #ifdef CONFIG_HT_OVERRIDES
        INT_DEF(disable_ht, DEFAULT_DISABLE_HT);
@@ -1136,6 +1143,22 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
        if (config->p2p_go_freq_change_policy != DEFAULT_P2P_GO_FREQ_MOVE)
                fprintf(f, "p2p_go_freq_change_policy=%u\n",
                        config->p2p_go_freq_change_policy);
+       if (WPA_GET_BE32(config->ip_addr_go))
+               fprintf(f, "ip_addr_go=%u.%u.%u.%u\n",
+                       config->ip_addr_go[0], config->ip_addr_go[1],
+                       config->ip_addr_go[2], config->ip_addr_go[3]);
+       if (WPA_GET_BE32(config->ip_addr_mask))
+               fprintf(f, "ip_addr_mask=%u.%u.%u.%u\n",
+                       config->ip_addr_mask[0], config->ip_addr_mask[1],
+                       config->ip_addr_mask[2], config->ip_addr_mask[3]);
+       if (WPA_GET_BE32(config->ip_addr_start))
+               fprintf(f, "ip_addr_start=%u.%u.%u.%u\n",
+                       config->ip_addr_start[0], config->ip_addr_start[1],
+                       config->ip_addr_start[2], config->ip_addr_start[3]);
+       if (WPA_GET_BE32(config->ip_addr_end))
+               fprintf(f, "ip_addr_end=%u.%u.%u.%u\n",
+                       config->ip_addr_end[0], config->ip_addr_end[1],
+                       config->ip_addr_end[2], config->ip_addr_end[3]);
 #endif /* CONFIG_P2P */
        if (config->country[0] && config->country[1]) {
                fprintf(f, "country=%c%c\n",
@@ -1299,6 +1322,28 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
 
        if (config->wps_priority)
                fprintf(f, "wps_priority=%d\n", config->wps_priority);
+
+       if (config->wpa_rsc_relaxation != DEFAULT_WPA_RSC_RELAXATION)
+               fprintf(f, "wpa_rsc_relaxation=%d\n",
+                       config->wpa_rsc_relaxation);
+
+       if (config->sched_scan_plans)
+               fprintf(f, "sched_scan_plans=%s\n", config->sched_scan_plans);
+
+#ifdef CONFIG_MBO
+       if (config->non_pref_chan)
+               fprintf(f, "non_pref_chan=%s\n", config->non_pref_chan);
+       if (config->mbo_cell_capa != DEFAULT_MBO_CELL_CAPA)
+               fprintf(f, "mbo_cell_capa=%u\n", config->mbo_cell_capa);
+#endif /* CONFIG_MBO */
+
+       if (config->gas_address3)
+               fprintf(f, "gas_address3=%d\n", config->gas_address3);
+
+       if (config->ftm_responder)
+               fprintf(f, "ftm_responder=%d\n", config->ftm_responder);
+       if (config->ftm_initiator)
+               fprintf(f, "ftm_initiator=%d\n", config->ftm_initiator);
 }
 
 #endif /* CONFIG_NO_CONFIG_WRITE */