]> git.baikalelectronics.ru Git - kernel.git/commit
b43_legacy: Fix connection problem with WPA3
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 26 May 2020 15:59:09 +0000 (10:59 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 May 2020 17:13:38 +0000 (20:13 +0300)
commit0da032d64e1f513242138eb10f1fae75c5b914f6
treeb15e7406b3bfdba58e0db674c45b6e150e5a61f2
parentf3282f25addab12649ce90806c797d4e0bf30e7d
b43_legacy: Fix connection problem with WPA3

Since the driver was first introduced into the kernel, it has only
handled the ciphers associated with WEP, WPA, and WPA2. It fails with
WPA3 even though mac80211 can handle those additional ciphers in software,
b43legacy did not report that it could handle them. By setting MFP_CAPABLE using
ieee80211_set_hw(), the problem is fixed.

With this change, b43legacy will handle the ciphers it knows in hardware,
and let mac80211 handle the others in software. It is not necessary to
use the module parameter NOHWCRYPT to turn hardware encryption off.
Although this change essentially eliminates that module parameter,
I am choosing to keep it for cases where the hardware is broken,
and software encryption is required for all ciphers.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200526155909.5807-3-Larry.Finger@lwfinger.net
drivers/net/wireless/broadcom/b43legacy/main.c