]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PR: Permit interface initialization without PR support
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 20 Oct 2025 13:15:25 +0000 (15:15 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 21 Oct 2025 09:07:56 +0000 (09:07 +0000)
wpas_pr_init() should not fail if CONFIG_PR is not set. Adjust the
return value in the stub to 0 so that interface initialization can
continue when Proximity Ranging is not enabled in the configuration.

Fixes: ae3b00be3532 ("PR: Initialize Proximity Ranging global context")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
wpa_supplicant/pr_supplicant.h

index eceafaf86b17783f249437345237fab7038accb9..f5bc52570838430077a4c7955fdb9931efcbb19f 100644 (file)
@@ -39,7 +39,7 @@ static inline int wpas_pr_init(struct wpa_global *global,
                               struct wpa_supplicant *wpa_s,
                               const struct wpa_driver_capa *capa)
 {
-       return -1;
+       return 0;
 }
 
 static inline void wpas_pr_flush(struct wpa_supplicant *wpa_s)