automake build system
[libeap.git] / wpa_supplicant / config_winreg.c
index 6bd003b..deebbd9 100644 (file)
@@ -256,6 +256,15 @@ static int wpa_config_read_global(struct wpa_config *config, HKEY hk)
        wpa_config_read_reg_dword(hk, TEXT("wps_cred_processing"),
                                  &config->wps_cred_processing);
 #endif /* CONFIG_WPS */
+#ifdef CONFIG_P2P
+       config->p2p_ssid_postfix = wpa_config_read_reg_string(
+               hk, TEXT("p2p_ssid_postfix"));
+#endif /* CONFIG_P2P */
+
+       wpa_config_read_reg_dword(hk, TEXT("bss_max_count"),
+                                 (int *) &config->bss_max_count);
+       wpa_config_read_reg_dword(hk, TEXT("filter_ssids"),
+                                 &config->filter_ssids);
 
        return errors ? -1 : 0;
 }
@@ -582,6 +591,16 @@ static int wpa_config_write_global(struct wpa_config *config, HKEY hk)
        wpa_config_write_reg_dword(hk, TEXT("wps_cred_processing"),
                                   config->wps_cred_processing, 0);
 #endif /* CONFIG_WPS */
+#ifdef CONFIG_P2P
+       wpa_config_write_reg_string(hk, "p2p_ssid_postfix",
+                                   config->p2p_ssid_postfix);
+#endif /* CONFIG_P2P */
+
+       wpa_config_write_reg_dword(hk, TEXT("bss_max_count"),
+                                  config->bss_max_count,
+                                  DEFAULT_BSS_MAX_COUNT);
+       wpa_config_write_reg_dword(hk, TEXT("filter_ssids"),
+                                  config->filter_ssids, 0);
 
        return 0;
 }