]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
bgscan: Fix bgscan_init() stub declaration
authorDaniel Gabay <daniel.gabay@intel.com>
Thu, 14 Dec 2023 16:10:40 +0000 (18:10 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 16 Dec 2023 16:18:38 +0000 (18:18 +0200)
The bgscan_init() declared wrongly when CONFIG_BGSCAN is not defined,
fix that.

Fixes: 3139270903af ("bgscan: Add global bgscan configuration")
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
wpa_supplicant/bgscan.h

index 3df1550a97dda529cdcec209c1bb5bffd8d16408..4388b4e062452f6c41f01fcd97dad8c51ad4807d 100644 (file)
@@ -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;
 }