351-0018-brcmfmac-include-required-headers-in-cfg80211.h.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
  2. Date: Tue, 7 Jun 2016 08:20:21 +0200
  3. Subject: [PATCH] brcmfmac: include required headers in cfg80211.h
  4. MIME-Version: 1.0
  5. Content-Type: text/plain; charset=UTF-8
  6. Content-Transfer-Encoding: 8bit
  7. Without this including cfg80211.h in a wrong order could result in:
  8. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:122:24: error: array type has incomplete element type
  9. struct brcmf_wsec_key key[BRCMF_MAX_DEFAULT_KEYS];
  10. ^
  11. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:291:24: error: field ‘p2p’ has incomplete type
  12. struct brcmf_p2p_info p2p;
  13. ^
  14. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:297:27: error: field ‘pmk_list’ has incomplete type
  15. struct brcmf_pmk_list_le pmk_list;
  16. ^
  17. drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:317:28: error: field ‘assoclist’ has incomplete type
  18. struct brcmf_assoclist_le assoclist;
  19. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
  20. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  21. ---
  22. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
  23. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h
  24. @@ -20,6 +20,9 @@
  25. /* for brcmu_d11inf */
  26. #include <brcmu_d11.h>
  27. +#include "fwil_types.h"
  28. +#include "p2p.h"
  29. +
  30. #define WL_NUM_SCAN_MAX 10
  31. #define WL_TLV_INFO_MAX 1024
  32. #define WL_BSS_INFO_MAX 2048