aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2017-06-12 06:29:27 (GMT)
committerJouni Malinen <j@w1.fi>2017-07-18 10:28:09 (GMT)
commitb5bf84ba39e11de607ef9b9242b2fb7cae3b77d5 (patch)
treedb87a1e0d0b2e8b5ff8adab552ceebf335a6ab70 /wpa_supplicant
parent922dcf1b457cf767d184b786175680520bacace0 (diff)
downloadhostap-b5bf84ba39e11de607ef9b9242b2fb7cae3b77d5.zip
hostap-b5bf84ba39e11de607ef9b9242b2fb7cae3b77d5.tar.gz
hostap-b5bf84ba39e11de607ef9b9242b2fb7cae3b77d5.tar.bz2
WNM: Differentiate between WNM for station and for AP in build
Previously, CONFIG_WNM enabled build that supports WNM for both station mode and AP mode. However, in most wpa_supplicant cases only station mode WNM is required and there is no need for AP mode WNM. Add support to differentiate between station mode WNM and AP mode WNM in wpa_supplicant builds by adding CONFIG_WNM_AP that should be used when AP mode WNM support is required in addition to station mode WNM. This allows binary size to be reduced for builds that require only the station side WNM functionality. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/Android.mk3
-rw-r--r--wpa_supplicant/Makefile3
2 files changed, 4 insertions, 2 deletions
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index e77d096..6d6d095 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -858,7 +858,8 @@ ifdef CONFIG_IEEE80211AX
OBJS += src/ap/ieee802_11_he.c
endif
endif
-ifdef CONFIG_WNM
+ifdef CONFIG_WNM_AP
+L_CFLAGS += -DCONFIG_WNM_AP
OBJS += src/ap/wnm_ap.c
endif
ifdef CONFIG_MBO
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 948385b..98ff595 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -900,7 +900,8 @@ ifdef CONFIG_IEEE80211AX
OBJS += ../src/ap/ieee802_11_he.o
endif
endif
-ifdef CONFIG_WNM
+ifdef CONFIG_WNM_AP
+CFLAGS += -DCONFIG_WNM_AP
OBJS += ../src/ap/wnm_ap.o
endif
ifdef CONFIG_MBO