CONFIG_WPS=y and CONFIG_AP=y are required if CONFIG_P2P=y so we may as well enable them automatically in that case.
@@ -228,6 +228,8 @@ L_CFLAGS += -DCONFIG_P2P
NEED_GAS=y
NEED_OFFCHANNEL=y
NEED_80211_COMMON=y
+CONFIG_WPS=y
+CONFIG_AP=y
ifdef CONFIG_P2P_STRICT
L_CFLAGS += -DCONFIG_P2P_STRICT
endif
@@ -209,6 +209,8 @@ CFLAGS += -DCONFIG_P2P
CFLAGS += -DCONFIG_P2P_STRICT