Fix WPA3 problems with b43 and b43_legacy
Subsystems (3)
cover Fix WPA3 problems with b43 and b43_legacy
Neither of these two drivers handle MFP in their hardware encryption, thus they need to use the software version built into mac80211. Unfortunately, neither of them sent MFP_CAPABLE as part of their capabilities.
Larry Finger (2):
b43: Fix connection problem with WPA3
b43_legacy: Fix connection problem with WPA3
drivers/net/wireless/broadcom/b43/main.c | 2 +- drivers/net/wireless/broadcom/b43legacy/main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.26.2
PATCH 1/2 b43: 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, b43 did not report that it could handle them. By setting MFP_CAPABLE using ieee80211_set_hw(), the problem is fixed.
With this change, b43 will handle the ciohers it knows in hardare, 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.
This patch fixes a prooblem that has been in the driver since it was first merged with commit e4d6b7951812 ("[B43]: add mac80211-based driver for modern BCM43xx devices").
Fixes e4d6b7951812 ("[B43]: add mac80211-based driver for modern BCM43xx devices")
--- drivers/net/wireless/broadcom/b43/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/broadcom/b43/main.c +1 -1
@@ -5569,7 +5569,7 @@ static struct b43_wl *b43_wireless_init(struct b43_bus_dev *dev)/* fill hw info */ ieee80211_hw_set (hw,RX_INCLUDES_FCS );ieee80211_hw_set (hw,SIGNAL_DBM ); - +ieee80211_hw_set (hw,MFP_CAPABLE ); hw->wiphy->interface_modes =BIT (NL80211_IFTYPE_AP ) | BIT(NL80211_IFTYPE_MESH_POINT) |
Signature · 1 line
2.26.2
Re: [PATCH 1/2] b43: Fix connection problem with WPA3
Quoted 7 lines · Larry Finger
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, b43 did not report that it could handle them. By setting
MFP_CAPABLEusingieee80211_set_hw(), the problem is fixed.With this change, b43 will handle the ciohers it knows in hardare,
I'll change this to:
"ciphers it knows in hardware"
Quoted 11 lines
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.
This patch fixes a prooblem that has been in the driver since it was first merged with commit
e4d6b7951812("[B43]: add mac80211-based driver for modern BCM43xx devices").Fixes
e4d6b7951812("[B43]: add mac80211-based driver for modern BCM43xx devices")
I consider this as a new feature, not a bugfix. So I'll remove the Fixes line and the paragraph above it. Ok?
Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Sasha Levin
maintainerRe: [PATCH 1/2] b43: Fix connection problem with WPA3
In reply to Larry FingerHi
[This is an automated email]
This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all
The bot has tested the following trees: v5.6.14, v5.4.42, v4.19.124, v4.14.181, v4.9.224, v4.4.224.
v5.6.14: Build OK!
v5.4.42: Build OK!
v4.19.124: Build OK!
v4.14.181: Build OK!
v4.9.224: Build OK!
v4.4.224: Failed to apply! Possible dependencies:
Unable to calculate
NOTE: The patch will not be queued to stable trees until it is upstream.
How should we proceed with this patch?
Signature · 2 lines
Thanks Sasha
Re: [PATCH 1/2] b43: Fix connection problem with WPA3
In reply to Larry FingerQuoted 13 lines · Larry Finger
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, b43 did not report that it could handle them. By setting
MFP_CAPABLEusingieee80211_set_hw(), the problem is fixed.With this change, b43 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.
Quoted 3 lines
Reported-and-tested-by Rui Salvaterra <[email protected]>Signed-off-by Larry Finger <[email protected]>Cc Stable <[email protected]>
2 patches applied to wireless-drivers-next.git, thanks.
75d057bda1fb b43: Fix connection problem with WPA3 6a29d134c04a b43_legacy: Fix connection problem with WPA3
Signature · 3 lines
https://patchwork.kernel.org/patch/11570765/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
PATCH 2/2 b43_legacy: Fix connection problem with WPA3
In reply to Larry FingerSince 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 ciohers it knows in hardare, 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.
This patch fixes a problem that has been in b43legacy since commit 75388acd0cd8 ("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices").
--- drivers/net/wireless/broadcom/b43legacy/main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/broadcom/b43legacy/main.c +1 -0
@@ -3801,6 +3801,7 @@ static int b43legacy_wireless_init(struct ssb_device *dev)/* fill hw info */ ieee80211_hw_set (hw,RX_INCLUDES_FCS );ieee80211_hw_set (hw,SIGNAL_DBM ); +ieee80211_hw_set (hw,MFP_CAPABLE );/* Allow WPA3 in software */ hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_AP) |
Signature · 1 line
2.26.2
Re: [PATCH 2/2] b43_legacy: Fix connection problem with WPA3
Quoted 13 lines · Larry Finger
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_CAPABLEusingieee80211_set_hw(), the problem is fixed.With this change, b43legacy will handle the ciohers it knows in hardare, 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.
Quoted 7 lines
This patch fixes a problem that has been in b43legacy since commit
75388acd0cd8("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices").Fixes 75388acd0cd8 ("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices")Signed-off-by Larry Finger <[email protected]>Cc Stable <[email protected]>
I'll do the same changes here as in patch 1.
Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Re: [PATCH 2/2] b43_legacy: Fix connection problem with WPA3
Quoted 19 lines · Kalle Valo
Quoted 17 lines · Larry Finger
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_CAPABLEusingieee80211_set_hw(), the problem is fixed.With this change, b43legacy will handle the ciohers it knows in hardare, 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.
This patch fixes a problem that has been in b43legacy since commit
75388acd0cd8("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices").
Quoted 6 lines
Quoted 3 lines
Fixes 75388acd0cd8 ("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices")Signed-off-by Larry Finger <[email protected]>Cc Stable <[email protected]>I'll do the same changes here as in patch 1.
Yes, both are OK.
Larry
Sasha Levin
maintainerRe: [PATCH 2/2] b43_legacy: Fix connection problem with WPA3
In reply to Larry FingerHi
[This is an automated email]
This commit has been processed because it contains a "Fixes:" tag
fixing commit: 75388acd0cd8 ("[B43LEGACY]: add mac80211-based driver for legacy BCM43xx devices").
The bot has tested the following trees: v5.6.14, v5.4.42, v4.19.124, v4.14.181, v4.9.224, v4.4.224.
v5.6.14: Build OK!
v5.4.42: Build OK!
v4.19.124: Build OK!
v4.14.181: Build OK!
v4.9.224: Build OK!
v4.4.224: Failed to apply! Possible dependencies:
Unable to calculate
NOTE: The patch will not be queued to stable trees until it is upstream.
How should we proceed with this patch?
Signature · 2 lines
Thanks Sasha