From patchwork Wed Jan 10 12:02:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Otcheretianski X-Patchwork-Id: 1884957 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=Q2KeiqXX; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=QR5F8wme; 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 4T960q56xJz1yP3 for ; Wed, 10 Jan 2024 23:04:27 +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-Transfer-Encoding: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-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JU7U8rbuAmuKLUGyQ3AsoN7tIGTwrEfcdwt7K3DzfZk=; b=Q2KeiqXXg7ZkUV +kQk435tP8ID3P10J7pZ3kwrMnH/MBSu0br1imDTN0BXGXaTIeI7aU/vzNOwguQsb3fZFZ3DO2aAJ A891fKz2FasowuzIGxRhCkHIsJ/Fg1X2dy48x9fGSnqhx5yGnU5LvKTB4/PKAPaX6StFpH/nnfhVX jWU1MMdccMcxgBfWWcGOv7fiwpLmUDs9de70hVzNY8YGc4xacQYVjq4VS30i4JeTqqUBTm7gEol8C MBAUFgHhnLIPZw5K4B6j2CFVC9KACxKEEqb+nSN8+lpLfiNaPo3W1Fm5aKOq8lM2gt2WPmOi/rwKY 4NSwG0Di5312LOIf2Rhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNXJF-00Bbgt-0q; Wed, 10 Jan 2024 12:03:49 +0000 Received: from mgamail.intel.com ([198.175.65.12]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNXJC-00BbfM-0y for hostap@lists.infradead.org; Wed, 10 Jan 2024 12:03:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704888226; x=1736424226; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rbqCSlz9IcZm4HI68USFINntTzVObA6S80W4TjHrFQk=; b=QR5F8wmezNCy2iOP+I+WIMbdyLNhPA0f0pzudIZysXJSqIrGU35bHHox wqS0pkR1gv+r3sze9FPRWvbjo+hkMn6Uwi7crbahvJoixkAs7oCW+nA3/ VJbvE/wipc/XGu9Sl33yQ3P/fY1pRUarbKKHO56nACaXfbaUB94k+x4rz jg3+g3BjAJQ9ezuBXdUzBeyGXqgpfaIirO03Licm79jFrP8vGxdq+Gvyj DhYT3+ekwp1PaZKTEW5UjnFNo7E/8G4Tn07Vm2b8m9pFQEzTS5z5v4rIO TrCjA7ehZvKFEr8Mh9ZYgJP/IuPr/yFeVVOSEeN3X6zgxXxJ0vEq8kr5J Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10948"; a="5853614" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="5853614" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2024 04:03:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10948"; a="1113424531" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="1113424531" Received: from unknown (HELO WEIS0042.iil.intel.com) ([10.12.217.211]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2024 04:03:43 -0800 From: Andrei Otcheretianski To: hostap@lists.infradead.org Cc: Andrei Otcheretianski Subject: [PATCH] AP: Fix compilation warning in hapd_pasn_update_params() Date: Wed, 10 Jan 2024 14:02:48 +0200 Message-ID: <20240110120248.2037059-1-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240110_040346_398208_8870B739 X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.4 (/) 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: If CONFIG_FILS isn't set, the compiler complains about unused variables. Fix it. Signed-off-by: Andrei Otcheretianski --- src/ap/ieee802_11.c | 2 ++ 1 file changed, 2 insertions(+) Content analysis details: (-0.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 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 -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 If CONFIG_FILS isn't set, the compiler complains about unused variables. Fix it. Signed-off-by: Andrei Otcheretianski --- src/ap/ieee802_11.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 50190a280b..0029a1baa3 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -2652,8 +2652,10 @@ static void hapd_pasn_update_params(struct hostapd_data *hapd, struct pasn_data *pasn = sta->pasn; struct ieee802_11_elems elems; struct wpa_ie_data rsn_data; +#ifdef CONFIG_FILS struct wpa_pasn_params_data pasn_params; struct wpabuf *wrapped_data = NULL; +#endif /* CONFIG_FILS */ if (ieee802_11_parse_elems(mgmt->u.auth.variable, len - offsetof(struct ieee80211_mgmt,