Ignore CONFIG_WIFI_DISPLAY without CONFIG_P2P
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>
This commit is contained in:
parent
b306a92dfc
commit
bf161b6609
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue