Patchwork [1/1] Fix build of VLAN_NETLINK.

login
register
mail settings
Submitter michael-dev@fami-braun.de
Date April 8, 2013, 4:18 p.m.
Message ID <1365437919-11671-1-git-send-email-michael-dev@fami-braun.de>
Download mbox | patch
Permalink /patch/234828/
State Rejected
Headers show

Comments

michael-dev@fami-braun.de - April 8, 2013, 4:18 p.m.
From: Michael Braun <michael-dev@fami-braun.de>

Signed-hostap: Michael Braun <michael-dev@fami-braun.de>
---
 hostapd/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Johannes Berg - April 8, 2013, 8:40 p.m.
On Mon, 2013-04-08 at 18:18 +0200, michael-dev@fami-braun.de wrote:
> From: Michael Braun <michael-dev@fami-braun.de>
> 
> Signed-hostap: Michael Braun <michael-dev@fami-braun.de>
> ---
>  hostapd/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/hostapd/Makefile b/hostapd/Makefile
> index 8404e0c..cc29031 100644
> --- a/hostapd/Makefile
> +++ b/hostapd/Makefile
> @@ -129,6 +129,8 @@ ifdef CONFIG_FULL_DYNAMIC_VLAN
>  OBJS += ../src/ap/vlan_util.o
>  endif
>  CFLAGS += -DCONFIG_VLAN_NETLINK
> +CFLAGS += -I /usr/include/libnl3
> +LIBS += -lnl-3 -lnl-genl-3 -lnl-route-3 -lnl-nf-3 -lnl-cli-3

That totally needs to be configurable, but there's probably already an
option for it for nl80211.

johannes

Patch

diff --git a/hostapd/Makefile b/hostapd/Makefile
index 8404e0c..cc29031 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -129,6 +129,8 @@  ifdef CONFIG_FULL_DYNAMIC_VLAN
 OBJS += ../src/ap/vlan_util.o
 endif
 CFLAGS += -DCONFIG_VLAN_NETLINK
+CFLAGS += -I /usr/include/libnl3
+LIBS += -lnl-3 -lnl-genl-3 -lnl-route-3 -lnl-nf-3 -lnl-cli-3
 endif
 endif