brcmfmac: fix WPA/WPA2-PSK 4-way handshake offload and SAE offload failures
authorChung-Hsien Hsu <stanley.hsu@cypress.com>
Tue, 12 May 2020 10:03:08 +0000 (05:03 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 13 May 2020 15:47:38 +0000 (18:47 +0300)
commitb2fe11f0777311a764e47e2f9437809b4673b7b1
tree67e2614a090122fd0a197265a5e4c67db3ba7a21
parent5bb4e125815aa769a7d2ab7dc203593925bba0ba
brcmfmac: fix WPA/WPA2-PSK 4-way handshake offload and SAE offload failures

An incorrect value of use_fwsup is set for 4-way handshake offload for
WPA//WPA2-PSK, caused by commit 3b1e0a7bdfee ("brcmfmac: add support for
SAE authentication offload"). It results in missing bit
BRCMF_VIF_STATUS_EAP_SUCCESS set in brcmf_is_linkup() and causes the
failure. This patch correct the value for the case.

Also setting bit BRCMF_VIF_STATUS_EAP_SUCCESS for SAE offload case in
brcmf_is_linkup() to fix SAE offload failure.

Fixes: 3b1e0a7bdfee ("brcmfmac: add support for SAE authentication offload")
Signed-off-by: Chung-Hsien Hsu <stanley.hsu@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/1589277788-119966-1-git-send-email-chi-hsien.lin@cypress.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c