From patchwork Wed Jan 17 07:31:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamizh chelvam X-Patchwork-Id: 10168679 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7EA65601D3 for ; Wed, 17 Jan 2018 07:34:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B88326255 for ; Wed, 17 Jan 2018 07:34:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 601C328179; Wed, 17 Jan 2018 07:34:39 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 0F59026255 for ; Wed, 17 Jan 2018 07:34:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752380AbeAQHeh (ORCPT ); Wed, 17 Jan 2018 02:34:37 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:33014 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752358AbeAQHeg (ORCPT ); Wed, 17 Jan 2018 02:34:36 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 08EEF60A08; Wed, 17 Jan 2018 07:34:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516174476; bh=4ddh8+uBfgj21O8fwAJfshkB5uapjJy9Cw0u/iRsu8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XbwLOFbMhUbawqSaYPXwFhkphYHRMs01nWzKguyTuOl0FYC4SjL93RgXa7bt3wesb qMTPOrBZ/1rh5xHhmop+tB0GoI09dJK5pz+5J/ftDHO8oG+qisUSjC0UJbT23GN8v5 WzioGWNsUn+6o4Z+mrlUcYGBGGgoQuu/TupRVwcg= Received: from cheath10p342229-lin.qca.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tamizhr@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 36F4F605A4; Wed, 17 Jan 2018 07:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516174475; bh=4ddh8+uBfgj21O8fwAJfshkB5uapjJy9Cw0u/iRsu8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EHvBTg1h4BMDVlEhIbxsW11mXBw8UdQOdWzuNUZTEhgsyjPfYQnaU71dXNT/SbKGF nJNd8fGa5+eeHZKme7AfgIL2P3BZt0ghkFJxCQo5L9ZB0lqlUDlDJLY9ks/La43rvv 2oMTGhFsE2XvsxnKy7gK5crFipxy4maANTfJshew= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 36F4F605A4 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=tamizhr@codeaurora.org From: tamizhr@codeaurora.org To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, tamizhr@qti.qualcomm.com, Pradeep Kumar Chitrapu , Tamizh chelvam Subject: [PATCH 2/4] cfg80211: enable setting cqm config for AP mode Date: Wed, 17 Jan 2018 13:01:14 +0530 Message-Id: <1516174276-16789-3-git-send-email-tamizhr@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516174276-16789-1-git-send-email-tamizhr@codeaurora.org> References: <1516174276-16789-1-git-send-email-tamizhr@codeaurora.org> 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 From: Pradeep Kumar Chitrapu Enable connection monitoring for AP mode which makes it possible to track signal strength of connected stations. Co-Developed-by: Tamizh Chelvam Signed-off-by: Pradeep Kumar Chitrapu Signed-off-by: Tamizh chelvam --- net/wireless/nl80211.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index ce5ee6f..3bb8eaa 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -9884,7 +9884,10 @@ static int nl80211_set_cqm_rssi(struct genl_info *info, } if (wdev->iftype != NL80211_IFTYPE_STATION && - wdev->iftype != NL80211_IFTYPE_P2P_CLIENT) + wdev->iftype != NL80211_IFTYPE_P2P_CLIENT && + wdev->iftype != NL80211_IFTYPE_AP && + wdev->iftype != NL80211_IFTYPE_P2P_GO && + wdev->iftype != NL80211_IFTYPE_AP_VLAN) return -EOPNOTSUPP; wdev_lock(wdev);