hostapd: declare struct wpa_bss early
authorLeon M. George <leon@georgemail.eu>
Wed, 11 Sep 2019 13:22:55 +0000 (15:22 +0200)
committerPetr Štetiar <ynezz@true.cz>
Thu, 14 Nov 2019 19:59:58 +0000 (20:59 +0100)
commiteba68342f9d350008ade7c70cfa9c12d3ac6b504
tree6fcad0725948ed3ed2d9d5fcbd4b72c8605e0f50
parent0fcf02d0a5903ef506f48b41bfbc3eac970dcfe3
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.

Signed-off-by: Leon M. George <leon@georgemail.eu>
[commit message facelift]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit f974f8213b94578581b35e6b3f8fb1fd5a35f753)
package/network/services/hostapd/patches/599-wpa_supplicant-fix-warnings.patch [new file with mode: 0644]