summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c
diff options
context:
space:
mode:
authorHante Meuleman <meuleman@broadcom.com>2015-11-25 11:32:38 +0100
committerKalle Valo <kvalo@codeaurora.org>2015-11-30 14:46:38 +0200
commit21000b3f3da45a5a33de3815f3c2b3584102960e (patch)
tree7133e8a85906cf0005ea70f9bab3d9bdca3ae765 /drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c
parente9a6ca825eb7cee946c0e7acde6fb40f4de43d3b (diff)
downloadlwn-21000b3f3da45a5a33de3815f3c2b3584102960e.tar.gz
lwn-21000b3f3da45a5a33de3815f3c2b3584102960e.zip
brcmfmac: Return actual error by fwil.
FWIL is always mapping back errors to EBADE. This is not very conventient when trying to understand problems by reading logs. Some callers print the error code, but that is quite useless when the exact error code is not returned. It also makes it impossible to differentiate based on error code. This patch changes the return of EBADE into the actual error code. Reviewed-by: Arend Van Spriel <arend@broadcom.com> Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c')
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c
index bbf7abbf0901..f6a2df94dba7 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c
@@ -126,7 +126,8 @@ brcmf_fil_cmd_data(struct brcmf_if *ifp, u32 cmd, void *data, u32 len, bool set)
brcmf_dbg(FIL, "Failed: %s (%d)\n",
brcmf_fil_get_errstr((u32)(-err)), err);
- return -EBADE;
+
+ return err;
}
s32