From patchwork Wed Aug 9 23:41:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pradeep Kumar Chitrapu X-Patchwork-Id: 9892431 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 45C5460363 for ; Wed, 9 Aug 2017 23:41:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40FFA28988 for ; Wed, 9 Aug 2017 23:41:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 354DA289A8; Wed, 9 Aug 2017 23:41:56 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 E8F0428988 for ; Wed, 9 Aug 2017 23:41:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbdHIXlv (ORCPT ); Wed, 9 Aug 2017 19:41:51 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:4702 "EHLO alexa-out-lv-02.qualcomm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752227AbdHIXlv (ORCPT ); Wed, 9 Aug 2017 19:41:51 -0400 X-IronPort-AV: E=Sophos;i="5.41,349,1498546800"; d="scan'208";a="2889185" Received: from ironmsg04-r-new.qualcomm.com (HELO Ironmsg04-R.qualcomm.com) ([10.53.140.108]) by alexa-out-lv-02.qualcomm.com with ESMTP; 09 Aug 2017 16:41:50 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8617"; a="1471625145" X-MGA-submission: =?us-ascii?q?MDGt3nmx0EvMA50nH4O+dG9K/EfqC0//6Cu3HH?= =?us-ascii?q?a5YSAfb1GcWHoGERmBHDHTnQiPRMZcbsbwRy1znjFC92DFoyTRH+mbnV?= =?us-ascii?q?NTuCY2xxuXxuXIxBxpUsOdWDCi7ak+nz4W0W68RRTXTmuCBjAIjlu+aA?= =?us-ascii?q?/1?= Received: from pradeepc-linux.qualcomm.com ([10.234.212.168]) by Ironmsg04-R.qualcomm.com with ESMTP; 09 Aug 2017 16:41:49 -0700 Received: by pradeepc-linux.qualcomm.com (Postfix, from userid 204078) id 3412E1D5C; Wed, 9 Aug 2017 16:41:49 -0700 (PDT) From: Pradeep Kumar Chitrapu To: Johannes Berg Cc: Pradeep Kumar Chitrapu , linux-wireless@vger.kernel.org Subject: [PATCH 1/2] cfg80211: enable setting cqm config for AP mode Date: Wed, 9 Aug 2017 16:41:36 -0700 Message-Id: <1502322097-29746-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 Enable connection monitoring for AP mode which makes it possible to track signal strength of connected stations. Signed-off-by: Pradeep Kumar Chitrapu --- net/wireless/nl80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index bafab07530d6..beda9c62f74a 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -9784,7 +9784,8 @@ 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) return -EOPNOTSUPP; wdev_lock(wdev);