Message ID | 20230215230904.933291-14-andrei.otcheretianski@intel.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=<UNKNOWN>) 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=opo9pEKD; 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=cNthQC3X; dkim-atps=neutral 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PHDSF3h3wz23yD for <incoming@patchwork.ozlabs.org>; Thu, 16 Feb 2023 10:14:53 +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:References:In-Reply-To: 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: List-Owner; bh=jxscH/TSyxwe+z2/QQGeuweC9svXOZkK+LH/hjgrEv0=; b=opo9pEKDcSpga2 b+3ACuN7QtNf9XxnvlXinEhKMdAZey2xtQ6RtXZxXq/+ARAisaKpFq2wpJa/2Q0NyfJO3jB3b5zX8 OsPCsRE7B/yhYrCAwp2Lr79qy9LzJMWo7FyaGJfjflHSl/RYxryAK6DnrpULZTmy4X+aO1Se5gcA0 jm9EfF93CAddzoyMer9QrowdWHdekr840JklEoPAeB6xGef/z85HQXlorUbR6V/ZHaNIsdCvvmiEB wHDFc/RxXZFa3BX72rPvz0qq6ELCDO35orDJVzVRSViFL4am+zXFTFW36ShpzKquPGhI5lMs5jqjH TzFkeu96PltGDGKrvFRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSQyW-007nJP-KD; Wed, 15 Feb 2023 23:14:08 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSQuD-007lLy-Kw for hostap@lists.infradead.org; Wed, 15 Feb 2023 23:09:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676502581; x=1708038581; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/1YSy/5vv29wMTzGOH/vx/rf1S+BC6KsBQ7d0O8yCNI=; b=cNthQC3X62kqH0og2wXJXMrNcEERClrYyRQQf+vt/1zTjSXpgwIP5jl+ 4uiwZTZkf1ilXNqYrEfL3SdESAR8/T6a63BYD/mAEmZy6OiBeiXFY0ORc YZyezvkNHyQHqNCybjB5guueQyo01RH6RGm6KXjsp4c1HlJpmypm9dyhC s7jWX84a5XZd8Rwk/E3SuV6dierwrtCl8fZuhpuD1DxEl7fFVgl1m1mHe VV+I6Cb8ys/DE4Lqveme9jNF7+s8MFCs+TZqs3kWJB1q/WR+Gc/fPYNC+ 2RTRu/V4vxh8mIQFzlbq+pCLFOXrfgzpkYqJV2nJN6j+5jqoLOLUvyyqL Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="333719610" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="333719610" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 15:09:41 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="702344199" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="702344199" Received: from zfilgut-mobl.ger.corp.intel.com (HELO aotchere-desk.intel.com) ([10.254.144.126]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 15:09:40 -0800 From: Andrei Otcheretianski <andrei.otcheretianski@intel.com> To: hostap@lists.infradead.org Cc: Ilan Peer <ilan.peer@intel.com> Subject: [PATCH 13/50] common: Split ieee8021_parse_elems() Date: Thu, 16 Feb 2023 01:08:27 +0200 Message-Id: <20230215230904.933291-14-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230215230904.933291-1-andrei.otcheretianski@intel.com> References: <20230215230904.933291-1-andrei.otcheretianski@intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230215_150941_772784_005B1E54 X-CRM114-Status: GOOD ( 12.01 ) X-Spam-Score: -2.7 (--) 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: From: Ilan Peer <ilan.peer@intel.com> As a preparation to parse management frames that include ML elements with per station profiles, split the function to an helper function that would not memset the elements structure. Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [134.134.136.65 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 -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: <hostap.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>, <mailto:hostap-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/hostap/> List-Post: <mailto:hostap@lists.infradead.org> List-Help: <mailto:hostap-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>, <mailto:hostap-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Hostap" <hostap-bounces@lists.infradead.org> Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Add basic MLO support for AP
|
expand
|
diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c index 7741a8df8d..d1e8bae897 100644 --- a/src/common/ieee802_11_common.c +++ b/src/common/ieee802_11_common.c @@ -409,22 +409,20 @@ static int ieee802_11_parse_extension(const u8 *pos, size_t elen, /** - * ieee802_11_parse_elems - Parse information elements in management frames + * __ieee802_11_parse_elems - Parse information elements in management frames * @start: Pointer to the start of IEs * @len: Length of IE buffer in octets * @elems: Data structure for parsed elements * @show_errors: Whether to show parsing errors in debug log * Returns: Parsing result */ -ParseRes ieee802_11_parse_elems(const u8 *start, size_t len, - struct ieee802_11_elems *elems, - int show_errors) +static ParseRes __ieee802_11_parse_elems(const u8 *start, size_t len, + struct ieee802_11_elems *elems, + int show_errors) { const struct element *elem; int unknown = 0; - os_memset(elems, 0, sizeof(*elems)); - if (!start) return ParseOK; @@ -676,6 +674,16 @@ done: } +ParseRes ieee802_11_parse_elems(const u8 *start, size_t len, + struct ieee802_11_elems *elems, + int show_errors) +{ + os_memset(elems, 0, sizeof(*elems)); + + return __ieee802_11_parse_elems(start, len, elems, show_errors); +} + + int ieee802_11_ie_count(const u8 *ies, size_t ies_len) { const struct element *elem;