213-wpa_supplicant-fix-warnings.patch 978 B

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