linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] rt2800lib: unconditionally enable MFP
@ 2020-05-24  9:47 Rui Salvaterra
  2020-05-24 11:17 ` Stanislaw Gruszka
  0 siblings, 1 reply; 18+ messages in thread
From: Rui Salvaterra @ 2020-05-24  9:47 UTC (permalink / raw)
  To: stf_xl; +Cc: kvalo, Larry.Finger, linux-wireless, Rui Salvaterra

According to Larry [1] (and successfully verified on b43) mac80211
transparently falls back to software for unsupported hardware cyphers. Thus,
there's no reason for not unconditionally enabling MFP. This gives us WPA3
support out of the box, without having to manually disable hardware crypto.

Tested on an RT2790-based Wi-Fi card.

[1] https://lore.kernel.org/linux-wireless/8252e6a1-b83c-64eb-2503-2686374216ae@lwfinger.net/

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
---
 drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
index 6beac1f74e7c..a779fe771a55 100644
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -9971,9 +9971,7 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
 	if (!rt2x00_is_usb(rt2x00dev))
 		ieee80211_hw_set(rt2x00dev->hw, HOST_BROADCAST_PS_BUFFERING);
 
-	/* Set MFP if HW crypto is disabled. */
-	if (rt2800_hwcrypt_disabled(rt2x00dev))
-		ieee80211_hw_set(rt2x00dev->hw, MFP_CAPABLE);
+	ieee80211_hw_set(rt2x00dev->hw, MFP_CAPABLE);
 
 	SET_IEEE80211_DEV(rt2x00dev->hw, rt2x00dev->dev);
 	SET_IEEE80211_PERM_ADDR(rt2x00dev->hw,
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2020-05-25 13:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-24  9:47 [RFC PATCH] rt2800lib: unconditionally enable MFP Rui Salvaterra
2020-05-24 11:17 ` Stanislaw Gruszka
2020-05-24 11:42   ` Julian Calaby
2020-05-24 12:39     ` Stanislaw Gruszka
2020-05-25  9:15       ` Johannes Berg
2020-05-25  9:31         ` Stanislaw Gruszka
2020-05-25  9:49           ` Johannes Berg
2020-05-25 10:58             ` Stanislaw Gruszka
2020-05-25 11:14               ` Rui Salvaterra
2020-05-25 12:25                 ` Stanislaw Gruszka
2020-05-25 12:33                   ` Rui Salvaterra
2020-05-25 13:13                 ` Rui Salvaterra
2020-05-25 13:14                   ` Johannes Berg
2020-05-25 13:28                     ` Rui Salvaterra
2020-05-24 15:07   ` Rui Salvaterra
2020-05-25  0:02     ` Larry Finger
2020-05-25  9:17       ` Johannes Berg
2020-05-25  8:17     ` Stanislaw Gruszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).