aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2011-12-18 19:12:05 (GMT)
committerJouni Malinen <j@w1.fi>2011-12-18 19:12:05 (GMT)
commit300ab0556cea9dde9adb7928c4aa4ef5f29a90d3 (patch)
tree4d38194eeee8dc820c009baf9e70cf27bf27996e /src
parentd58ed4e3062da0f3ebbe7434ddb58e1bdc26a67c (diff)
downloadhostap-300ab0556cea9dde9adb7928c4aa4ef5f29a90d3.zip
hostap-300ab0556cea9dde9adb7928c4aa4ef5f29a90d3.tar.gz
hostap-300ab0556cea9dde9adb7928c4aa4ef5f29a90d3.tar.bz2
Allow linking with libnl-3 (libnl 3.2 and newer)
I needed this patch to compile against the latest libnl code. I added this to my config file: CONFIG_LIBNL32=y Signed-hostap: Ben Greear <greearb@candelatech.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/drivers.mak23
-rw-r--r--src/drivers/drivers.mk23
2 files changed, 30 insertions, 16 deletions
diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak
index 5caeec5..0cc81f9 100644
--- a/src/drivers/drivers.mak
+++ b/src/drivers/drivers.mak
@@ -26,15 +26,22 @@ NEED_AP_MLME=y
NEED_NETLINK=y
NEED_LINUX_IOCTL=y
NEED_RFKILL=y
-ifdef CONFIG_LIBNL_TINY
-DRV_LIBS += -lnl-tiny
-else
-DRV_LIBS += -lnl
-endif
-ifdef CONFIG_LIBNL20
-DRV_LIBS += -lnl-genl
-DRV_CFLAGS += -DCONFIG_LIBNL20
+ifdef CONFIG_LIBNL32
+ DRV_LIBS += -lnl-3
+ DRV_LIBS += -lnl-genl-3
+ DRV_CFLAGS += -DCONFIG_LIBNL20
+else
+ ifdef CONFIG_LIBNL_TINY
+ DRV_LIBS += -lnl-tiny
+ else
+ DRV_LIBS += -lnl
+ endif
+
+ ifdef CONFIG_LIBNL20
+ DRV_LIBS += -lnl-genl
+ DRV_CFLAGS += -DCONFIG_LIBNL20
+ endif
endif
endif
diff --git a/src/drivers/drivers.mk b/src/drivers/drivers.mk
index 30b332f..1d7129c 100644
--- a/src/drivers/drivers.mk
+++ b/src/drivers/drivers.mk
@@ -26,15 +26,22 @@ NEED_AP_MLME=y
NEED_NETLINK=y
NEED_LINUX_IOCTL=y
NEED_RFKILL=y
-ifdef CONFIG_LIBNL_TINY
-DRV_LIBS += -lnl-tiny
-else
-DRV_LIBS += -lnl
-endif
-ifdef CONFIG_LIBNL20
-DRV_LIBS += -lnl-genl
-DRV_CFLAGS += -DCONFIG_LIBNL20
+ifdef CONFIG_LIBNL32
+ DRV_LIBS += -lnl-3
+ DRV_LIBS += -lnl-genl-3
+ DRV_CFLAGS += -DCONFIG_LIBNL20
+else
+ ifdef CONFIG_LIBNL_TINY
+ DRV_LIBS += -lnl-tiny
+ else
+ DRV_LIBS += -lnl
+ endif
+
+ ifdef CONFIG_LIBNL20
+ DRV_LIBS += -lnl-genl
+ DRV_CFLAGS += -DCONFIG_LIBNL20
+ endif
endif
endif