brcmfmac: include also core.h header in cfg80211.h
authorRafał Miłecki <zajec5@gmail.com>
Sat, 18 Jun 2016 16:49:38 +0000 (18:49 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 29 Jun 2016 16:00:35 +0000 (19:00 +0300)
This header provides two inline functions using struct brcmf_if so we
need core.h to avoid:

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h: In function ‘ndev_to_prof’:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:368:13: error: dereferencing pointer to incomplete type
  return &ifp->vif->profile;
             ^
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h: In function ‘ndev_to_vif’:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h:374:12: error: dereferencing pointer to incomplete type
  return ifp->vif;
            ^

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h

index 04bfc7e3ecde6a0d0bf146b844a070e53c1628d8..7d77f869b7f13be772fc039b5be3a6452dabef25 100644 (file)
@@ -20,6 +20,7 @@
 /* for brcmu_d11inf */
 #include <brcmu_d11.h>
 
+#include "core.h"
 #include "fwil_types.h"
 #include "p2p.h"