From patchwork Tue Aug 24 22:13:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Drewniak?= X-Patchwork-Id: 502122 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2D8DC4338F for ; Tue, 24 Aug 2021 22:14:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D1F2661206 for ; Tue, 24 Aug 2021 22:14:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238605AbhHXWOs (ORCPT ); Tue, 24 Aug 2021 18:14:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbhHXWOr (ORCPT ); Tue, 24 Aug 2021 18:14:47 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1685C061757 for ; Tue, 24 Aug 2021 15:14:02 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id m25-20020a7bcb99000000b002e751bcb5dbso3241706wmi.5 for ; Tue, 24 Aug 2021 15:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m00bb6CQwZ6OzGGYd4DErHHIaz0aC5nr4NAqDuB1ks4=; b=ePXLkffOTifHEWs42zZFVb9N6lEgyL5Nr6cm65jTZUs8GxpP9NbpWS2Etiz95ifEaB 4E4f4xVRjNNwuZtJClXVWacTJoMM35s/k1VwbdvLA8+DydRs2Nm2kNiWMBnAzi9Q1MIF WriPn4vBYXrqlVEAPuTN3Rj3vIs4hZbRuqXXCmPXrR1L0XVewGgJXjupQwi5SW0W6E48 vLhbUbodnQ1Uxb8OuCeqeWZZ2Nho7F17ESX4gJFQBMEVZJBI6yFhzU2NefBL5v7LwPzu 40YZxeZUoymyDVrdzFO9xgulQYSR4k0UMGdN4l42jMR7ZKXa6h0+g0j34xP5EjFyvCWT 4Rmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m00bb6CQwZ6OzGGYd4DErHHIaz0aC5nr4NAqDuB1ks4=; b=KyBVFCo5M1/803YnWNqN1UBbVyU9i0ZKvv14JGzMNasnRZbiXkTvqdfDEoXdMcoI6i 2Aroz029oORlm8By7crYwLQu1OgiJOPQr+TzPR+QF3o3+hh5I/0807iPqnhtMJyWEVsi ct/+VOxE7BwWNJTmzZTP96C/bSekCzoxw9WJt5QLP7XKRVrNOfq7UomnNM3NxLm0QZuF LhbqfnatmPIpc1HyVX+zzZ8Pjj4sktvnJZR6KA9eqGVTI5cs5BOO58tFYGFduGLNnhZa Cz1/bxCFthXXR1zEPYPPYVsm6Z/x88HmqWbEyxH45Z3vSZktwvMTupaAUHSOl63Dc6M7 8IMw== X-Gm-Message-State: AOAM533HkOYm7ZWlZs0S1Y79bffPydsZlxUrwqqcT1FYjPMJs5A/dKjs XCWnXT8BBsqvk7VgNgR01HKLcVYCOIJ6bw== X-Google-Smtp-Source: ABdhPJxcq11STjwKVKkEupiH3YbeQvqPOQJXp4RWd7rAf57qzAQWbSoKI0+fFi2X9ZhL16ApSQqNYQ== X-Received: by 2002:a1c:4407:: with SMTP id r7mr6245376wma.150.1629843240857; Tue, 24 Aug 2021 15:14:00 -0700 (PDT) Received: from localhost ([2a02:8084:26e0:1c70:1d4:73e5:b902:5859]) by smtp.gmail.com with UTF8SMTPSA id h6sm4042790wmq.5.2021.08.24.15.13.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Aug 2021 15:14:00 -0700 (PDT) From: =?utf-8?q?Pawe=C5=82_Drewniak?= To: linux-wireless@vger.kernel.org Cc: brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, Arend van Spriel , Franky Lin , Hante Meuleman , Chi-hsien Lin , Wright Feng , Chung-hsien Hsu , =?utf-8?q?Pawe=C5=82_Drewniak?= Subject: [PATCH v2] brcmfmac: Add WPA3 Personal with FT to supported cipher suites Date: Tue, 24 Aug 2021 23:13:30 +0100 Message-Id: <20210824221330.3847139-1-czajernia@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This allows the driver to connect to BSSIDs supporting SAE with 802.11r. Tested on Raspberry Pi 4 Model B (STA) and UniFi 6LR/OpenWRT 21.02.0-rc2. AP was set to 'sae-mixed' (WPA2/3 Personal). Signed-off-by: Paweł Drewniak --- Changes in v2: - rebase on top of wireless-drivers-next --- .../net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c index cedba56fc..f7b96cd69 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c @@ -1829,6 +1829,14 @@ brcmf_set_key_mgmt(struct net_device *ndev, struct cfg80211_connect_params *sme) profile->use_fwsup = BRCMF_PROFILE_FWSUP_SAE; } break; + case WLAN_AKM_SUITE_FT_OVER_SAE: + val = WPA3_AUTH_SAE_PSK | WPA2_AUTH_FT; + profile->is_ft = true; + if (sme->crypto.sae_pwd) { + brcmf_dbg(INFO, "using SAE offload\n"); + profile->use_fwsup = BRCMF_PROFILE_FWSUP_SAE; + } + break; default: bphy_err(drvr, "invalid cipher group (%d)\n", sme->crypto.cipher_group);