hostapd: adjust patches to work with git am
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 599-wpa_supplicant-fix-warnings.patch
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
4
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:
8
9 wps_supplicant.h:113:15: warning: 'struct wpa_bss' declared inside parameter list will not be visible outside of this definition or declaration
10 struct wpa_bss *bss)
11 ^~~~~~~
12 This patch forward declares 'struct wpa_bss' regardless.
13
14 --- a/wpa_supplicant/wps_supplicant.h
15 +++ b/wpa_supplicant/wps_supplicant.h
16 @@ -9,6 +9,7 @@
17 #ifndef WPS_SUPPLICANT_H
18 #define WPS_SUPPLICANT_H
19
20 +struct wpa_bss;
21 struct wpa_scan_results;
22
23 #ifdef CONFIG_WPS
24 @@ -16,8 +17,6 @@ struct wpa_scan_results;
25 #include "wps/wps.h"
26 #include "wps/wps_defs.h"
27
28 -struct wpa_bss;
29 -
30 struct wps_new_ap_settings {
31 const char *ssid_hex;
32 const char *auth;