Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1134662pxb; Wed, 6 Apr 2022 09:30:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZMoLxgFTf7vVNnBn/NFtQfiCme+nOmhIOdnhPqwYTDiEA1F2Nu0UBj4a8D1ANySuFqCV6 X-Received: by 2002:a17:90a:5647:b0:1ca:85d5:2b0 with SMTP id d7-20020a17090a564700b001ca85d502b0mr10776033pji.121.1649262651077; Wed, 06 Apr 2022 09:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649262651; cv=none; d=google.com; s=arc-20160816; b=eQ/UH6JOZS17LQpi+HuzSLViSdn7/PTGUwzJW5DVfVhEYfU2JQ+6govhBZCsMaD66X 8YOcjKqM0XTQw8Ljwznsujz1JJx6Fu+Qu6Jdg/PQF5aq5Vb4LY2c+IMQRJ9y3UeUM+HP RtYjkq7aYjy4jEjuOpsVbfCdaZi8PwtOE6NGqqZgPKnlHoMaQIZBqI1j2hu5LTsoclhA KxaW5Xa/hkKA+F2hG3Nni6Aq50x5beftLkL7s1W4yIk4BJ1D4pRYM2sjcte34PUBM1SQ xtqGyJ+1oJLNuzE29/1ZCDswLNSZLXQGpnSsRKr0B6/QAUrNRZsLJ/hTe0X9KgopUU2K XBLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :message-id:date:cc:to:from; bh=A7ydwcRihrADfZtfpYli7fkM9/UYHO10tYTeDnDp2fo=; b=0XMZlHlw9cUyZHRDEtntGf2l/RUNnFyT8z39rCIyZq13ZrTD7N+SAu1IgMI/lTiL+b lf4JdJBLSQm8iOYw8EKAjlV0DFxpQMT94G4COE7vA5qRKoQd0wqpsLJM+O6XxnsCdC3d isQqWYFflDhtweKX0PLKVTEumjx6Khg3/k0Ww+fJEt8XTct6Yq44/6lYjB9kq6oNH3tf 1QhmH1uPzbrEkMov6JUqlaWv512X4dKxmYKuExCmok8fTDq8ES1KGT99eS76AS3SHjas rB3nFGpPPFy4BzpQnDZmLH6waqTf9IbZ4aY4ux1DRKyVzp9RpteIkoFbYwBupyQ9dzij x3Eg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j10-20020a056a00234a00b004fa69c325d2si18011974pfj.253.2022.04.06.09.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 09:30:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7E56ADE0B6; Wed, 6 Apr 2022 08:37:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236213AbiDFPi7 (ORCPT + 69 others); Wed, 6 Apr 2022 11:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236680AbiDFPhs (ORCPT ); Wed, 6 Apr 2022 11:37:48 -0400 Received: from farmhouse.coelho.fi (paleale.coelho.fi [176.9.41.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 961BC4E387 for ; Wed, 6 Apr 2022 05:52:16 -0700 (PDT) Received: from 91-156-4-241.elisa-laajakaista.fi ([91.156.4.241] helo=kveik.ger.corp.intel.com) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nc4TV-000pov-AS; Wed, 06 Apr 2022 15:09:28 +0300 From: Luca Coelho To: johannes@sipsolutions.net, kvalo@kernel.org Cc: luca@coelho.fi, gregory.greenman@intel.com, linux-wireless@vger.kernel.org Date: Wed, 6 Apr 2022 15:09:17 +0300 Message-Id: <20220406120924.979792-1-luca@coelho.fi> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Subject: [PATCH 0/7] cfg80211/mac80211: updates intended for v5.19 2022-04-06 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Luca Coelho Hi, Here are some patches that implement time measurement timestamps in cfg80211 and mac80211. Then there is an iwlwifi patch on top that depends on them. Since we have a single tree now, I sent the series with both cfg/mac and iwlwifi patches. Let me know if you prefer to have them separately. As usual, I'm pushing this to a pending branch, for kbuild bot, and I will report if there are any issues. Please review. Cheers, Luca. Avraham Stern (7): nl80211: add RX and TX timestamp attributes cfg80211: add a function for reporting TX status with hardware timestamps cfg80211/nl80211: move rx management data into a struct cfg80211: add hardware timestamps to frame RX info ieee80211: add helper functions for detecting TM/FTM frames mac80211: add hardware timestamps for RX and TX iwlwifi: mvm: report hardware timestamps in RX/TX status .../wireless/intel/iwlwifi/fw/api/commands.h | 20 +- .../wireless/intel/iwlwifi/fw/api/datapath.h | 126 ++++++++++++- .../net/wireless/intel/iwlwifi/mvm/Makefile | 2 +- .../net/wireless/intel/iwlwifi/mvm/mac80211.c | 4 + drivers/net/wireless/intel/iwlwifi/mvm/mvm.h | 8 + drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 12 ++ drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 7 +- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 6 + .../wireless/intel/iwlwifi/mvm/time-sync.c | 172 ++++++++++++++++++ .../wireless/intel/iwlwifi/mvm/time-sync.h | 30 +++ drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 4 +- include/linux/ieee80211.h | 54 ++++++ include/net/cfg80211.h | 111 ++++++++++- include/net/mac80211.h | 30 ++- include/uapi/linux/nl80211.h | 27 ++- net/mac80211/rx.c | 32 +++- net/mac80211/status.c | 40 +++- net/wireless/mlme.c | 21 +-- net/wireless/nl80211.c | 69 ++++--- net/wireless/nl80211.h | 5 +- net/wireless/trace.h | 8 +- 21 files changed, 713 insertions(+), 75 deletions(-) create mode 100644 drivers/net/wireless/intel/iwlwifi/mvm/time-sync.c create mode 100644 drivers/net/wireless/intel/iwlwifi/mvm/time-sync.h -- 2.35.1