X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fnetwork%2Fservices%2Fhostapd%2Fpatches%2F599-wpa_supplicant-fix-warnings.patch;h=4acd7cafe27247c565c01aa794c7795bab0ee862;hb=92379080ead2b0bd70f0afe25c68547dbc17f768;hp=e70dc61419daf4415275a4e2e2db645d0d0e4b1b;hpb=3f5a9e80da4a0edae4c45cf370b2846ca6785fae;p=openwrt%2Fstaging%2Fxback.git diff --git a/package/network/services/hostapd/patches/599-wpa_supplicant-fix-warnings.patch b/package/network/services/hostapd/patches/599-wpa_supplicant-fix-warnings.patch index e70dc61419..4acd7cafe2 100644 --- a/package/network/services/hostapd/patches/599-wpa_supplicant-fix-warnings.patch +++ b/package/network/services/hostapd/patches/599-wpa_supplicant-fix-warnings.patch @@ -1,3 +1,16 @@ +From: "Leon M. George" +Date: Wed, 11 Sep 2019 15:22:55 +0200 +Subject: [PATCH] hostapd: declare struct wpa_bss early + +wps_supplicant.h assumes that 'struct wpa_bss' is forward declared if +CONFIG_WPS is not defined. With the later inclusion of +600-ubus_support, the issue manifests in warnings like these: + +wps_supplicant.h:113:15: warning: 'struct wpa_bss' declared inside parameter list will not be visible outside of this definition or declaration + struct wpa_bss *bss) + ^~~~~~~ +This patch forward declares 'struct wpa_bss' regardless. + --- a/wpa_supplicant/wps_supplicant.h +++ b/wpa_supplicant/wps_supplicant.h @@ -9,6 +9,7 @@