Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp554153ybc; Fri, 22 Nov 2019 09:19:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxFB5AXk8+KsJBDgRFccS0qoLgdcjxJ1/RuxeopXKWPVJWrzOSFB0CAWBMK2tVZdtaGDocC X-Received: by 2002:a50:b63b:: with SMTP id b56mr2412626ede.165.1574443171545; Fri, 22 Nov 2019 09:19:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574443171; cv=none; d=google.com; s=arc-20160816; b=NkBfR130DKu1Ausipfd3bi684ojvQOfd0V+Tznj6CW5gB3cNLagRQEgIquBW/tkXaM r6eayV2k1hg/MfdoWQTyeA5Dn6uFiJGYXzUoNRDgAfF21TU1yP/n/ws4fPAOcgWxvraa IvMIFXX6ojWB38qGrvF0k5fWOCLlXW+OguILN/6aS96I7s4+G4lPrx+qvO1YUMozeJKy KFxXcn8OqzrqVe5Sey0cOu5NsxxoGAOtxzqO+BthurcT0bp/Fu3HPvBIbrlN/QpNHasU qEYw99VEyMp2ejp3npBUrRvAMHkmsNhS3XWPFVGBwtbN4fKRLy5fWBmesMjDvP1qFr83 swCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=6+LL8qsLHJX2/gsW2qsgwafSTmgjosS9b/ig7Inn4hU=; b=WB6j5NPSk1WzL9QMyYBheukdvBrcceuFg/HcsoakOtzpF3YiqfabnJKuLINlqQnxKD oAOoIL06qsfdFtBH+upf5LjrC80SRb3ntP9Kd1qKDjTrbhZavDUwi1vzAcwfjzvy1YGQ zK4W37N26neeHu5GrE2JQki0IJwmxzIyFzvtyoEBS6NfS4Gnlw0OinFVKAMavs59f0sL peF05KCsWBgJRaTCz8bAalBcYGkYMjk5QHSStVQ49Fx8YiFKeDL3xv2Ncrt3TpUJXPF2 R9FxSicqMNdJRDEj6v3znvg2netGhze3zs6cB+xKQbgup/wqJN2hSC4LoJoFXFCte0MW nOxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="e8BrkZ8/"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si6270784eda.322.2019.11.22.09.19.06; Fri, 22 Nov 2019 09:19:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="e8BrkZ8/"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbfKVRRC (ORCPT + 99 others); Fri, 22 Nov 2019 12:17:02 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39538 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbfKVRRC (ORCPT ); Fri, 22 Nov 2019 12:17:02 -0500 Received: by mail-pg1-f196.google.com with SMTP id b137so1314956pga.6 for ; Fri, 22 Nov 2019 09:17:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=6+LL8qsLHJX2/gsW2qsgwafSTmgjosS9b/ig7Inn4hU=; b=e8BrkZ8/YCsuoD4K1DwERM6hGLEHvmbT6BR3qxdP36+HdJ9mPgnnOtz/TweKJr+JRJ K+ZyKkg31vxIOiDQSAd/E8bcHqeRH9d/kb5yzfH7KKS+tZDAC6T7tdD/iT/5L7xHhh49 12CJjBxv+wQhcGjwBVJrTa0eWy4u/4m0YRxcmvYZoRgqOPgKp5GnyUa0OkPjwawxLJr/ VXmWXU2ndF+W0FAKDD9mHMkV1RGN8NaXacozpGLTeSk2Nmp1jRlGy5hkvCRmteCTV42a 3+ZyN+BE8E1VHodYjS6CM/VKiBjy0+iR1jeCsNtsP2UYNVKZ9JgTL9FCBhEH6YGAu9H7 r57g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6+LL8qsLHJX2/gsW2qsgwafSTmgjosS9b/ig7Inn4hU=; b=jzH+Oziqi4AMqvErZpGTNVMhQSxIK8iQKVtTjnGp9QR4tEermIPmESwxbuftN6FtuQ BAjA7el7R6Ts6S35BKuAKQ7+lALnTiSmkHG1f0HwWD31elx3CyyyleGSF/C6bcjnahNX TYd0TI/9QYVGz2MtF2Mnf/8/Q5gXPo2oxyaqtGyc573qxi/4e7JVbWB/e75IZDLjyGuy ORk8GZqiT1Z2Dh6uqpBHdyBkGq1oPix2x6WKIDiCq15cVeGjImgSZ80CSUGmWRbrNPOw NX1pLcz6uEAFDdK0fIY9pr7Nbl0r7FHvzo9umR1yI5Nf65+HstWlz2QYl5FnLvM9Z64k USTw== X-Gm-Message-State: APjAAAVkCATevR3NaHSWJkzpmoVRbGETe1WBGbEttt+ZaxKlMZr5UO8T 3W56BlWoB8QQNtcrX5P2lCqlKH7p X-Received: by 2002:a65:6081:: with SMTP id t1mr16831267pgu.391.1574443019623; Fri, 22 Nov 2019 09:16:59 -0800 (PST) Received: from jprestwo-test.jf.intel.com ([134.134.139.76]) by smtp.gmail.com with ESMTPSA id b13sm7406030pgj.28.2019.11.22.09.16.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2019 09:16:59 -0800 (PST) From: James Prestwood To: linux-wireless@vger.kernel.org Cc: James Prestwood Subject: [PATCH v3 1/2] mac80211_hwsim: enable parent TSF feature Date: Fri, 22 Nov 2019 09:14:00 -0800 Message-Id: <20191122171401.8788-1-prestwoj@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Support for this is already in nl80211, and some code paths in mac80211_hwsim already set the rx_status to allow the parent TSF value to be sent to user space. Signed-off-by: James Prestwood --- drivers/net/wireless/mac80211_hwsim.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 772e54f0696f..e9bc599481d4 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -2825,6 +2825,7 @@ static int mac80211_hwsim_new_radio(struct genl_info *info, NL80211_FEATURE_DYNAMIC_SMPS | NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR; wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_VHT_IBSS); + wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_BSS_PARENT_TSF); hw->wiphy->interface_modes = param->iftypes; -- 2.17.1