From patchwork Fri Dec 22 05:45:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinayak Yadawad X-Patchwork-Id: 1879512 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=pZihc9Nh; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=POBDhQAE; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SxGX30bPyz1ypX for ; Fri, 22 Dec 2023 16:46:56 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=eJIKKqOxDArbXnIEvnnkCt4SAZ9uqO8pzaDbk7+EZjs=; b=pZi hc9NhmQs5erpY727ow4MNMD2OMG4Lhy8JzMk0H0gWFYlfYj9IZj+r3Ao6c3ULKekf1lviQxCB7n6A dTl9DHa5zF1agPA4Xraom/MRq0haDsMige+r1gSXZOAylhO6KkxAQ5ZPhZ555H8EBPon0yIephMsu ooWrpU0PDn/pPzAH3Kn3WYsVS6VVgBTWQ7/qOYjefkuYJlIH3fQJbfYSpfOYbKAGJuaEncIBaQU6K InJT3Sy5IpfNsjDuxk+qxVDt6SbNlYXgJn+z+s38oQpejkb+wYb+O6amffq4AxoJqXOgEm2tvBTU4 +Ot1TQRAsLUnSxiPMpOBifhYBms563A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rGYM6-00513v-2r; Fri, 22 Dec 2023 05:45:54 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rGYM1-00512p-2Y for hostap@lists.infradead.org; Fri, 22 Dec 2023 05:45:53 +0000 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6d532e4f6d6so961136b3a.2 for ; Thu, 21 Dec 2023 21:45:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1703223946; x=1703828746; darn=lists.infradead.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=12gYRcWqpGyjx2DxtE1Jidyarb4Ve1v4Dn9VTBl+Lew=; b=POBDhQAEoI9QqJtl5VBMUAoc+rxi1RuVneZiw6/Y2v6ykiRuFzbGyBwwb4EDfytBd/ JDtBSST74iRXuEwSRucdCIAapnGfY6WH7M1567E9svUnSzXPmB9Z6Et+sBKhUixnRff6 D9FK8U3mG2Qos77ORs5wP6NN6xYgfTchd5M/E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703223946; x=1703828746; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=12gYRcWqpGyjx2DxtE1Jidyarb4Ve1v4Dn9VTBl+Lew=; b=WyZj397qY8P3MzGnweWoY1E7Z5+Yq8+UUvz4Y6wK/iUSnRZEcAAANgxXXQVUvXgMMF OCYfBahFOnT9i3y74Bm5fniZpmwMdowUUWs02RQoFHyDR88tNh3aT1AaRd54ds5Phdfm kDKa3yHKWj9iaPXFOnjy8fF3LSesFZEv+umg3PLzqykrS4hsPZ6UNr8bpY6gy3n01KO9 ln3ky/VHOrWyOUALXafzVBYeRj9YlM9TZ5JLCxoP2hy/Et0zheNCSdg2z+u+2sHI/wth 9PnfH8dJMHbqchheDJTlWgcQBgO3NSutu7KcO6UD5i5Km7KoOLxSainpfX5UajpU8qgC ZS8Q== X-Gm-Message-State: AOJu0YxJAmFk87vRKiwJeyCkPezsvdrrnZPqIlwamQ5ReOGlOCmXE8gl xgsNgLIki6cZIPpfBddHL67GjbDfuEUryPqwXT5FoEET7UJIrOc+7s7JbD58LcxujkrgocT0HST 41K5wELGzRIjDKMdZkT4Pj9sJEXWX6uuIJcfEVk8RwQ70cN5QwTq8UXhZ7EqSBKSCMqSfDiSoTD IrqA2Kc5aqDKUwZbp82gZ1Wt4= X-Google-Smtp-Source: AGHT+IGiet5wKc6Dmh5MtX37+B9KIb7MxqXSR0vKpV/eD9IrXJmfHEYojQgXclwXzetun0UdwnNHAA== X-Received: by 2002:a05:6a20:bb1d:b0:195:34a:2089 with SMTP id fc29-20020a056a20bb1d00b00195034a2089mr571471pzb.9.1703223946054; Thu, 21 Dec 2023 21:45:46 -0800 (PST) Received: from ibnvda0196.ibn.broadcom.net ([192.19.252.250]) by smtp.gmail.com with ESMTPSA id 5-20020a170902ee4500b001d06b63bb98sm2589433plo.71.2023.12.21.21.45.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2023 21:45:45 -0800 (PST) From: Vinayak Yadawad To: hostap@lists.infradead.org Cc: jithu.jance@broadcom.com, Vinayak Yadawad Subject: [PATCH 1/1] hostapd: Add all PSK security type support for AP in case of PSK offload Date: Fri, 22 Dec 2023 11:15:40 +0530 Message-Id: <93a971b741d4f1f00043a1ccd8617a5b6cf9d8ae.1703223587.git.vinayak.yadawad@broadcom.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231221_214549_889476_F0C68F84 X-CRM114-Status: GOOD ( 11.93 ) X-Spam-Score: 0.6 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: In the current change we add support for all PSK security types for AP bring up, in PSK offload cases by allowing PSK plumb during the AP start. Signed-off-by: Vinayak Yadawad --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Content analysis details: (0.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:42f listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 1.0 MIME_NO_TEXT No (properly identified) text body parts -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org In the current change we add support for all PSK security types for AP bring up, in PSK offload cases by allowing PSK plumb during the AP start. Signed-off-by: Vinayak Yadawad --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index dbe092adf..10fa31ebc 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5123,7 +5123,7 @@ static int wpa_driver_nl80211_set_ap(void *priv, suites)) goto fail; - if ((params->key_mgmt_suites & WPA_KEY_MGMT_PSK) && + if (wpa_key_mgmt_wpa_psk_no_sae(params->key_mgmt_suites) && (drv->capa.flags2 & WPA_DRIVER_FLAGS2_4WAY_HANDSHAKE_AP_PSK) && params->psk_len && nla_put(msg, NL80211_ATTR_PMK, params->psk_len, params->psk))