From patchwork Tue Sep 11 21:44:36 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: 10596359 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 9B1C0109C for ; Tue, 11 Sep 2018 21:45:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 897662968D for ; Tue, 11 Sep 2018 21:45:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D625298B9; Tue, 11 Sep 2018 21:45:36 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0AF682968D for ; Tue, 11 Sep 2018 21:45:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=goW+a9aZzx0BCwAkCHUq5NV1KnGhIorbbyA8QSSkI00=; b=GGX ok2ib5PHgP1TNDSfcKgi1AcAQbLj7euj7jFN8+QbJa6xEaAZuO2RfpVaKjLAtHfBFeLG4yILpfwi8 h5U2wF3LvBWlxuU5kUcNfJoxVYJCfyiPWFsEfYILSa9XAy5GsxXwo4ByL5lPsJdVpxf3eBKMDj68i sQQRjXvtlqAUvxVZkgQ7+rDfR1xYGfIn1hzdLSwYzRU0MFvHWYDW8MUqGpq0/oetvZQGzBCVgH1NH Bo5BUKGo9cOqJqnLkwVX4zGPshy1bJjySdeQml+CU26WQsJvGMbpApRAQE9qgSKPLbZzOy/B5cJnh B5Mdb7qoSdiGSa0gsIICVz0XgGQR9vg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzqTL-0000fy-6P; Tue, 11 Sep 2018 21:45:23 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzqTH-00082y-Jo for ath10k@lists.infradead.org; Tue, 11 Sep 2018 21:45:21 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8B58D60997; Tue, 11 Sep 2018 21:45:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536702308; bh=JGZ4gYsaI15iHp8/BXaJVf+8sKC0E1/THhZIhfT8Qoc=; h=From:To:Cc:Subject:Date:From; b=eHlqEnoaLep9rHSfTIdhRZ7SUm+du79VgQjbw83ZR4Nb9wftzdk0E2HvdhVV2D1xF hrJ5hI0nCRsIsikVge9THNBbJ9p6Ofwj83kJRY82Vba2soUopkqx1PjUzUJy6/Cj48 U3nuRDq/gFLKfN22XiE4IJfomJwJjVDGR0c8tmEM= 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 AC62E6053B; Tue, 11 Sep 2018 21:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536702308; bh=JGZ4gYsaI15iHp8/BXaJVf+8sKC0E1/THhZIhfT8Qoc=; h=From:To:Cc:Subject:Date:From; b=eHlqEnoaLep9rHSfTIdhRZ7SUm+du79VgQjbw83ZR4Nb9wftzdk0E2HvdhVV2D1xF hrJ5hI0nCRsIsikVge9THNBbJ9p6Ofwj83kJRY82Vba2soUopkqx1PjUzUJy6/Cj48 U3nuRDq/gFLKfN22XiE4IJfomJwJjVDGR0c8tmEM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AC62E6053B 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 Subject: [PATCH v4 0/3] support ftm responder configuration/statistics Date: Tue, 11 Sep 2018 14:44:36 -0700 Message-Id: <1536702279-7643-1-git-send-email-pradeepc@codeaurora.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180911_144519_695205_8D32242A X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pradeep Kumar Chitrapu , linux-wireless@vger.kernel.org, David Spinadel , Johannes Berg MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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 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 | 81 +++++++++++++++++++++ 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 | 124 +++++++++++++++++++++++++++++++-- net/wireless/rdev-ops.h | 15 ++++ net/wireless/trace.h | 44 ++++++++++++ 14 files changed, 507 insertions(+), 5 deletions(-)