]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: brcm80211: fmac: Add error log in brcmf_usb_dl_cmd()
authorWentao Liang <vulab@iscas.ac.cn>
Tue, 22 Apr 2025 06:59:38 +0000 (14:59 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Apr 2025 13:36:51 +0000 (15:36 +0200)
commita3cdd0899b8b0e385a48b32f48e0dfc70d3c1ada
tree9b22feea228078e4dfa9db66318a4bc594f397bd
parentfcc2d3e11bcc8f01d52a8c419f49f86ff8343b7c
wifi: brcm80211: fmac: Add error log in brcmf_usb_dl_cmd()

In brcmf_usb_dl_cmd(), the error logging is not enough to describe
the error state. And some caller of the brcmf_usb_dl_cmd() does not
handle its error. An error log in brcmf_usb_dl_cmd() is needed to
prevent silent failure.

Add error handling in brcmf_usb_dl_cmd() to log the command id and
error code in the brcmf_usb_dl_cmd() fails. In this way, every
invocation of the function logs a message upon failure.

Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20250422065938.2345-1-vulab@iscas.ac.cn
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c