From 6b618f419d66e8360b4e968026943f65bcf4689b Mon Sep 17 00:00:00 2001 From: sunilravi Date: Fri, 21 Mar 2025 18:07:37 +0000 Subject: [PATCH] P2P2: Fix the argument list in wpas_p2p_usd_elems() for non-P2P build The wpas_p2p_usd_elems() expects two arguments. But the stub function in p2p_supplicant.h when CONFIG_P2P is disabled has only one argument. Fix the build error by adding the service name argument in the wpas_p2p_usd_elems(). Fixes: c96fd75b1841 ("P2P2: Add USD service hash in the P2P2 PASN M1 frame") Signed-off-by: sunilravi --- wpa_supplicant/p2p_supplicant.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/p2p_supplicant.h b/wpa_supplicant/p2p_supplicant.h index 1fef8bb82..140a2f75d 100644 --- a/wpa_supplicant/p2p_supplicant.h +++ b/wpa_supplicant/p2p_supplicant.h @@ -373,7 +373,8 @@ static inline int wpas_p2p_group_remove(struct wpa_supplicant *wpa_s, return 0; } -static inline struct wpabuf * wpas_p2p_usd_elems(struct wpa_supplicant *wpa_s) +static inline struct wpabuf * wpas_p2p_usd_elems(struct wpa_supplicant *wpa_s, + const char *service_name) { return NULL; } -- 2.47.2