brcmfmac: add possibility to obtain firmware error
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Wed, 28 Feb 2018 20:15:19 +0000 (21:15 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 7 Mar 2018 14:36:40 +0000 (16:36 +0200)
commit933897342d0714ae1c10729cbaeecea0c6178db5
tree9f4e912fce23daa08ca2576b4e63cf8717ba90c7
parentf0ab68d21b0ede84db9072e2c1764e4bf8e46abe
brcmfmac: add possibility to obtain firmware error

The feature module needs to evaluate the actual firmware error return
upon a control command. This adds a flag to struct brcmf_if that the
caller can set. This flag is checked to determine the error code that
needs to be returned.

Fixes: b69c1df47281 ("brcmfmac: separate firmware errors from i/o errors")
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.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c