From patchwork Fri Aug 25 02:30:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mitsyanko X-Patchwork-Id: 9921193 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 9A346600C5 for ; Fri, 25 Aug 2017 02:31:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82CDE20499 for ; Fri, 25 Aug 2017 02:31:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 77848205AB; Fri, 25 Aug 2017 02:31:36 +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 D315D205F8 for ; Fri, 25 Aug 2017 02:31:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754348AbdHYCbD (ORCPT ); Thu, 24 Aug 2017 22:31:03 -0400 Received: from mail-cys01nam02on0041.outbound.protection.outlook.com ([104.47.37.41]:61440 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754463AbdHYCa6 (ORCPT ); Thu, 24 Aug 2017 22:30:58 -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=femsWGwThfjO0f+vZyi/KmSae5jVK18FT1YCgPBEYRY=; b=1h9jvP+2rl7zva+vIiRwqMvQRL4fnjLv/0fYo82eoACZ9dKVdDVRr4HG0AaPQrxN9xKv/ruaquxJ1R8iDFxBHfWyOE0rJ4LzNLC1hiHtXMjl7QY5dycvuy0OrLKSZ2zONf4HnuAQsVgn8290Y3PfnUU7L3ieN1AhT9XGqpSIItE= Received: from dodo-dell.quantenna.com (12.131.200.68) by SN1PR0501MB2047.namprd05.prod.outlook.com (10.163.227.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.4; Fri, 25 Aug 2017 02:30:56 +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, Igor Mitsyanko Subject: [PATCH 13/27] qtnfmac: pass VIF info to SendChannel command Date: Thu, 24 Aug 2017 19:30:10 -0700 Message-Id: <20170825023024.10565-14-igor.mitsyanko.os@quantenna.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20170825023024.10565-1-igor.mitsyanko.os@quantenna.com> References: <20170825023024.10565-1-igor.mitsyanko.os@quantenna.com> MIME-Version: 1.0 X-Originating-IP: [12.131.200.68] X-ClientProxiedBy: CY4PR15CA0017.namprd15.prod.outlook.com (10.172.74.27) To SN1PR0501MB2047.namprd05.prod.outlook.com (10.163.227.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4503fa5e-74c5-4a7e-83e8-08d4eb6150e9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN1PR0501MB2047; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0501MB2047; 3:LFo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XtoT/dTo3Xn5lR4n5OtoHVnt4d7bjTsuMtxNR9JerQs+yhgSbQxtDko9Tm9EK6KmC7t6NlbuqF9oPmY1arRN2SbzW5cIJqVmy0HAI/1aNNNjaxzD6chC0Gw7uIDEfOZNiD9Y2lFRrEMnmrUmmjpOTJmj5iAUjsgHB5p2zJalbNOAHbWDMcXBIOcWdii23DKvjXjFPAQ1zTwlaSMwemN+GpeS6/xzNEcn7SW7fQqsvBxjOhq7bkX3bTTmNTKlQ50O3eWYmOMThjynHE0LynzceK1D3gpyKABsoqV2nWap+AN7rbrDZnK52Eo7YWvwoF9ObtlHZrrgj8+4cNIhfV9VBiuKyXJo3OV6y+mJmWSd8Txpp591ZYUmhs05ugq4m3nGqk0KZHfPBocqUSvBwN9nFPAkKNihNx0mF2/zDo2NLxJ/NNj4Xk2ARhTPrgpA0XBtMb79y5l+U=; 4:EvsxYPZ/eI8DU5vv47FzNISVV6ONid97daQXGqtedRv9iyxZVddxxiFMEPLqfSGOvz+LvZNqjgToQw4VfmuNvfGLgfMZRfueJKI8y+eF+c6lRCZSPxb+FR/exYpvG6EUSNQUy7sY6zo3//BFwe9P1IHCf11rmww3oWQkX6MEgPIGvuaHgU/LXIsCdibiSgikOrtbt5hzEXpIVZ8ABCrLGyUa4IJAxopwvrecpp3YOH0cAzBqk7kZSOc2MWCtKxfI 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)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR0501MB2047; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR0501MB2047; X-Forefront-PRVS: 041032FF37 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39830400002)(199003)(189002)(76176999)(53416004)(50986999)(110136004)(7350300001)(6916009)(6666003)(2950100002)(47776003)(2906002)(9686003)(53936002)(66066001)(2361001)(106356001)(105586002)(2351001)(86362001)(305945005)(33646002)(7736002)(42186005)(81166006)(81156014)(107886003)(8676002)(103116003)(478600001)(85782001)(68736007)(50226002)(50466002)(3846002)(6486002)(25786009)(36756003)(97736004)(5660300001)(1076002)(6116002)(69596002)(5003940100001)(101416001)(4326008)(189998001)(48376002)(85772001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0501MB2047; H:dodo-dell.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) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=igor.mitsyanko.os@quantenna.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0501MB2047; 23:/SrAIGSrssCAsdhL8FMzndvXqI5PU6VyAM0T8rE?= =?us-ascii?Q?2CZfTvJXEvkdvKTEuWBhuvw9EaqFWDvH8ptwn0VfXdGHDcqr0qzS45KncHcF?= =?us-ascii?Q?TBaO6LVfHN2FFST3aD65wRSMH2AiGEltoxo7uOYVxAxE4Y9GjPrbE4jo+55q?= =?us-ascii?Q?R1ToDlRYsJEPz1UScR1Lt+8DJKsB0TaTLo2qod4w57Oiubt50bB0yNgd52GT?= =?us-ascii?Q?fOr+YGUvjNr3q3tVRsWX8IdB79XQ/44jUuNs1wm29VPkLcIai8xBHADEmXXG?= =?us-ascii?Q?UDo2kkHkVuAdxrc6jTPr7SzaFJembDujK0AjyeIeoSYdjX3DI1urgFfgZD5L?= =?us-ascii?Q?KIpk7wE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w/IRPgGp+l?= =?us-ascii?Q?0Lw8QS9F4IR71KO7xVxaNY0tbxtOX7n5B6ZYKQA5/?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR0501MB2047; 6:xkkysO1wGyIgEBwggVJKkHdAQbTQjgQDDJ4wHq4qim4N8bc9abI7Nsk7pa5O6JwnuXl29feoHGGC6TOa9sEaRTIEahT5/2mFINq9iVSgjKZQ9Eoc+3I4e1Jsvcrtg6tFGwvCjQsW5fitDWX0arc8WWDFrccB1g/iIs02ZrHbKssiPawdsNpELz//7qb5M2Y+TEgoSH21/duAriNrUVmRLjznFjSWGle0EDVrBWxXE2xJTTCD0yCd0HPe8Zbu36PlTzkBo8aPXTjnamQUlrEk+e8CDQ9OHd6FjgXWsUhtL35IxFPTuyqRFUFuMDmBLqcOdazveD8buyCZR3B8JcB/lw==; 5:i7AZaw64NJZIiEaUgEjTJql1RYZXOPaykeGh8WonhSMSqzd2SqEicnnh/Vs2CJ4WcZCPOCg2pDjXplay5K/pN7KSi/FBQ4zTRwGz8O/g7B7KB2k+Quh6q4a87LkhFDIli99mSunFf4Zsiff2M19JdQ==; 24:2dWmUXla9dBItGj/E14mpwy+C9mluKjHAwf3e4GYDjwSLV8ynyPV+UJbQRgSNPK/rMWRkbmTbtbMI/5jvH+EoRrqcaYwd8yZMoNScqhKUn4=; 7:NK5ALdU8bzoOdu9GgFAjhTKJPFeQelSMnizcLhEpVI4QU/XqBfjk6IwSdzQuxNm5EVL6tQxKrZjcjAlfqMcH1waaJrclOUtXJkSkYVg7WI1MxC7U/iA+tH4QsNsgXPYhJNPpYyfJN9jyDlHR3/TT+36do1PEbmCqK4ePvdWdlKqRyxkZPKI9k2hZ9zng4oeHV9bQtlN3dAub42kteoxasa02i9lmuKnwrgvxpbCAr0w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 02:30:56.2137 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0501MB2047 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 062189b..b33c4fc 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -760,7 +760,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 195b777..cfbb636 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.c +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c @@ -2316,15 +2316,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 634b057..e87c4a4 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.h +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.h @@ -74,7 +74,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);