Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp927148ybt; Fri, 19 Jun 2020 18:23:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweuZ2lEi+0Wh/xkvQPXJbsEhIgMuFkcFg5SbE83oqxGd3bKjJnPe6BtTOc70evK4o4ApaV X-Received: by 2002:aa7:c4c7:: with SMTP id p7mr6223062edr.271.1592616206354; Fri, 19 Jun 2020 18:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592616206; cv=none; d=google.com; s=arc-20160816; b=s79cWazOkHiouqd/n3cjOKuSzK+b8pvyzrz/b5kBTFENGZycP3Aj1s7FABG6+0Vz5I IsXnqYr5DCLihzzxTZBfQGeC47BaP/yAllgu8japIKjWDWVxr555feT8KumQmnmholKL w1aATo2ZyrB1BeyW5FxrnHQxoA8LPMi7NbETLm4HCp3SJ5xSasRBUhOnwgKZWC+15m+k 4k8gVnJQQbaWGrKBvkQPhFD/1la4Y3Aoi1/eOL2NBnPeGNkFh4awTZaqB/JA9DN+sRC4 ESunuuGeO154sEDhDTzYu+Yki+q1oxKlhDnxOvOloQq25ursajYIXrNlfVE+INGdHg0f 8Gsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8LRXlI0/207PI4SCVWeoRvkxgZaiPXuyOTl6piMbdCo=; b=dTsBEOJPXmLXJezfO2ZyFZIQ2QH+xmF16qvhGLIaA0MZ0m9qSS5FlnZAbuP9NEzA44 cxDUkIdZsvJqSyr1AkjRBB/3a5+votyMJNt2oIR6Ch56PZGt7BBWyvlUqbQa6QnpnFm/ s3xW7js4tpHOjnkkcF5pMBGuAeTTNxBe+S2YLsk/IpacHjewukGgtl8KK3A6qGzas/W2 LEEHCoBPo7FjiThpP37SiHlAqMHYSxU7sMNm7DQiLY/s9KpjQ0n+E1IQxOTTiqkq/fjT tO0SZwp3NPGDVY2i3fOv3gjouMyME2yAadBF4bBbmNBtFz8tSbGmWEc2MOjX64/n76cz je3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FumfSQbr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si4398631ejx.210.2020.06.19.18.22.52; Fri, 19 Jun 2020 18:23:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FumfSQbr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405152AbgFSPht (ORCPT + 99 others); Fri, 19 Jun 2020 11:37:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:33492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393518AbgFSP3v (ORCPT ); Fri, 19 Jun 2020 11:29:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 894A620734; Fri, 19 Jun 2020 15:29:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592580590; bh=QpqFatomJNIZinxVMriLwhh76eQ5JXxDrrQ4EMDUW1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FumfSQbrslIZNZ9Ns/a118exq6/UGKIn5MPxYnNj5top1JNNLLIvD1bDPfMwg2D/L +vKB1zwR55tPflZoBczvz7sCqBCnaA2XqAikycJXKJIZzOVhJKK87Gub6ardVr7csk bFPfHFn4olMOnmKPF1N4KGbB+DX+WBsC1g/CURnE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Larry Finger , Kalle Valo Subject: [PATCH 5.7 306/376] b43_legacy: Fix connection problem with WPA3 Date: Fri, 19 Jun 2020 16:33:44 +0200 Message-Id: <20200619141724.823110674@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141710.350494719@linuxfoundation.org> References: <20200619141710.350494719@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Larry Finger commit 6a29d134c04a8acebb7a95251acea7ad7abba106 upstream. 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 Cc: Stable Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200526155909.5807-3-Larry.Finger@lwfinger.net Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/broadcom/b43legacy/main.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/wireless/broadcom/b43legacy/main.c +++ b/drivers/net/wireless/broadcom/b43legacy/main.c @@ -3801,6 +3801,7 @@ static int b43legacy_wireless_init(struc /* 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) |