brcmfmac: print firmware reported general status errors
authorRafał Miłecki <rafal@milecki.pl>
Thu, 21 Feb 2019 10:33:25 +0000 (11:33 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Feb 2019 08:27:59 +0000 (10:27 +0200)
commitc91377495192cda096e52dc09c266b0d05f16d86
treed426ffc76c33df126d36d493546de2fa853d3be3
parent0c7051610c577b60b01b3b5aec14d6765e177b0d
brcmfmac: print firmware reported general status errors

Firmware may report general errors using a special message type. Add
basic support for it by simply decoding & printing an error number.

A sample situation in which firmware reports a buf error:
CONSOLE: 027084.733 no host response IOCTL buffer available..so fail the request
will now produce a "Firmware reported general error: 9" on the host.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c