From: Daniel Gabay Date: Thu, 14 Dec 2023 16:10:40 +0000 (+0200) Subject: bgscan: Fix bgscan_init() stub declaration X-Git-Tag: hostap_2_11~660 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a793c5f2493e4ad37beb2384cca1d95f533fa01;p=thirdparty%2Fhostap.git bgscan: Fix bgscan_init() stub declaration 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 --- diff --git a/wpa_supplicant/bgscan.h b/wpa_supplicant/bgscan.h index 3df1550a9..4388b4e06 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; }