From patchwork Fri Sep 21 00:30:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pradeep Kumar Chitrapu X-Patchwork-Id: 10608881 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 23C8814BD for ; Fri, 21 Sep 2018 00:30:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09AE02DFE3 for ; Fri, 21 Sep 2018 00:30:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1C192E013; Fri, 21 Sep 2018 00:30:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2B572DFE3 for ; Fri, 21 Sep 2018 00:30:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726057AbeIUGQ2 (ORCPT ); Fri, 21 Sep 2018 02:16:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41548 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbeIUGQ2 (ORCPT ); Fri, 21 Sep 2018 02:16:28 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7015660CED; Fri, 21 Sep 2018 00:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537489818; bh=B/n/xxujVFFmtdhQkCO9dmNB9pJJj7ZBGR16coPTd60=; h=From:To:Cc:Subject:Date:From; b=hZehhkwVhC4citoeMarkOEUvhURkOhMO6iI2EW0DB31ookMfYK8moQ8hH2QnP2m+C 1eWYS73IPtX+mievIYh8Zgi70KpQC3CKv66k7os6p3/ZqJkKMbp3bb8Pev712kInWF DO78hnIatcdD/xSDMGsBwls2/JdwTu5+TFEuqCRk= Received: from pradeepc-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pradeepc@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7237960CED; Fri, 21 Sep 2018 00:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537489817; bh=B/n/xxujVFFmtdhQkCO9dmNB9pJJj7ZBGR16coPTd60=; h=From:To:Cc:Subject:Date:From; b=WBoyuKH1ZD5udGQzWwR6afR8Laird2hhkdCNVxSrZAwVIkfe4rEo1QPUltsryZxAF illvU43tgse34Td4cmhhIZPZ98bqAss4MzrMbBj6uHNE8D0lByRm8ZPYqnBg5qEWpR l7j1Q0miRGCxG29noElhv8GMwtQHEsCFYI6sWmMo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7237960CED Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=pradeepc@codeaurora.org From: Pradeep Kumar Chitrapu To: Johannes Berg , ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Johannes Berg , David Spinadel , Pradeep Kumar Chitrapu Subject: [PATCH v5 0/3] support ftm responder configuration/statistics Date: Thu, 20 Sep 2018 17:30:08 -0700 Message-Id: <1537489811-5752-1-git-send-email-pradeepc@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently ftm_responder parameter in hostapd.conf is only used for fine timing measurement (FTM) capability advertisement and actual control of the functionality is with low-level device/driver. This leads to confusion to the user when the capability advertisement is different from actual FTM responder functionality. For example, FTM responder capability advertisement is set to 'enabled', but the functionality is disabled or not supported by the driver. The patch set allows userspace to enable FTM responder functionality with the addition of new Netlink flag attribute NL80211_ATTR_FTM_RESPONDER with configurable lci/civic ocation parameters. Also extended feature flag is added for the drivers to advertise the support. Setting the flag to enable FTM responder would imply that AP responds to all FTM requests. Default is considered to be disabled. changes in V5: - changed NL80211_ATTR_FTM_RESPONDER to nested attribute - renamed 'civic' parameter to 'civicloc'. changes in V4: - no changes. Rebased and resending as v4 as v3 patches were dropped for unknown reason changes in V3: - fixed the ambiguous ftm responder disable case to be not supported changes in V2: - updated version number - rebased patches Johannes Berg, Pradeep Kumar Chitrapu (1): cfg80211: support FTM responder configuration/statistics David Spinadel, Johannes Berg, Pradeep Kumar Chitrapu (1): mac80211: support FTM responder configuration/statistics Pradeep Kumar Chitrapu (1): ath10k: Add support to configure ftm responder role drivers/net/wireless/ath/ath10k/core.h | 1 + drivers/net/wireless/ath/ath10k/mac.c | 28 +++++++ drivers/net/wireless/ath/ath10k/wmi.c | 4 + drivers/net/wireless/ath/ath10k/wmi.h | 10 +++ include/net/cfg80211.h | 66 ++++++++++++++++ include/net/mac80211.h | 13 ++++ include/uapi/linux/nl80211.h | 90 ++++++++++++++++++++++ net/mac80211/cfg.c | 84 +++++++++++++++++++++ net/mac80211/driver-ops.h | 16 ++++ net/mac80211/trace.h | 23 ++++++ net/mac80211/util.c | 3 + net/wireless/nl80211.c | 134 +++++++++++++++++++++++++++++++-- net/wireless/rdev-ops.h | 15 ++++ net/wireless/trace.h | 44 +++++++++++ 14 files changed, 526 insertions(+), 5 deletions(-)