Patchwork [PATCH/RFC,08/18] Makefile: add mesh support to wpa_s build

login
register
mail settings
Submitter Bob Copeland
Date July 14, 2014, 5:19 a.m.
Message ID <1405315163-9492-9-git-send-email-me@bobcopeland.com>
Download mbox | patch
Permalink /patch/369495/
State Superseded
Headers show

Comments

Bob Copeland - July 14, 2014, 5:19 a.m.
From: Thomas Pedersen <thomas@noack.us>

Signed-off-by: Javier Lopez <jlopex@gmail.com>
Signed-hostap: Thomas Pedersen <thomas@noack.us>
---
 hostapd/Android.mk        | 4 ++++
 wpa_supplicant/Android.mk | 6 ++++++
 wpa_supplicant/Makefile   | 6 ++++++
 3 files changed, 16 insertions(+)

Patch

diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index edaf6fc..c62d4a7 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -226,6 +226,10 @@  endif
 ifdef CONFIG_WNM
 L_CFLAGS += -DCONFIG_WNM
 OBJS += src/ap/wnm_ap.c
+
+ifdef CONFIG_MESH
+L_CFLAGS += -DCONFIG_MESH
+endif
 endif
 
 ifdef CONFIG_IEEE80211N
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index 43c3eed..c883f9f 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -208,6 +208,12 @@  endif
 ifdef CONFIG_WNM
 L_CFLAGS += -DCONFIG_WNM
 OBJS += wnm_sta.c
+ifdef CONFIG_MESH
+NEED_80211_COMMON=y
+L_CFLAGS += -DCONFIG_MESH
+OBJS += mesh.c
+OBJS += mesh_mpm.c
+endif
 endif
 
 ifdef CONFIG_TDLS
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 8f7c23f..fada285 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -199,6 +199,12 @@  NEED_SHA256=y
 NEED_AES_OMAC1=y
 endif
 
+ifdef CONFIG_MESH
+NEED_80211_COMMON=y
+CFLAGS += -DCONFIG_MESH
+OBJS += mesh.o mesh_mpm.o
+endif
+
 ifdef CONFIG_SAE
 CFLAGS += -DCONFIG_SAE
 OBJS += ../src/common/sae.o