summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h
diff options
context:
space:
mode:
authorFranky Lin <franky.lin@broadcom.com>2017-03-10 22:17:05 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-03-20 18:14:52 +0100
commitc02a5eb82056f75615cb48aa540bfd245f489b99 (patch)
treed0456e077dda1ac7454407d46ab74b9bb92e6a64 /drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h
parentbrcmfmac: wrap brcmf_fws_add_interface into bcdc layer (diff)
downloadlinux-c02a5eb82056f75615cb48aa540bfd245f489b99.tar.xz
linux-c02a5eb82056f75615cb48aa540bfd245f489b99.zip
brcmfmac: wrap brcmf_fws_del_interface into bcdc layer
Create a new protocol interface function brcmf_proto_del_if for core module to notify protocol layer upon interface deletion. Signed-off-by: Franky Lin <franky.lin@broadcom.com> Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h')
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h
index 3d001f332003..2c76c9604b4c 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/proto.h
@@ -45,6 +45,7 @@ struct brcmf_proto {
u8 peer[ETH_ALEN]);
void (*rxreorder)(struct brcmf_if *ifp, struct sk_buff *skb);
void (*add_if)(struct brcmf_if *ifp);
+ void (*del_if)(struct brcmf_if *ifp);
void *pd;
};
@@ -127,4 +128,12 @@ brcmf_proto_add_if(struct brcmf_pub *drvr, struct brcmf_if *ifp)
drvr->proto->add_if(ifp);
}
+static inline void
+brcmf_proto_del_if(struct brcmf_pub *drvr, struct brcmf_if *ifp)
+{
+ if (!drvr->proto->del_if)
+ return;
+ drvr->proto->del_if(ifp);
+}
+
#endif /* BRCMFMAC_PROTO_H */