From 87faf1f22cbae40491278257ce575bfc22e84f4e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 26 Mar 2016 12:00:34 +0200 Subject: [PATCH] nl80211: Fix libnl-tiny build with CONFIG_LIBNL20=y libnl-tiny does not use the separate nl-genl library. Signed-off-by: Jouni Malinen --- src/drivers/drivers.mak | 4 +++- src/drivers/drivers.mk | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak index c4f5f9744..c1bfff1f3 100644 --- a/src/drivers/drivers.mak +++ b/src/drivers/drivers.mak @@ -63,7 +63,9 @@ else endif ifdef CONFIG_LIBNL20 - DRV_LIBS += -lnl-genl + ifndef CONFIG_LIBNL_TINY + DRV_LIBS += -lnl-genl + endif DRV_CFLAGS += -DCONFIG_LIBNL20 endif endif diff --git a/src/drivers/drivers.mk b/src/drivers/drivers.mk index 0a05a2447..0444e5239 100644 --- a/src/drivers/drivers.mk +++ b/src/drivers/drivers.mk @@ -51,7 +51,9 @@ else endif ifdef CONFIG_LIBNL20 - DRV_LIBS += -lnl-genl + ifndef CONFIG_LIBNL_TINY + DRV_LIBS += -lnl-genl + endif DRV_CFLAGS += -DCONFIG_LIBNL20 endif endif