From patchwork Mon Jun 17 12:26:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arend van Spriel X-Patchwork-Id: 805191 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0354B19580A for ; Mon, 17 Jun 2024 12:26:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718627189; cv=none; b=DkyWiEk8w42hc3jAUjvCdsrKxQWrMuo/61B4Xn2OUA+KxqOfN6oxGMazU5DZeW2B5Hg4/WyU5M4g9Dzs6NXZ1X89K1S1gfMNwWH/M9sR/UmFVR3Nd+CHyeaoOw46pqUkxbKgEC6khSbpfHyeFSLIGWtENJQMGMOmrarCwuqA7eI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718627189; c=relaxed/simple; bh=c5RgKv1BcBYDkDOlkY0X5KckDQUTW2AtSt5eeCWxpHQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=NptpBYJcx6swkdhvd0htlC6CT+biT0cN0yc0NUX2MtSSQqI9dqb9IFmhdbiXpXNIhZ9FeSeDN4q97PosxlyCISMb/GW4GwrPEB85QEgZVNmFvSs2w0AJVAZOMxobW7QRZBUdxrROuf8WvvbUC7mQx4MyAtOpjdkmM9mhq5eYipQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=gaXXdOOr; arc=none smtp.client-ip=209.85.160.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="gaXXdOOr" Received: by mail-qt1-f182.google.com with SMTP id d75a77b69052e-4421cbba106so20547881cf.2 for ; Mon, 17 Jun 2024 05:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1718627187; x=1719231987; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=AR54OWgUPBZ2j9W0aNoHUBAeqYGohZDVofV0ql60/fw=; b=gaXXdOOr+OexRetbuDqyglqNgEYwywBd2KkWQ1uO8ZCnKoLFIpUu/TuSJssCCcLFsP FbqfWaQB0v/B9e2d/Owa2eGIS7ukDER5jrxyYyaPrwFo15N05a3c2xaIxRWizJ5VWPQ7 Xy5J4D3Huv5WkX7MY3JeT1JRJJ8O9VMj5fwyA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718627187; x=1719231987; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AR54OWgUPBZ2j9W0aNoHUBAeqYGohZDVofV0ql60/fw=; b=QhNDgWDBkG8dlWwstI54FXybwvmOpFlFr9NDltpscWbbstOoScBkwTpYQU6nz0TCoq D5IxUkPx/ygbg9/Qgq5GP+cE3yUtEEdA+eOtqMiSLqW8/UmsjBrWZiP+2K+vVd25e7n3 VvtBtpwNQEqrj1O9QOetPwRrIvHeSpH1qxxS90phGRRi1Kac6JOIyYfwq5mMwWMKIz5X n8IsRnxf4xdiFHsN78qTzVSBBPq7GBCoaG3yPFP4C+lOx45N16+SMHGvxQ24kWMJCipx M8R7QOdkT5N/43m2r2zEMZbktI49JP+1Nbercsl1NH1rKYerwNShL2VOVQ0YTJvI1pVx n+fA== X-Gm-Message-State: AOJu0YwubUGFvr4RBZeuqfct0DSdaBM/2WECyWNbqLnyEKFpvGJveIuF wXFUB8xp9y871qz4UiIx8R9O8tqKptDpUx8uJfrnWm7QPC7qwYj7QRTI6DOPoxZePjYsWnUO3YZ ymQ== X-Google-Smtp-Source: AGHT+IE9IDMQuR7ygPCkePCMFvzSQ4pvEMsxioU2ePshalDbQIMGTGTgrLBW38Kavti4vQJeFN0EXA== X-Received: by 2002:ac8:7c55:0:b0:43d:e4c8:8059 with SMTP id d75a77b69052e-442168c03c5mr104345871cf.38.1718627186847; Mon, 17 Jun 2024 05:26:26 -0700 (PDT) Received: from bld-bun-02.bun.broadcom.net ([192.19.176.227]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-442140af54asm41643251cf.48.2024.06.17.05.26.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2024 05:26:25 -0700 (PDT) From: Arend van Spriel To: Kalle Valo Cc: linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev, Arend van Spriel Subject: [PATCH] wifi: brcmsmac: advertise MFP_CAPABLE to enable WPA3 Date: Mon, 17 Jun 2024 14:26:09 +0200 Message-Id: <20240617122609.349582-1-arend.vanspriel@broadcom.com> X-Mailer: git-send-email 2.32.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 After being asked about support for WPA3 for BCM43224 chipset it was found that all it takes is setting the MFP_CAPABLE flag and mac80211 will take care of all that is needed [1]. [1] https://lore.kernel.org/linux-wireless/20200526155909.5807-2-Larry.Finger@lwfinger.net/ Signed-off-by: Arend van Spriel Tested-by: Reijer Boekhoff --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c | 1 + 1 file changed, 1 insertion(+) base-commit: a2ead3445a6317c5d2b53711cf9a98e54c395223 diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c index 860ef9c11c46..a5aa58047d39 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c @@ -1090,6 +1090,7 @@ static int ieee_hw_init(struct ieee80211_hw *hw) ieee80211_hw_set(hw, AMPDU_AGGREGATION); ieee80211_hw_set(hw, SIGNAL_DBM); ieee80211_hw_set(hw, REPORTS_TX_ACK_STATUS); + ieee80211_hw_set(hw, MFP_CAPABLE); hw->extra_tx_headroom = brcms_c_get_header_len(); hw->queues = N_TX_QUEUES;