]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Ignore CONFIG_WIFI_DISPLAY without CONFIG_P2P
authorMasashi Honma <masashi.honma@gmail.com>
Sun, 31 Oct 2021 23:03:37 +0000 (08:03 +0900)
committerJouni Malinen <j@w1.fi>
Wed, 3 Nov 2021 11:19:30 +0000 (13:19 +0200)
Wi-Fi Display functionality needs P2P to be enabled. Ignore
CONFIG_WIFI_DISPLAY if CONFIG_P2P is not enabled for the build. This
avoids following compilation issue with invalid build configuration:

../src/ap/ap_drv_ops.c: In function 'hostapd_build_ap_extra_ies':
../src/ap/ap_drv_ops.c:163:10: error: 'struct hostapd_data' has no member named 'p2p_group'
  163 |  if (hapd->p2p_group) {
      |          ^~
../src/ap/ap_drv_ops.c:165:35: error: 'struct hostapd_data' has no member named 'p2p_group'
  165 |   a = p2p_group_assoc_resp_ie(hapd->p2p_group, P2P_SC_SUCCESS);
      |                                   ^~

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
wpa_supplicant/Android.mk
wpa_supplicant/Makefile

index f539ce1348ec3a306fe244aa8f0c14d87f6eccbb..0aacafd4ab9698e5bb120500d0c74dc22eb68134 100644 (file)
@@ -366,12 +366,11 @@ CONFIG_AP=y
 ifdef CONFIG_P2P_STRICT
 L_CFLAGS += -DCONFIG_P2P_STRICT
 endif
-endif
-
 ifdef CONFIG_WIFI_DISPLAY
 L_CFLAGS += -DCONFIG_WIFI_DISPLAY
 OBJS += wifi_display.c
 endif
+endif
 
 ifdef CONFIG_PASN
 L_CFLAGS += -DCONFIG_PASN
index 737f7af9c4be08f0473f88710b7d1b3e987ffab2..ce1c8b2e3366ce2269afe48fff35e8125f5ce043 100644 (file)
@@ -389,12 +389,11 @@ CONFIG_AP=y
 ifdef CONFIG_P2P_STRICT
 CFLAGS += -DCONFIG_P2P_STRICT
 endif
-endif
-
 ifdef CONFIG_WIFI_DISPLAY
 CFLAGS += -DCONFIG_WIFI_DISPLAY
 OBJS += wifi_display.o
 endif
+endif
 
 ifdef CONFIG_PASN
 CFLAGS += -DCONFIG_PASN