]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P2: Fix the argument list in wpas_p2p_usd_elems() for non-P2P build
authorsunilravi <sunilravi@google.com>
Fri, 21 Mar 2025 18:07:37 +0000 (18:07 +0000)
committerJouni Malinen <j@w1.fi>
Sat, 22 Mar 2025 09:04:32 +0000 (11:04 +0200)
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 <sunilravi@google.com>
wpa_supplicant/p2p_supplicant.h

index 1fef8bb82bb3c546e161290d7af832bae1c5bb22..140a2f75dab3b2744b2235759d3cc00cff574114 100644 (file)
@@ -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;
 }