[PATCH] Fix: Compilation fails with nl80211

Masashi Honma honma at ictec.co.jp
Sun Apr 11 21:31:50 EDT 2010


Hello.

The wpa_supplicant compilation failed with messages below.

sme.o: In function `sme_associate':
/home/honma/hostap/wpa_supplicant/sme.c:329: undefined reference to `ieee802_11_parse_elems'
collect2: ld returned 1 exit status
make: *** [wpa_supplicant] Error 1

This will occur when using nl80211 driver and not defining CONFIG_IEEE80211R,
CONFIG_WPS, CONFIG_CLIENT_MLME.

This patch solves this issue.

diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak
index 91cd244..a3fc2bb 100644
--- a/src/drivers/drivers.mak
+++ b/src/drivers/drivers.mak
@@ -28,6 +28,7 @@ DRV_CFLAGS += -DCONFIG_DRIVER_NL80211
 DRV_OBJS += ../src/drivers/driver_nl80211.o
 DRV_OBJS += ../src/utils/radiotap.o
 NEED_SME=y
+NEED_80211_COMMON=y
 NEED_AP_MLME=y
 NEED_NETLINK=y
 NEED_LINUX_IOCTL=y

Regards,
Masashi Honma.




More information about the HostAP mailing list