brcmfmac: create common function for handling brcmf_proto_hdrpull()
authorArend van Spriel <arend@broadcom.com>
Mon, 11 Apr 2016 09:35:28 +0000 (11:35 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 14 Apr 2016 12:57:56 +0000 (15:57 +0300)
commitc462ebcdfe425a132aaba950d114ac32de3cdf44
tree16ecdae6ee29fdbaf7ce3781da5efefb286b8622
parent9c349892ccc90c6de2baaa69cc78449f58082273
brcmfmac: create common function for handling brcmf_proto_hdrpull()

In receive path brcmf_proto_hdrpull() needs to be called and handled
similar in brcmf_rx_frame() and brcmf_rx_event(). Move that duplicated
code in separate function.

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c