Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp543503ybc; Fri, 22 Nov 2019 09:10:27 -0800 (PST) X-Google-Smtp-Source: APXvYqzmtT5cUvJe1xS2Mmp7y38oQnFnDrEYXv6/LwAfcDsEGyUJmbUZ1xoNo/KGk/iaKckwxY9Q X-Received: by 2002:a17:906:27ca:: with SMTP id k10mr22487329ejc.242.1574442627662; Fri, 22 Nov 2019 09:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574442627; cv=none; d=google.com; s=arc-20160816; b=d/8+8VsKhDdcy3yEa5EmzB3Bmapy/S4fwjASYQBEwi/lH4ViwiltZhnpBaogXG8pCJ /cZFlKeVPq2NJcNerXAFj1XUOvl1TD800aRITJSq7likkKK7MNR/CDD2tKtA7ELWMThf JBSdMAhT02FL/Oi3rTms/ImJc/3L2I49N5FvTIeiT0lOJwUy4qixKQ0h9uGAlZD0ZNGj Wd0COJP0PV3VlvH3RUG9YzRAkVC571fDhLPnU6Mb8F6CBf0vbb7QzDoZyPE9M4gUBWIV vFrb5k+rt87UyVXgQ1fCGNC80dQUZlUcK+iPfyWDCi9P3b7c/kF1Sq8ddbPXpEn4jVll UsOA== 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=nBL7yEnfFRBjKMsfY8JZJpowWQgkYbrO61ezqW04xzVJMnfjbaaXiW0iQEUz/KscRS +DJDlxr2BkpXQO9+kA4z7RJJssNHyK0XKqXrfum9mLgTJRtOV92IHEAgude7QgPrrZ4n a9KfWH5k+d4nCb22Mp9Iew+ZSa2PgSYS+BF+P7LXTx73a9Fk2wld/8/aSP8qlocGQuQC hZYfRYgBc3mRryF2cIZqiRSYZopXFCCqeJDuzv1S7zgmB1qChpnbCkYHqYcEytYT0yX1 8cNUtuIty97Hbi0n8tJOLaz7TEpEQHgXdKFlU70DUo50kUVPDNeEZAX8JoznxeeoBNWI jXow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FSB9ixAD; 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 i13si4912147ejj.367.2019.11.22.09.09.44; Fri, 22 Nov 2019 09:10:27 -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=FSB9ixAD; 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 S1726686AbfKVRJN (ORCPT + 99 others); Fri, 22 Nov 2019 12:09:13 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:41161 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfKVRJN (ORCPT ); Fri, 22 Nov 2019 12:09:13 -0500 Received: by mail-pj1-f65.google.com with SMTP id gc1so3285124pjb.8 for ; Fri, 22 Nov 2019 09:09:12 -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=FSB9ixAD74wEJscfeuQGF2SI89/+bdBgZ/bNswr7AjGjIE1qDolwxuck1XIs7wf8vJ ka0UApVgmwdjcxrPxnvm+x4l6fkhedHqYZJ6qZKQSfOJxjle97oL99guJXjmhY+4A0Sw vteWXcOLKt51duo8bLktBPp9SEka/J0bHJqjXFjNczlLYZI2d/yZ4SX88shYSHI31QhM HjEUqYY0+NiUd2pOhpxD/k1xDPa5X1B+tGJahV6rpbgjciVaz3KIwr1Q+XyTZ2X9TqPE bPuZG8qvGKJskVjzHT89HM7ur9/n/WostnkeG9Rxnn6RBt6f2TvnvnsRMO8eq8qzJ9IS SuLA== 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=AOOH+2zw1KIHnRUGD70BfqExcmsNQmOxpa2jA+FTBvnmj4jWmMbVVP6Y9OFsXJpsJ6 86DS5D0Zpu0KeVYqrmnP8fuzV/yhqWwdVo0kBY8unFSXuVBld+2WTyCbbuHY+y8oXoBr fbjg/xLQ5tF6MNnzv1RSFRmSAUuUpQPtST3wYhyIWtGCsEUht4yQ8Y8Md07dH4yAhAzU JVd7OeocXFpywnoS4Peb1FF1ks0CLClAtyv5j9yRkLrWnNZnCDipscfu6HG3DuUg2rdb 1Vk2nuQr8Wd+tt6iDNcSMpJRbzbddqGLNzaS9dv4kjq6u2Wf9eM4lfvtFi4O34pVNJHT /Zsw== X-Gm-Message-State: APjAAAUXvzk88tUBAqdkXJOokCB20JSW4/VGMhwDur4F5jkeXuejRzvn KiRMW6Ce+WxnHbC2OQB1M/T/R+SB X-Received: by 2002:a17:90a:1446:: with SMTP id j64mr20559449pja.142.1574442551843; Fri, 22 Nov 2019 09:09:11 -0800 (PST) Received: from jprestwo-test.jf.intel.com ([134.134.139.76]) by smtp.gmail.com with ESMTPSA id c2sm7834386pfn.55.2019.11.22.09.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2019 09:09:11 -0800 (PST) From: James Prestwood To: linux-wireless@vger.kernel.org Cc: James Prestwood Subject: [PATCH v2 1/2] mac80211_hwsim: enable parent TSF feature Date: Fri, 22 Nov 2019 09:06:11 -0800 Message-Id: <20191122170612.8123-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