[PATCH] PR: Permit interface initialization without PR support

Benjamin Berg benjamin at sipsolutions.net
Mon Oct 20 06:15:25 PDT 2025


From: Benjamin Berg <benjamin.berg at intel.com>

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 at intel.com>
---
 wpa_supplicant/pr_supplicant.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/pr_supplicant.h b/wpa_supplicant/pr_supplicant.h
index eceafaf86b..f5bc525708 100644
--- a/wpa_supplicant/pr_supplicant.h
+++ b/wpa_supplicant/pr_supplicant.h
@@ -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)
-- 
2.51.0




More information about the Hostap mailing list