[PATCH] bgscan: Fix bgscan_init() stub declaration

Andrei Otcheretianski andrei.otcheretianski at intel.com
Thu Dec 14 08:10:40 PST 2023


From: Daniel Gabay <daniel.gabay at intel.com>

The bgscan_init() declared wrongly when CONFIG_BGSCAN is not defined,
fix that.

Signed-off-by: Daniel Gabay <daniel.gabay at intel.com>
---
 wpa_supplicant/bgscan.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/bgscan.h b/wpa_supplicant/bgscan.h
index 3df1550a97..4388b4e062 100644
--- a/wpa_supplicant/bgscan.h
+++ b/wpa_supplicant/bgscan.h
@@ -51,7 +51,7 @@ extern const struct bgscan_ops bgscan_learn_ops;
 #else /* CONFIG_BGSCAN */
 
 static inline int bgscan_init(struct wpa_supplicant *wpa_s,
-			      struct wpa_ssid *ssid, const char name)
+			      struct wpa_ssid *ssid, const char *name)
 {
 	return 0;
 }
-- 
2.38.1




More information about the Hostap mailing list