From patchwork Mon Oct 30 10:13:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Matyukevich X-Patchwork-Id: 10032275 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 3602C600C5 for ; Mon, 30 Oct 2017 10:14:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2423C28818 for ; Mon, 30 Oct 2017 10:14:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18CF02881A; Mon, 30 Oct 2017 10:14:18 +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 B0DA52881B for ; Mon, 30 Oct 2017 10:14:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932556AbdJ3KOQ (ORCPT ); Mon, 30 Oct 2017 06:14:16 -0400 Received: from mail-bl2nam02on0063.outbound.protection.outlook.com ([104.47.38.63]:27360 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932549AbdJ3KON (ORCPT ); Mon, 30 Oct 2017 06:14:13 -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=QcBGrPaqHzPQPF1lMSn79loZN+jAhhk3wGWQPfLVSKU=; b=qhjWwFZkVWU4S3LZbsinP6XLZ3p4r4zXRqE++5S5A3sPWNh/iIrYEsUFyr+ETTMBOPNQ+AbeYOBX01CcuMMyeM+31Jp8SjWqTddfRIlgKcFbqxAOzm9ey+LGhuPdE3BrPwYu7uQlGOLRfg7mj/3DyF2ZPGgnhvIcQIg8mmu+cjY= Received: from bars.quantenna.com (195.182.157.78) by CY1PR05MB1930.namprd05.prod.outlook.com (10.162.216.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.4; Mon, 30 Oct 2017 10:14:10 +0000 From: Sergey Matyukevich To: linux-wireless@vger.kernel.org Cc: Igor Mitsyanko , Avinash Patil , Vasily Ulyanov , Sergey Matyukevich Subject: [PATCH v2 2/5] qtnfmac: enable registration of more mgmt frames Date: Mon, 30 Oct 2017 13:13:47 +0300 Message-Id: <20171030101350.21251-3-sergey.matyukevich.os@quantenna.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171030101350.21251-1-sergey.matyukevich.os@quantenna.com> References: <20171030101350.21251-1-sergey.matyukevich.os@quantenna.com> MIME-Version: 1.0 X-Originating-IP: [195.182.157.78] X-ClientProxiedBy: VI1PR08CA0130.eurprd08.prod.outlook.com (10.175.228.160) To CY1PR05MB1930.namprd05.prod.outlook.com (10.162.216.12) X-MS-Office365-Filtering-Correlation-Id: 1929d9fa-5719-4174-5cc2-08d51f7ef76f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(2017052603238); SRVR:CY1PR05MB1930; X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB1930; 3:uhOYrSHJWe2oDGQfcNNrXHkEoqVK1LAJqcSDb4LZ/WWERl3GMuscrXQe9FysiLjIr1RlK6A5GzUFG3LofklnJ/pSdTkSnb0G24EBz0Wv6QTt0f3wEPi4L+EdOIlVk1T1hl9BxItxutY7vm9CcVcm956Mbn986eK2uTRlIH3BYkuY87hkGXaH5Gog/iREMnMZFfnFmMRH4+juuBRRmdog5YFLj+k+jSvSQ6g7LNR5PpVpDkuJ1EG9wmbNnuOOCb5N; 25:YMCQhH7J1UnnrgewxQhY4bBxJhby1P5cuQ3DNUS1IZbGjsgRm/dltUXVzjEg3hRbtZOuq1VJmYuKJ9quHq/keqym6rgPiraO7NxUQGeBL5DJsEtTf9FCBl1o3Qa1BthGKTc3wdOPsxjxzib17PoTQkFSolLRZzbx9Et8FBskVbTFUz3EwlgVycjAdxANLCt0qCgJFPSpuzBTyqpQEDZzkOyQOuZQQq82hZlYSdZ2nBCtSFLl3gnf+A3/rnTSu6M2dlYw2dgMRxqAuxaGGZdoaSXAB80cs5J9ZOXYi7fpgqJYiB25ePPfdBtpvPNNwr3OAxXKcYRW0XbSCDrFhks5OcoUx+iGKh3eXL8QyDMJXEI=; 31:+D2GQlyU0KomGZOeV96DK/kKAHfLWqiIJZ6pcKvMoh5TyTXttS6fkvwMpGnOav8uDOtcFifWkJ/MzHe9v2rVYkJSTpeyUxNHXNKIeuvt3owCmvNujR/Ppn41eKZv93a3cn0SB4RT9jc9+uoTSykfb++ufuGoTcVc6rdCxWkmNGThS5Tk8fxNXZvJxHTIFcXh0Oh48pspwh5bkE0irhroVxcW3P/xG4fIc2wDLLA3MHc= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR05MB1930: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=sergey.matyukevich.os@quantenna.com; X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB1930; 20:TMKz3Ec+BpO1SyMHaV+bt6OrPkqrPZZrxEzUBvmyWFjumyUQMdKgJSDv7w+0uydrabrbMxyEi6CyUHYQqc8G5SZvf9fPELNKVXc2pxA3n+Sx4Eamxa0bd7XDLtIjZFJXt4qL+Z/aYAtWgoRr/1AEM5s2iv8Kk1RcAR4EnpUiR5SPgJm6Vh1tXnfiIDYHVYOz0JP51+rwHoIjAmxE1/uW7DmKdv2ZpR72W/LmYh0helrjDXPgSQ47QvScjkTiXbpohgwNDZE2gGBGCuu4+WacYPml9t21APHn/g56cRQ9prcFGdgYl5OBli4C8Jc2ko3RRCS0h3+sPxRF5iylf46PtfqBnLHpq2r5WLj/aN6P0Jxtl+IYeqMRulecgjyHehfoU8GpFHPBGfKt24aVsUbKKhh19IuXJZg4fGNabnJAXEjSFMLOkZyFIxLRDiupxq0MF11299UPoUMR5ZBBtepA1kTVXenMT7DG2v8az1eT6RdEOTknguFZOj1JEvDCUOmm; 4:RLjWM7No1AC7vushEeWMZd63Y6yHe8XeUGjaFtwksfYsPp+HtzZnv+RLAAFbGi1Rc1qtVb9mx4Vv+oNnrsYOeyXnimKwee2+7GQqKJhqmnc6mmvXyD+5sBqtn0exoR705M7BdbyQBbCV5O2PLC63/LB/W/udOAwLGnGn7jlmtWMMpjkb8TPtoDpERq6QNHUJM+4R7e1zuT5b0rezRZtwGiK1jHeslzok82mcWoY6meBKx48/Fs4dNoMd/uw3f6jvwNNEhHzARI90Ap1ly3ureIxymBu7YqgleoQLMbXktZ5t6gVZhBXwNcy8j4cKudj4 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)(8121501046)(5005006)(3002001)(3231020)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR05MB1930; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR05MB1930; X-Forefront-PRVS: 0476D4AB88 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39830400002)(346002)(376002)(199003)(189002)(53936002)(53416004)(2906002)(86362001)(50466002)(48376002)(305945005)(7736002)(4326008)(69596002)(8936002)(50986999)(107886003)(101416001)(76176999)(1076002)(25786009)(478600001)(8676002)(81156014)(103116003)(81166006)(36756003)(3846002)(68736007)(6486002)(6116002)(16526018)(50226002)(5003940100001)(2950100002)(54906003)(6666003)(6916009)(33646002)(16586007)(66066001)(47776003)(189998001)(5660300001)(97736004)(2351001)(2361001)(105586002)(316002)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR05MB1930; H:bars.quantenna.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; CY1PR05MB1930; 23:53l+vi9NMX0cCsj9SP4UeT2NU//a+I7Wx4zVE50D/?= =?us-ascii?Q?qhnH7OOF5vQlzPY/7tgOjvrXcZj/K0EKr6mJPTZrwKjPpq7Bsr07mGHwtcEe?= =?us-ascii?Q?xOUUKpMlf+o8MlNFLGggFwZtqR+eVZLXUUcgf//PK4jocTVEaLH5eHr75zDs?= =?us-ascii?Q?sa6M6csZ4t3VdubjOCK1zEjYzVBhINnV8gBXi2Dn6U7ughD7UE+agn0IBzrr?= =?us-ascii?Q?L/H/hKY3viYvMB8mJF26hFt3kJYxj+jEXUzluuJfKhPVJP0NplK9EUTiZowX?= =?us-ascii?Q?b9iPTUgcLhkyq/rxAXZ5wWLRfs9lKFsHYzpKmSvncLecm7LPmGG25mobxHuj?= =?us-ascii?Q?TZpmwTd7KQKfOjBEhpZWAcRmC7rJPvVjfptHW27+WTw/Ed5I67uZv9LQxl1n?= =?us-ascii?Q?Ol2CSZ8rElpmO37JZfEd69k8WlxvdY05XVfimt0Lot3c/7xbSD2beTNDWNL4?= =?us-ascii?Q?jyzqfQq3sv/pFSU4i/D+Ds/9wvJHzsCDzEUV3EOj0x20znTNQeCkHNQilCJG?= =?us-ascii?Q?ukYtobSrQDCe4aWSjbAllaS4ZmZd+9loOiFlASm+APBuDS+Dp1znglujyQ84?= =?us-ascii?Q?fnygSlC0ewC+pfghiWCYzApr8u7PUeglX1IUMHOhqBTqU2TdFPN1jb/cb25Q?= =?us-ascii?Q?1c96kpwOA2KaVOGgoEhjM14W2tqwgSglBDwc2A5PRD2/IdxHtLWgRUfBe1Sk?= =?us-ascii?Q?eBCJfGZ8Hem8CZqQqN/XxCKXu1hGDj+dHkBqb1DaeTViEBMmIKhyBRBZdOpY?= =?us-ascii?Q?M11CSmi6Jo31bb2ao/4da3HMTOhb3VvIRpTbrIOVe/RpporinRq9r/AR4Xv2?= =?us-ascii?Q?8opTvBe70WjUe56OW1rRWjlyPWu3AJOziH+LboBtozgEfnjcOMpa/odL3M60?= =?us-ascii?Q?DN+vkoVFqlVf9Lee31wNf2xzSHjAefKlCHLVfvbxMQz/RIkse7XdEh/OmhUv?= =?us-ascii?Q?78IltdHDPFGBpLb0sWhS7X5dLDXf+YYlzNr2Qo7C1Ve5v1Cd9L9banwyHTW/?= =?us-ascii?Q?iGVn3Ole5zpq9c/iFvS9tq9OH3ar7aSN2+AJ059loe7rTVQCC7hInETEi2c9?= =?us-ascii?Q?EWoAm9jNseQAnUABmBMAQQ08OgFdlhb3QeXj/59x8DX7on/dcKnxHSbatodm?= =?us-ascii?Q?jzj80akcK/c+5jGmc5ie/wD5ESGb2CGCqWNBigyoSK+2xFDYFLdYLSoRSnc6?= =?us-ascii?Q?p0ADN1cADQrBAP3GIs3XAEgZOtFC3eifnBO?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB1930; 6:cLOQrncA0mzURV1f9vAKk/V4+HgIfDjJ3UJU2T3/8VTWOp6O9VK5QxMdGR5AzqCsFpPQ8OJywfD28ZvzLwI3aqpIDDNtaH3vBrN8rmfhDR30gcPmDXqPYv5pmT1664u2vuUWuDnr728DtpgGj3OcCs4r9OhzOuC0QiQ7WFeSD6fZn7NML88NHwavQ1Pphx1+Ray5rUBwIntg3Kj1jEBYFERzXgTH+U3REiacxdM/kIDLBVivjWPJ+uqP/mgTNF5BfUEsqF9c1SnHa8rAzohx9mNBsQB9Hm/F3f1Ew09g+5J7t49KOZ+ofq8Rn7D4JvyRYh2XqDMKHLo6sDQW+h9muUZWMP/AJW6KISLjJOT17qU=; 5:Mp19Vlv8r4qn5yMpIcsfJZ9WmSolw99mJ1KeOVdASRIjbN+mv0qK5xvhHHG7PWeSNorCld/LFxKUGdgok8LSEBXZY0NADD7o9dmnJH0Cbq3zcOAIhFK+/yhxxeF41Svq5ZGMBHGlfGwq28GZMYQAvOEGROS0f/vInjJ8qJJhRJI=; 24:/UelA0EQ9ZoayP9yJZU5qygHJyguiEImA5lzuTPomcLgiPrqLi0BqTjEcalXEgOBnvYtZCLCeSbR9bXVgeD2kzfuSropbsXBgiOCTzOdDUY=; 7:bhqcF67xtzXL6S4Ats/qwgEVnZ5LrWtaxoAlPPst0WcwP2PZkOspNR94wilpSs3DNs8GjOVTfPFMAFFxAzaFngl+Qdgu/4+gm93nEDfjPzGMvsEvaryVPlChj5MIVC0RC8XgLiN45rbPwcpdkJwgdbIXdAWgbIJJHNFA6KVVmz0v90n7IggZJM5mJanJauv4ZbGyzt364Cx5PK2ur77fFxQMvaLr8YSh8NEGUoKDT4xPOolCphKl5Z1zi8WWPam0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2017 10:14:10.6341 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1929d9fa-5719-4174-5cc2-08d51f7ef76f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR05MB1930 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 63a540d1216e..64db4082c9d2 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), }, }; @@ -353,6 +356,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;