From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86ADAC6FD19 for ; Mon, 13 Mar 2023 07:55:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230251AbjCMHzY (ORCPT ); Mon, 13 Mar 2023 03:55:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjCMHyx (ORCPT ); Mon, 13 Mar 2023 03:54:53 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9555A28E99 for ; Mon, 13 Mar 2023 00:53:35 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id ch1-20020a0569020b0100b00b3cc5b4fa9dso2328123ybb.12 for ; Mon, 13 Mar 2023 00:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1678694014; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=z24uQpiavHAngW50bCNl8uTNwZ8fleLlAkzaTnRscxM=; b=OQgkqx6X5V6rKpLh9Xsn9DoKoy3YdupoYxQjYwUzt8/rchFTZ0uRVR6TN4N/BEbmC+ EVvCc0MHcStVh7WaOaMdFbdq2QIxlistUOiGDAayeAVaE8sV/WECjwI6epdz0nzmpJWc Y35whQyJIwewum8GJkoHAPBQiN4QlJqcocAjXCdv2rNA5lJcMR6gy38YeUOo9uDelUPI FQt1a9zTGCKejfG0Bq5xP23oI3ja54W2TmKQ7BYyVrSYdF0+na6apX1nQFlbWpl9n5hC AxT0O9i6ltGnVmfALuwHFhy7t2ekRVJNW9I4WTZj6i420aBLUDUX6RTLi5ZrpqxZA0fH MQEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678694014; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=z24uQpiavHAngW50bCNl8uTNwZ8fleLlAkzaTnRscxM=; b=vvA8mpC/6z3KQkfDDkEkzeAKJu4gOtPpkqZoqetXGqs7JlesFGvqWdGVgCk2ASX1mG 0xzXIVG7fb4Oc2D8vXKam0t8sQlLpS69y7R3ZWFBS6NwHiED36oEiSCeFsnhyq/pCm5k Gii2i7OH88jndSkc5wfAqT9E5WoZ7pDFVvsWdWTA23G285jYWHIHvCbH44lHa/EEuBl9 /vHjxAPPlkffjlwIbgUUoqGwN5hu20ZdhCQ6K6hHyLjKYOQpDh5rLe6lDa+REAx1gTtR JqkEbUaEgGlcK9cU+Y6XncX+/SXf1NJUKDL+SkR2IBpxQbkYR2a8e5xeF+BlL1ViFpPh bPzA== X-Gm-Message-State: AO0yUKVXn7HCwYy7noGjT+dQBeZJS5ZI3N0nsbdoJzpGNHAqAC1/oY9W OKF9W30gC3vdiARpnU8Rxa4QMd6fWhg= X-Google-Smtp-Source: AK7set/E2prpWdYGCw6fFLpCJdo1zsAkbWFEB/WiRTPvMTHE1CeErQCVUCKsRcZ5ECuTKwfp2AjpxwjCalc= X-Received: from jaewan1.c.googlers.com ([fda3:e722:ac3:cc00:3:22c1:c0a8:e59]) (user=jaewan job=sendgmr) by 2002:a5b:1cb:0:b0:a6b:bc64:a0af with SMTP id f11-20020a5b01cb000000b00a6bbc64a0afmr20648253ybp.4.1678694013992; Mon, 13 Mar 2023 00:53:33 -0700 (PDT) Date: Mon, 13 Mar 2023 07:53:21 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog Message-ID: <20230313075326.3594869-1-jaewan@google.com> Subject: [PATCH v9 0/5] mac80211_hwsim: Add PMSR support From: Jaewan Kim To: gregkh@linuxfoundation.org, johannes@sipsolutions.net, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: kernel-team@android.com, adelva@google.com, Jaewan Kim Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Dear Kernel maintainers, First of all, thank you for spending your precious time for reviewing my changes. Let me propose series of patches for adding PMSR support in the mac80211_hwsim. PMSR (peer measurement) is generalized measurement between STAs, and currently FTM (fine time measurement or flight time measurement) is the one and only measurement. FTM measures the RTT (round trip time) and FTM can be used to measure distances between two STAs. RTT is often referred as 'measuring distance' as well. Kernel had already defined protocols for PMSR in the include/uapi/linux/nl80211.h and relevant parsing/sending code are in the net/wireless/pmsr.c, but they are only used in intel's iwlwifi driver. Patchset is tested with iw tool on Virtual Android device (a.k.a. Cuttlefish). Hope this explains my changes. Many Thanks, -- V8 -> V9: Removed any wrong words for patch. Changed to reject unknown PMSR types. V7 -> V8: Separated patch for exporting nl80211_send_chandef V6 -> V7: Split 'mac80211_hwsim: handle FTM requests with virtio' with three pieces V5 -> V6: Added per patch change history. V4 -> V5: Fixed style V3 -> V4: Added detailed explanation to cover letter and per patch commit messages, includes explanation of PMSR and FTM. Also fixed memory leak. V1 -> V3: Initial commits (include resends) Jaewan Kim (5): mac80211_hwsim: add PMSR capability support wifi: nl80211: make nl80211_send_chandef non-static mac80211_hwsim: add PMSR request support via virtio mac80211_hwsim: add PMSR abort support via virtio mac80211_hwsim: add PMSR report support via virtio drivers/net/wireless/mac80211_hwsim.c | 776 +++++++++++++++++++++++++- drivers/net/wireless/mac80211_hwsim.h | 58 ++ include/net/cfg80211.h | 9 + net/wireless/nl80211.c | 4 +- 4 files changed, 835 insertions(+), 12 deletions(-) -- 2.40.0.rc1.284.g88254d51c5-goog