Message ID | 15828026.131311401257228625.JavaMail.weblogic@epml10 |
---|---|
State | Accepted |
Headers | show |
On Wed, May 28, 2014 at 06:07:08AM +0000, Amit Khatri wrote: > WPA Supplicant is giving below error when "CONFIG_MODULE_TESTS=y" and "CONFIG_P2P=y" in .config file > "wpas_module_tests.c:84: undefined reference to `wps_module_tests'" > This error is coming because "CONFIG_WPS=y" is commented out in .config file but CONFIG_WPS is getting enabled by CONFIG_P2P in Makefile. Thanks. I applied this with a bit different design to avoid need for duplicate addition of wps_module_tests.o, i.e., by moving the main ifdef CONFIG_MODULE_TESTS further down in the Makefile to get the CONFIG_WPS=y addition from CONFIG_P2P.
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index c0913e0..e920cdf 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -639,6 +639,9 @@ OBJS += ../src/wps/wps_attr_process.o OBJS += ../src/wps/wps_dev_attr.o OBJS += ../src/wps/wps_enrollee.o OBJS += ../src/wps/wps_registrar.o +ifdef CONFIG_MODULE_TESTS +OBJS += ../src/wps/wps_module_tests.o +endif OBJS_h += ../src/eap_server/eap_server_wsc.o CONFIG_IEEE8021X_EAPOL=y NEED_DH_GROUPS=y