Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3148468lqo; Wed, 15 May 2024 00:39:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWa8bKaIv5Hu05C6cwAPfWwUOSmTE5f6TiZwxgissgPeFuqBlOakTFj5WXIMij8BoHcNYvaRw00yDCkQ6fJg/JD+rLUkhn2wmn/ROkQRA== X-Google-Smtp-Source: AGHT+IH39WH1uz32MGMYRjD0WfbfLRgZqCurmz87Vw21b/w07T2DYJGvLgWPVupZ4qiac0LaQMpn X-Received: by 2002:a05:6a21:1f15:b0:1aa:674a:5e8a with SMTP id adf61e73a8af0-1afd1483ebdmr23438167637.25.1715758776060; Wed, 15 May 2024 00:39:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715758776; cv=pass; d=google.com; s=arc-20160816; b=SQpP5GDufN6KVwU1CXpxwvn+fGPtSjrEkUSs998xeX7truyAmNFy4wB37prxpYaYfa AoBrSyc+hEOgqO20QjrMWbrRGvSzsYzZ208Gz/CXiXX736lv+rbKW3sRlAe2wUh6YSmk EmEGQ9JlEMaADbyIaM5Bn6TwAqWIFv9Cv+g8B1Jh2dMsSLn175LCQVtxvGr10Q31iuZb 5udz6erMyHXAQME8fHJpOPDw0J46cANyK5mCM5SoZkgie6E7KcxMxeJAhmx94+dYo2Oe +77izPdFNlzHdC+YRWtXvjpb6fOoeQacAW9p5hfoFVXPK+ckNJLcC3OizCPnPsl0SVWM 2VlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=0TOf7Vh6B3BmD9PiFVyghzkWKOi3+YlIq0tJzanJp2k=; fh=QCRMbNmxBrwEohLjUHQ8w4lzVnBUUFoRxUspyxOIxFc=; b=oJ269GQ2KMpvJHL4+IR8srMvuXyLYyAGW5iyQxt6Oiyh4rHw6pmie7JTC7HaE9er9s m/0xVc+UK6q4VFjNmd81tVAFHFWsb8tQai5oORlNA6Z3ndRdzxfEvGBcQTPt2fFXUU4/ XtqnvaCtgygzDeLkgR225QJ6vnHO69aTpSRVhBOTXglTcA3a5YDT1n5d532kdhVmYhte IRQGnLbTPT+cNH+Z7Er0BjeBicZP9edPgj69Bf1orU8Avm40R79md5toXVIKtOFbBCqk +MyGVQoXZscv33IHY9UDTT7HoXHYoQw3XHElPv7jjfDurfxslvFwJBdsYppBM7SUAqGd FNbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HmRwmVG+; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7675-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e837b4si12670498a12.71.2024.05.15.00.39.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 00:39:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7675-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HmRwmVG+; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7675-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7675-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2C870283D53 for ; Wed, 15 May 2024 07:39:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33502446AD; Wed, 15 May 2024 07:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="HmRwmVG+" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFEED4AEE6 for ; Wed, 15 May 2024 07:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715758751; cv=none; b=Ll/mXi34LpPitJ4ptBe4Irf1LBHFJ+vcTqTiEBYcNLghM85VD6QHtmiXEIdYMDKK/25Tbmmn0HM/KMiA4/YzRork8ARE8tIE+/7BjwOy9fchTl4Ur/0wbv6yynctsoSHW4JKAdY/saNVNNpMw5u3CSDX3hWIyFHI4fOp6ZDJmwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715758751; c=relaxed/simple; bh=3kB58TH+CRag5VRZd3tL/Uq3yGdiuPY8+eq1h2AEnv0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fjrjS//Tvg1WL7+SrmS3UbPJEPCxk5XEZV7h0tGEQrHlV3PKgxByXgVYXjwnuAnwzluDG70wC+LPV0OZD30fToL+54j484f51y83z1QY0SDpmWmsiHpDlOVal9ey8Tcu3zI4oLHq02gAB8iFSz6rScYAapsxL5E2IUaX4YdxFF8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=HmRwmVG+; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=0TOf7Vh6B3BmD9PiFVyghzkWKOi3+YlIq0tJzanJp2k=; t=1715758749; x=1716968349; b=HmRwmVG+SenO4/qc2Yk2s8bRJWdrCowHReZdgn1E6RyDB31 vMgzTakGf+U0ZQPJI8IcO+Psdvurg60N5RB8OcE9fDHkcrXUnZ6Yo0GpsbVoxl9agPSqoyqYSYAdj P3F3D1Ml0ix95/BuRn8XALpq3Dg9XxhbUMVg4xBgmFz9UQ8S8Vw9A++ekIYKdwJ983pKYs7YvFU33 Jqn4XxxNO44fURJ7ffUm7y8ysoZSQ7GSomevPcxJEeguJHXkYWTMXqCcidutIz8R8EIDReg1nvvcQ xdKRhWNdXCSaJQNYD1pHtX1tIRRT7Ces/mmQ3GOMtmIt8UNrhKOjgpc8bNcMXmWA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s79EB-000000063rL-09xt; Wed, 15 May 2024 09:39:07 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH 6/6] wifi: ieee80211: document two FTM related functions Date: Wed, 15 May 2024 09:38:40 +0200 Message-ID: <20240515093852.229aa69e972c.Ifae6762a698e79cd5a49a055fe4c32330e826200@changeid> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240515073852.11273-8-johannes@sipsolutions.net> References: <20240515073852.11273-8-johannes@sipsolutions.net> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg Add some documentation to ieee80211_is_timing_measurement() and ieee80211_is_ftm(). Signed-off-by: Johannes Berg --- include/linux/ieee80211.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 595f83783f0e..fb50a99daa93 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -4731,6 +4731,11 @@ static inline bool ieee80211_action_contains_tpc(struct sk_buff *skb) return true; } +/** + * ieee80211_is_timing_measurement - check if frame is timing measurement response + * @skb: the SKB to check + * Return: whether or not the frame is a valid timing measurement response + */ static inline bool ieee80211_is_timing_measurement(struct sk_buff *skb) { struct ieee80211_mgmt *mgmt = (void *)skb->data; @@ -4750,6 +4755,11 @@ static inline bool ieee80211_is_timing_measurement(struct sk_buff *skb) return false; } +/** + * ieee80211_is_ftm - check if frame is FTM response + * @skb: the SKB to check + * Return: whether or not the frame is a valid FTM response action frame + */ static inline bool ieee80211_is_ftm(struct sk_buff *skb) { struct ieee80211_mgmt *mgmt = (void *)skb->data; -- 2.45.0