1 From: "Leon M. George" <leon@georgemail.eu>
2 Date: Wed, 11 Sep 2019 15:22:55 +0200
3 Subject: [PATCH] hostapd: declare struct wpa_bss early
5 wps_supplicant.h assumes that 'struct wpa_bss' is forward declared if
6 CONFIG_WPS is not defined. With the later inclusion of
7 600-ubus_support, the issue manifests in warnings like these:
9 wps_supplicant.h:113:15: warning: 'struct wpa_bss' declared inside parameter list will not be visible outside of this definition or declaration
12 This patch forward declares 'struct wpa_bss' regardless.
14 --- a/wpa_supplicant/wps_supplicant.h
15 +++ b/wpa_supplicant/wps_supplicant.h
17 #ifndef WPS_SUPPLICANT_H
18 #define WPS_SUPPLICANT_H
21 struct wpa_scan_results;
24 @@ -16,8 +17,6 @@ struct wpa_scan_results;
26 #include "wps/wps_defs.h"
30 struct wps_new_ap_settings {