From patchwork Sun Oct 15 20:53:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 10007279 X-Patchwork-Delegate: kvalo@adurom.com 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 23F9460216 for ; Sun, 15 Oct 2017 20:53:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15B54205A4 for ; Sun, 15 Oct 2017 20:53:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A72E25404; Sun, 15 Oct 2017 20:53:53 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 A3C0A205A4 for ; Sun, 15 Oct 2017 20:53:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751646AbdJOUxv (ORCPT ); Sun, 15 Oct 2017 16:53:51 -0400 Received: from mail-bn3nam01on0050.outbound.protection.outlook.com ([104.47.33.50]:19456 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751394AbdJOUxt (ORCPT ); Sun, 15 Oct 2017 16:53:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantenna.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=SDVaAsIWCu4YSguhRPKEfutxAmgTCEo0BUqbgLXZ450=; b=xrSi2MKe2azYuvTNaeLvv1Cn4AALS3E52fEkio1iwiTenMntUcNXl/TtEt7J/0zb99jMTJ4WeBDV9PVQHiSilsxgnD03v278vBJBm/SMBUlZN4GQItKDLIDKB+81RPnOJEMIgV5XL/zBJhXaGbSIWL5hzg58BggAOsPgiaplDl4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; Received: from bars.quantenna.com (195.182.157.78) by SN1PR05MB1934.namprd05.prod.outlook.com (10.162.132.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.5; Sun, 15 Oct 2017 20:53:46 +0000 From: Sergey Matyukevich To: linux-wireless@vger.kernel.org Cc: Igor Mitsyanko , Avinash Patil , Vasily Ulyanov , Sergey Matyukevich Subject: [PATCH 2/5] qtnfmac: enable registration of more mgmt frames Date: Sun, 15 Oct 2017 23:53:24 +0300 Message-Id: <20171015205327.9966-3-sergey.matyukevich.os@quantenna.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171015205327.9966-1-sergey.matyukevich.os@quantenna.com> References: <20171015205327.9966-1-sergey.matyukevich.os@quantenna.com> MIME-Version: 1.0 X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: VI1P189CA0029.EURP189.PROD.OUTLOOK.COM (10.165.188.42) To SN1PR05MB1934.namprd05.prod.outlook.com (10.162.132.12) X-MS-Office365-Filtering-Correlation-Id: e4115e34-d329-46d1-45a1-08d5140ed4fe X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:SN1PR05MB1934; X-Microsoft-Exchange-Diagnostics: 1; SN1PR05MB1934; 3:1/1uY2/qZCclQxwoaFsPuYYKEfPBheKcxmfJD6yejC4s1i9noxDOWdk1ic4V5XUK+Qi+v2Jb2yRLBYk4sT15fI6wN8pnDHoOvlHfyqVS9fwRR+pJVaH4Ba8LzQ81/SgswIU8aIZUCW8VWqkW+PCYPRl/U2i+Naybjm+7VdgVphXhtpqqom6RVhWvMvSc7ttMAYPRGU0UuJ1Jt7IEuLmC3xL8bVqh6FHnkM1Xai2add5NabYcZlPnx4qd5igBuiX2; 25:eGH7WbkwfCSWOsVt71B1O95PajmegArf6XfEwPg78kgxfevnmQq/KIeLPvcn8s4HOWYziQIh79uw6/k7K38cquJ/TmSvgsber6rlEtYUdujFmT8mtL4iwUK65HjmSMvggWUv8UXjQp/7wlSbE2ZIfEreIOHRg7KaV+DTWjJOr1LLUeiNhBS9tex6o2RY9psPJsEB+niFC91D14GQ+rXZyCr2qvePwR7V4tpPbUvJzMRd5dcANDu1pCnk0eAwcHYRlQIMIRI4HRO7wh4tPs7eQavK+l78TOpNB46Z1x9d2iFyFd5f+Dv6+9aRLoQNEyxt6yhxw5v7PIzMc3p2Kse0vA==; 31:HRnJ/FR7y5XiZUOu7usnkGdSSVDNUP8je/J09olcrEFldkVycHL5bY7Edzn01rd+JY8y9QFlHewkJNiel7yf3u01rFuvZYRk+72JEHrwq73/mJnxc5Z7qT7dDP/B937/RoDE7ngRh65MJdaEJpYXmKnYAyIDXA5WrNd7xm6raUFAHkyNxtOgj2uBKd8a9iuiz2QnED0XrEj8xNAmiLNvVE0t20WUEXqKH2Q31mSCDRY= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PR05MB1934: X-Microsoft-Exchange-Diagnostics: 1; SN1PR05MB1934; 20:sckyeWp98AcykDJQtnxXuCfzMn+wJc/g4A1wjSOPAPigb6+nT22L/auIncXUtIJTpkmsKr9Jd0vyOvp4x6LyyGl6ORRuMl2u81n2nMcVvhj6aLWN5zqeYx8u0DyXnEcPgY0HyojMjbmbknB+7ajZ8eF3EQnRHxRa3Sb4CLD+SSoAd+058amJifD1Dxw956Z0gXrrbdf8HQmJp9kwYd9Ceebmh2vCk+wCTf56WFEZ6BhzbkmQMvy3iP0OhmKL4GUG+aHeqClT0mMbk1MggUqInwc49HzJfpvuB9ryuJG8dZ59JRWwi9hRzjJKxBhUutz3a3ELwRD/Y4a+xnunFIK52pkZx86/Cjz3T3jCiUfOhLblX09DXTs3SocyT9qiu3PsZlH8thMgY4rT8z70EChxrMxhpbCGLg9snLPa++9JwKQ2E8DKq7+ma7TesI938TJfE2ylPWBtnafa7cV8zxtYIz+A0dELXOfKkT/lCYm0RVbSxwJrwUfyJxURz55hVjDe; 4:3WXkjXMYe4ebvUueiQRtmwZdMyeM+RxLrYO1UV62nxpABkLY+nhn9yGCGYqWt0C6KljiRok/P6FwjSOUHdfEhp5910jNZJvhbcWxkCsi/oSosDK0dpzhj8S7/1lL+zVrr7+4CBsSK6jVsje8KFKzsWp/a1ATeuUK0c7htUOUGwfI9q/nkp0GBPfYMEoWiB9CsVpK1ecR/XCqAUnmCpCcaEAC9AcIS+e1UupyTk87sKHsqTdfDhxaVV9JMXknqQHdBrDsHwhQK3Np4bp2/rt7ocWVcynlEf+SZMBbNaRIcX4= X-Exchange-Antispam-Report-Test: UriScan:(72170088055959); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123555025)(20161123562025)(201703131423075)(201703061421075)(20161123560025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR05MB1934; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR05MB1934; X-Forefront-PRVS: 046164D5C4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(189002)(199003)(4326008)(2906002)(5003940100001)(2361001)(2351001)(16586007)(53936002)(47776003)(69596002)(81156014)(5660300001)(106356001)(97736004)(105586002)(54906003)(8936002)(53416004)(50226002)(8676002)(81166006)(33646002)(6116002)(189998001)(101416001)(48376002)(1076002)(103116003)(66066001)(305945005)(2950100002)(86362001)(16526018)(68736007)(6916009)(6486002)(36756003)(3846002)(6666003)(25786009)(508600001)(50986999)(76176999)(7736002)(107886003)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR05MB1934; H:bars.quantenna.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: quantenna.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR05MB1934; 23:GrpMTMz5vGpviwU8vconkOcF0D15/TrbTYAvQvPV5?= =?us-ascii?Q?BtNNv/SRM0bj1SZbRDSzlk5PZP8LyK9f0N1SaH7HHkHKKxp8et9hgA8bxWye?= =?us-ascii?Q?Jtpn+6JIiKt0SGBH7v27QWsK5k2Uzo7DXiyFfxXWXpBROsOA6vcWZFGqcXng?= =?us-ascii?Q?kj5JcufBKKbTL9oPKijSGzcSt5IDFms6MNjRQAOlETWklKx4SZgXY3erFQ67?= =?us-ascii?Q?VhnsDJ1HhJfZ7rtKaBV82V5MJUqZ8nz1OgGAFoDs7t3I5TT2WTzHegozgfHy?= =?us-ascii?Q?/23Bl0ML1Js0+IHsu4IF+2cDwjURjSLM438AzJ0pOfjNZeF+xu1mvgBkHkJr?= =?us-ascii?Q?h1b5BIKUAiBx5HyH9f/lcRHnunJndLoPFPpPXEdn6Q5OWfXMApHVplwMjt/Y?= =?us-ascii?Q?BCg1G9tYha3EwTURu9Jts1ppQ4vQxrKu0CTTPVv7W/f3WZhR9Wo/XenFD0Z4?= =?us-ascii?Q?9LFVsPBoOy9mX1xBztN/RaICmUkhDyqDwj3LNb+mk5T33ciwbMRnpLYrW4kF?= =?us-ascii?Q?gMyr2d/u/owL9vo0DSwn5QGYYTz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KJRSHxeJRKcc5DjpqjN8cXZJGXuSrLgWSPj9J0J7W8vDWSI2yKVwr29GyE7St+/GmCpoQJ3Z1Wg==; 5:+N4cMGYr9vonH8q2/QLlBQKX/eunoEpODtOVIMU+LyvKbSYbSUyfMh7Vg+9NzCyAHGZ87bWJVOrI3zOrpXk0I8/kDDu9OqtbnphGpwsqCdOWk5kSraVtZbQE58Lc43nCCZ6q5Op4vXl0m4Hqx+leAfZpdL6N3HJgbfoI5xqnEUw=; 24:5vjARD1d1vLM+Gin1VrOVfhjjKhMzcCkyeYZtliOcu/amUQCqG36KrU4tiyDnZpNCd/1w2rH4K8TWNGM7d1hkpMJ85iTuTW3mrnSfMPscio=; 7:MgC2Vcjd3F1UjlNju6MTluAVYJavuQryEZK4tFv4WT16wOdDxHibRM/cszoYHdmy5CmggbEjpDfmJd7WhvLIMeWZFfDY7dB30Om01Z6Zd+VZh+ii60GzXToSYJyxu8vP0T2X9vFRNWm+DN45kJhoj5NNDWJzu9wBDEo/7aeivXXo5+36xsx65vNnDrfkrQelzlxsmvOUipQdA+8mU6axHk1xSaPxfxsthHxjrjIX7bM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2017 20:53:46.5511 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR05MB1934 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 Support registration for more mgmt frame types for debug and monitoring purposes. Signed-off-by: Sergey Matyukevich --- drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c index 028bed1acd82..b4c2fa7934fd 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -73,7 +73,10 @@ qtnf_mgmt_stypes[NUM_NL80211_IFTYPES] = { [NL80211_IFTYPE_AP] = { .tx = BIT(IEEE80211_STYPE_ACTION >> 4), .rx = BIT(IEEE80211_STYPE_ACTION >> 4) | - BIT(IEEE80211_STYPE_PROBE_REQ >> 4), + BIT(IEEE80211_STYPE_PROBE_REQ >> 4) | + BIT(IEEE80211_STYPE_ASSOC_REQ >> 4) | + BIT(IEEE80211_STYPE_REASSOC_REQ >> 4) | + BIT(IEEE80211_STYPE_AUTH >> 4), }, }; @@ -349,6 +352,13 @@ qtnf_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev, return; switch (frame_type & IEEE80211_FCTL_STYPE) { + case IEEE80211_STYPE_REASSOC_REQ: + case IEEE80211_STYPE_ASSOC_REQ: + qlink_frame_type = QLINK_MGMT_FRAME_ASSOC_REQ; + break; + case IEEE80211_STYPE_AUTH: + qlink_frame_type = QLINK_MGMT_FRAME_AUTH; + break; case IEEE80211_STYPE_PROBE_REQ: qlink_frame_type = QLINK_MGMT_FRAME_PROBE_REQ; break;