Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp633093ybt; Fri, 19 Jun 2020 09:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR9VRE2fZjFsFA4BGDFAx0O3PgQ9idR8sYuj06oojAxmHPKpJyyG4FmFyqDb8AEEfExJdC X-Received: by 2002:a17:906:1d5b:: with SMTP id o27mr4428126ejh.344.1592585283396; Fri, 19 Jun 2020 09:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592585283; cv=none; d=google.com; s=arc-20160816; b=DX7aZasxc/oPj3eokcqdSciIEsZoLu1FRcGWgRVSIH9NIz8ctZEv/ow5UTQcIYZDtF 5fi8lfBegxrDZTiNSgriHYcMpxivq19xkvR7ljlHa6sUWlXgdvSm9lw73tAAD/jLz49j 4LSgbolW+c+14tYtWAg9E2tunKcIVs7K4l97Z4BwsP/UnXcFGQ18tu4LYyR32hz0A/7q KVYaaRDp1YZCMw3QlNtrz1CXAz8ukz+QC26+wY4FLY5h7U67YPL7QGby/uu+9ynzcrAR f7X10tnxYEtdqnlzpSDjpfjCauWV5rjwS6aFexJ+JdJsK7IaUN8ecPkN+az/8vL9AmRh bhRg== 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=MkjxRPwTLEZb7nt8PJ7heSwIYn5mgxy6XEyLsPeaAXQ=; b=cH5gzsSv77EDorgLGpUycQsHifJfcdTJQm33R/esxzo53hTmYxK8uPG9zw3zS2QDgJ D0oVNOtQH5eJHkREcBqxMzWK92HNodDcjupgqW3j8/ncePTGnetPG/ftyGFkynUcmbx6 F87AZmmFpFquXNTR+CPG2WGW6eYnLFfzKzUCdLxY5eFyUwqrcLStje8DJJzDoVi9TqA1 QAiTOJB63OP7/Cm+3zHSKoUgkTXIw7oeVX5/vNHZdPBfHnODzTgHD0RL2LaUdsLnhORl bCFThL8Z3YTrsD0vUz4y/OPphiN2pU+afFgBAcW1oC9b72ISo5K0IieDOOhSBDt4cyCq XBkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KZVf+bBl; 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 i21si4115828ejj.293.2020.06.19.09.47.41; Fri, 19 Jun 2020 09:48:03 -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=KZVf+bBl; 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 S2391125AbgFSQm5 (ORCPT + 99 others); Fri, 19 Jun 2020 12:42:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:35302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388125AbgFSOoC (ORCPT ); Fri, 19 Jun 2020 10:44:02 -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 E7BAA21556; Fri, 19 Jun 2020 14:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592577842; bh=/9nBmvLwtWmlQVQtLPJkWEypThtx126eI/Y7IuF+/M0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KZVf+bBlGZZ0/VCpgTy+feixkRUIzZvm/RUPmHboaNME8FoGiG8KMbkCNy4Yl/Vid hXALxtbu5cOt9HXx+OyDKRP8/oT/FT82nN4P9nuR7lFYEqKKuES4M2oC6XfmWfKU95 P1aNTQaI9NFxLErWLseKqFWyDvcGjwy5ldCdnLyU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Larry Finger , Kalle Valo , Rui Salvaterra Subject: [PATCH 4.9 111/128] b43: Fix connection problem with WPA3 Date: Fri, 19 Jun 2020 16:33:25 +0200 Message-Id: <20200619141626.006783310@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141620.148019466@linuxfoundation.org> References: <20200619141620.148019466@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 75d057bda1fbca6ade21378aa45db712e5f7d962 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, 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 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. Reported-and-tested-by: Rui Salvaterra Signed-off-by: Larry Finger Cc: Stable Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200526155909.5807-2-Larry.Finger@lwfinger.net Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/broadcom/b43/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/broadcom/b43/main.c +++ b/drivers/net/wireless/broadcom/b43/main.c @@ -5596,7 +5596,7 @@ static struct b43_wl *b43_wireless_init( /* 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) |