From patchwork Sat Sep 2 01:44:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mitsyanko X-Patchwork-Id: 9935441 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 301C660216 for ; Sat, 2 Sep 2017 01:45:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22C8628542 for ; Sat, 2 Sep 2017 01:45:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17DE328552; Sat, 2 Sep 2017 01:45:17 +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 A876428542 for ; Sat, 2 Sep 2017 01:45:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752158AbdIBBpP (ORCPT ); Fri, 1 Sep 2017 21:45:15 -0400 Received: from mail-co1nam03on0052.outbound.protection.outlook.com ([104.47.40.52]:13344 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750941AbdIBBpF (ORCPT ); Fri, 1 Sep 2017 21:45:05 -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=olKXgw7WFnaIendEIMrBaHibqeBYw1I/XzuOklIJ2QI=; b=Pxoa6156B2h8XSCBaZ11lwHtO5mzJ7LX41sdPNINuu/tqKaYlIy295zf1yObFuhY1ctxvP4UgKC9cmXYlxoS6jl0Yp20V3OhH9NxHAPc7UKJmT4IUKtxynMov+EyWmLmwP1/VaZrrNr5IAqywvtLtZXz66MLXCQYc3EfQoa3nsU= Received: from dodo-dell.quantenna.com (12.131.200.68) by BY2PR0501MB2039.namprd05.prod.outlook.com (10.163.197.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.3; Sat, 2 Sep 2017 01:45:00 +0000 From: igor.mitsyanko.os@quantenna.com To: linux-wireless@vger.kernel.org Cc: sergey.matyukevich.os@quantenna.com, avinashp@quantenna.com, johannes@sipsolutions.net Subject: [PATCH V2 6/9] qtnfmac: pass VIF info to SendChannel command Date: Fri, 1 Sep 2017 18:44:48 -0700 Message-Id: <20170902014451.17766-7-igor.mitsyanko.os@quantenna.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170902014451.17766-1-igor.mitsyanko.os@quantenna.com> References: <20170902014451.17766-1-igor.mitsyanko.os@quantenna.com> MIME-Version: 1.0 X-Originating-IP: [12.131.200.68] X-ClientProxiedBy: MWHPR1301CA0021.namprd13.prod.outlook.com (10.174.164.162) To BY2PR0501MB2039.namprd05.prod.outlook.com (10.163.197.26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9bcfbffc-aeec-4bf3-fb56-08d4f1a43984 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR0501MB2039; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0501MB2039; 3:0fSOsR8PS8xQQhFUzz4OqGE33ulfnDtXONox5SbhaVz3wlw9dbmyGAsIt83Wuovy/PxYJ7uL1vTFYnSf2LnhPgF77UgIdR6IAIHwN+uXaADHnyN+wQdXtlvXA91PL/sP5tKFTKj2IEhC8jDw/0PtjDXINOiauay+0aKzlZ0QGmgBgoVqv+37C44L6HMmGqkfsUaRaMBibFbokeTw/fNfgEQoivFeIoBsa99Nqnq1Db9eY4pJHputPKjLgTvbCjrX; 25:aRmShNnBeauelK/fhx8MV9Fom775slSwsqndRWvXZs+UQa35VqFDXsU8+pr7n9lTF+L7iFBZ9RwodyZZYGczCR95fCkbkvdtoHGDFNwaKUu+GMq5RfwYXp9Q989gqoFO/rLe0WEqQrjxB/PG57WRO2WcqoA0pPXkVt/6t9mxIc75stO81lvO932HUyphN8UNJCCbo+60xFhU3KMKbw9xBmXH9hHjKFO6ZI3ymRTCFX1SpuAmOnsIfWzZ8WeGNM01D5ttH78PFi4Pfj5FYMptsupTzgtkQo0gqxgRk5WL/QUpIzYPzxfwWU6/R5Lh8f3izlCc6faO8VNQrpEJ3w5Fkg==; 31:Vle3Nc0nKY0p0HGJ1RGTplq2jTGox0PtLeh31ETVbb6oPl5k92M3ra7KZeeJEILwICVg6IRuclWGl2fJmJbyxdAYLEg/i1baruQsNxY767tssOdLRNUewrFhzadkoza/huvmsUqBFlQHmzcFpVEJytLHKx1iX8/DBnJcg9NqSOA/f2k8qfQDGApy6gNp9CX3rk86giYX6ha7YWh+ShwTEtKeLqbL/AuXsKPTv8MvWWA= X-MS-TrafficTypeDiagnostic: BY2PR0501MB2039: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=igor.mitsyanko.os@quantenna.com; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0501MB2039; 20:s8N3DL0Gc0BkNAhMSAOM9PvfPNzjm3tPOUzobOlTLa8gNRa6d86RppgcazV+sSY+dH9q3tl1Av8dAlyoSCdAylTSW+/NQfb+noNbmsC9e9qGgiu7hHZ3VNsLRySDmarTv5MazKsLY7i/DDCbg6LV3Pco60bvrPyJ9KB1pcA33V2xzQb86GDi9l/OEkVyMdb49+18KEnlivpgnLJwBysGYeqSwhUOwa8Mfsj6gqn/3mjyJjFdrwF3P8SizUQ19rcbwffxWZ1YxNRS1580ziAZel7I9PZGGABMeEB8lAwkTYGCboA7o0qcBGgrzAb+jU/r+uJHUGDlpxQ69F0YP8HR5qJvhmeGfNfWEUKMJms0DnLuhZSFR3l+n1RFGOoWrWc2s+sKIzvffMREDzPA1yJfixgMX2hnOb0E50jvoc5lFvumwzdZZk+O1fdm8+y2rEchDpYeYl3U9z0/loaRvg74B/y1Fm87bP8rtU0qRYXvPd4oZt6htupd0ZBIQCkg7Wz0cu0RpILaw0brEd5Kk31/go+ubiFrQaMmTQ5eIhaUCyor/+ALNZlhq4xJiRj0v2w/Y4r7+xi1MPNYcJgPW+uZQVyaXZKmhWXcjsDnK9wV0Po=; 4:o5Lah/N2ltfS6GbIZ3/eA1H8q9a31EJ7iL4TVBPpdfZBCCXYzC3E4dgvBFL51M24SlVNGS4nAr6yWNos0tYdntd6ElcRcS7w1aHjvAPi7e/KB/MhpHqB6sqB5xzOLXh0smtFFR0R6c8inOJ9CnMauXZx6HhnjYW7Mzh96olc3Z9dUqNBE8REm5QW4VY4It0/OYwY98cxuKm8JEXnixnVUFnd1tSHvg9Ok/XCVKl5qDZQRE2b7Vcj+uX9kLOWDrNT X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0501MB2039; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0501MB2039; X-Forefront-PRVS: 04180B6720 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39830400002)(189002)(199003)(103116003)(97736004)(50986999)(1076002)(6116002)(3846002)(76176999)(8676002)(50226002)(81166006)(85782001)(81156014)(8936002)(5003940100001)(36756003)(68736007)(2906002)(53416004)(86362001)(106356001)(478600001)(33646002)(6916009)(50466002)(2950100002)(48376002)(47776003)(2361001)(2351001)(66066001)(6666003)(4326008)(7736002)(9686003)(5660300001)(189998001)(42186005)(6486002)(53936002)(305945005)(110136004)(105586002)(69596002)(101416001)(25786009)(85772001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0501MB2039; H:dodo-dell.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; BY2PR0501MB2039; 23:6XMlEnqSPjnEmqHBdF2UlF4bYVvRtjMdNgZi3eK?= =?us-ascii?Q?CXusN/osSAJ0qV5m7pDJ4nnvzXjKjjLZpTpD9vx6a6c6/4yqUyKxQsjFbcmM?= =?us-ascii?Q?SlIb2dxVsKGVeN5wzprJ++lxpQl9YH0xJNLw0LSqgUPRjXsgPHliOgqI7Vc9?= =?us-ascii?Q?9GE1QlzejYhZC0dRd5v4pZn/ljhmdBPnnZXl4n9JIeiPJ3fjRquTrpuoECxA?= =?us-ascii?Q?8g+CY2tTKmDjWHcPmrB/nI65f7usH9BZqp2cTBFdl+TTJtcs54KFoOYZwQgE?= =?us-ascii?Q?sqndsjcURA2BKjvtY2t6tyz1d728x0J8Kae6MRNhiJoq+e/AgsI/UQtND4V3?= =?us-ascii?Q?gTskZlInwoVw6/vRvBfuc2YFiyYZl742/n04erPPVOy7t+EE0mQxsihRz5zv?= =?us-ascii?Q?b9qIyfrW+eJJ6OQ2GEwXs6BYmn5iqhLzYEZzulk6r/YHHOIF1kfuszcjJVe4?= =?us-ascii?Q?gmTQuOR4QahVZhG40kdQzOw/fVf/9xMsUNJhVwMEhZTmLLgIoGkJEdQOkgDV?= =?us-ascii?Q?gr20vercKXqxX9Gl0ewYz4YXZiba5by48iOpuAE83FL1oz90qiG3M1Bjokxt?= =?us-ascii?Q?HN11BnlzEqSjAYnGn+FF3K/2iefGfBEW4FotSf1ikeauXwI3abewN0AIJ9oL?= =?us-ascii?Q?degAHDmYmpmpp2KF8nQSqG2OmmAhSisJCgYPn+2OZw36vl68U9QJCBEuFviv?= =?us-ascii?Q?+EwiJ3LmvQBOYRPdSbQV+vCqfRQki4wmgB4KYAq7GSERJBQU69BeMwpTgO7U?= =?us-ascii?Q?ePA3tbgP76ivpfxhrx4F3fzV+l10p2SEY8WypMkW7Cg++UBiQfwLOBMzi3Mg?= =?us-ascii?Q?hu60umAeVNuLd5sY0oIeqCpTybagD005FKbX5f7FTjrx+1sSNzX9rpCdd+LJ?= =?us-ascii?Q?AETOUdg3HRT7BHYKaF7vBqQk8NGT9r3MKzNkzkmSRPUcJxlIbg2LwkdVlzWn?= =?us-ascii?Q?CNvz5UCGLxOOH/8YjBH4rVlVijm994fPZzMbHtUzdosE+8R3+61paE/nrU+r?= =?us-ascii?Q?C4X4fnBSX9CMGkqs7aJXDUOnuhIEH5hS6RZX1wyqgiAxjHTF9X6WS1mzinho?= =?us-ascii?Q?TE3ok6nZs8XPmalGP/pujcKMF+Xr0Eg4SGcC4aefv/KS0zPRiqQz8zhSYSfp?= =?us-ascii?Q?5V/ijayd4lGqJqd+BkwvDvTj9S3a4KYRBtnKyv+dWLmMvZwKGresTGph/h/9?= =?us-ascii?Q?xfvVYkaNFLoVo82w=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0501MB2039; 6:ErmIy4lKCSE2htjlwKkJbRLIhn8N50XSfyXRby0jkhLLWxbs2uU2CZujg6fyGRs0Os71jZCZ+dTAfXJbwlpFlvO99q+R91ERxixwtV7u5/rw0/13metc5c1PUtG0p6vafTP0JANxNfobIMZ5cI6vmv4ZntWMrxiaT/qgqsEDyhI07Hv4QMzRFxVXBrXNigQ203uLQCfbnGAI5AnJbNQrOgv131RYJY8XBvLPADfyh07FEpGrnJb4LzGCxRvPeqzC+ny4w0iK19BB6bYCEdZlecbgEr+OqdKQYz4kPXs1SZcW87SjgTRf5r5VjnOAGIui/nY4rXLgdLaKYIkCX0lS7A==; 5:riSrB7YYlKt+cxOELnpPGIPfe64S+TzF7LXvL0LAi5h4wL01PBCPjuJEcwA6NiQy1+8yxI1CsDxn/DwK2i/gt9ILJWLLds9vGagdmkP3tiG6QWhBJ0g1SseIvl6Et4df4SnQkrBGmyNcBkl9lwGSeg==; 24:ZnnO23zn18616CVwYsXfmZe0N3TZOoDjevSC+5hB6Kk5lm8ArNT8pwMP6CZ9aGvF/WIGKDJjHbnqLNabEDCW1PXwJlt1Ld4PYftyor0Evec=; 7:06Oxayd4QPsXd0wrvipUdpyXpQ51OGN/40zLffOu9N3nQX0lb544AwfRzvaD4JhElBu6ezrLp00mhF8Y4v+AViOQD9V+tvWF1c5bJrwOt6iF2uduLyNOFBGRxzqpy5BGdyIX6elVT0QAMOp7HPXgMSH3eNi0OsUIC705faz4Hg8+lDtv43MAz9Vv+2QiC+a69wO8RyfTXnqQio46SR8Kuzzuwxjfw7faEHKqf7wDwjI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2017 01:45:00.4904 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a355dbce-62b4-4789-9446-c1d5582180ff X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0501MB2039 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: Igor Mitsyanko Signed-off-by: Igor Mitsyanko --- drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 2 +- drivers/net/wireless/quantenna/qtnfmac/commands.c | 5 +++-- drivers/net/wireless/quantenna/qtnfmac/commands.h | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c index 4590f30..30f8be5 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -846,7 +846,7 @@ static int qtnf_channel_switch(struct wiphy *wiphy, struct net_device *dev, return -EINVAL; } - ret = qtnf_cmd_send_chan_switch(mac, params); + ret = qtnf_cmd_send_chan_switch(vif, params); if (ret) pr_warn("%s: failed to switch to channel (%u)\n", dev->name, params->chandef.chan->hw_value); diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c b/drivers/net/wireless/quantenna/qtnfmac/commands.c index c55bae1..0138dad 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.c +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c @@ -2306,15 +2306,16 @@ int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u16 channel, return ret; } -int qtnf_cmd_send_chan_switch(struct qtnf_wmac *mac, +int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif, struct cfg80211_csa_settings *params) { + struct qtnf_wmac *mac = vif->mac; struct qlink_cmd_chan_switch *cmd; struct sk_buff *cmd_skb; u16 res_code = QLINK_CMD_RESULT_OK; int ret; - cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, 0x0, + cmd_skb = qtnf_cmd_alloc_new_cmdskb(mac->macid, vif->vifid, QLINK_CMD_CHAN_SWITCH, sizeof(*cmd)); diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.h b/drivers/net/wireless/quantenna/qtnfmac/commands.h index e1bcb83..8a5a82c 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.h +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.h @@ -73,7 +73,7 @@ int qtnf_cmd_send_updown_intf(struct qtnf_vif *vif, int qtnf_cmd_reg_notify(struct qtnf_bus *bus, struct regulatory_request *req); int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u16 channel, struct qtnf_chan_stats *stats); -int qtnf_cmd_send_chan_switch(struct qtnf_wmac *mac, +int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif, struct cfg80211_csa_settings *params); int qtnf_cmd_get_channel(struct qtnf_vif *vif, struct cfg80211_chan_def *chdef);