]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: fix the incorrect return value in brcmf_inform_single_bss().
authorRaveendran Somu <raveendran.somu@cypress.com>
Wed, 25 Mar 2020 08:20:26 +0000 (03:20 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 26 Mar 2020 09:44:01 +0000 (11:44 +0200)
commitb340aebac1cc64eaf698f591935e272cf6d1b6a6
tree2721f5c15fde062658cfcc326b62594107fffea2
parent9afbbee065b08f86c3dd4ab60cdd5f1c27c4111f
brcmfmac: fix the incorrect return value in brcmf_inform_single_bss().

The function brcmf_inform_single_bss returns the value as success,
even when the length exceeds the maximum value.
The fix is to send appropriate code on this error.
This issue is observed when Cypress test group reported random fmac
crashes when running their tests and the path was identified from the
crash logs. With this fix the random failure issue in Cypress test group
was resolved.

Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Raveendran Somu <raveendran.somu@cypress.com>
Signed-off-by: Chi-hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1585124429-97371-4-git-send-email-chi-hsien.lin@cypress.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c