]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/wps/wps_common.c
WPS 2.0: Make WSC 2.0 support to be build option (CONFIG_WPS2)
[thirdparty/hostap.git] / src / wps / wps_common.c
index a6a95943314e0e1d1abe70ada1c87173685062da..001f7f290a5ea280090c19e343e89229ad5cc95a 100644 (file)
@@ -609,7 +609,9 @@ u16 wps_config_methods_str2bin(const char *str)
        if (str == NULL) {
                /* Default to enabling methods based on build configuration */
                methods |= WPS_CONFIG_DISPLAY | WPS_CONFIG_KEYPAD;
+#ifdef CONFIG_WPS2
                methods |= WPS_CONFIG_VIRT_DISPLAY;
+#endif /* CONFIG_WPS2 */
 #ifdef CONFIG_WPS_UFD
                methods |= WPS_CONFIG_USBA;
 #endif /* CONFIG_WPS_UFD */
@@ -635,6 +637,7 @@ u16 wps_config_methods_str2bin(const char *str)
                        methods |= WPS_CONFIG_PUSHBUTTON;
                if (os_strstr(str, "keypad"))
                        methods |= WPS_CONFIG_KEYPAD;
+#ifdef CONFIG_WPS2
                if (os_strstr(str, "virtual_display"))
                        methods |= WPS_CONFIG_VIRT_DISPLAY;
                if (os_strstr(str, "physical_display"))
@@ -643,6 +646,7 @@ u16 wps_config_methods_str2bin(const char *str)
                        methods |= WPS_CONFIG_VIRT_PUSHBUTTON;
                if (os_strstr(str, "physical_push_button"))
                        methods |= WPS_CONFIG_PHY_PUSHBUTTON;
+#endif /* CONFIG_WPS2 */
        }
 
        return methods;