From patchwork Fri Aug 25 02:30:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mitsyanko X-Patchwork-Id: 9921197 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 B1A0C600C5 for ; Fri, 25 Aug 2017 02:31:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AA62205A4 for ; Fri, 25 Aug 2017 02:31:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E5E4205AF; Fri, 25 Aug 2017 02:31:39 +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 3A202205A4 for ; Fri, 25 Aug 2017 02:31:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754489AbdHYCbC (ORCPT ); Thu, 24 Aug 2017 22:31:02 -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 S1754478AbdHYCa5 (ORCPT ); Thu, 24 Aug 2017 22:30:57 -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=yHS5/M3m1xEtWNFbJRithmCbGBOjKGE+09Riy3cLObA=; b=hSRih2hufp0QeIXTOyeGz6B0WO6xqL07j2kwwCGUI9sHdgFdoD60SARZ9wAVLcIlLaj8y0D3Zv4up3KRWl0QfDzsZp2aVnAUr5ESDXoEFMWE/MH+pljoTYSYRfKlZj4UH02WkNg52kZO6oexYlxWQIkOJ9XZSSuRTTzZoIa3kYw= 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:55 +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 12/27] qtnfmac: let wifi card handle channel switch request to the same chan Date: Thu, 24 Aug 2017 19:30:09 -0700 Message-Id: <20170825023024.10565-13-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: 012bb5d2-db9e-430b-d7c3-08d4eb61505c 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; 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DMjyqRtDPCZCg+U1Rw8QIUmkJ1yxKJjRyBJQ1VONL0ze/qrN6TXvIOYK4iRzQDEQXReZYBWwk+Uu+R7ZdqNEv+ao6rbQXhsOqNwfpL9LKaOzq/8Y90iwYgVDB5MMdfo8CAwKGO/WUViVMSHZ3xsmykQFAPf/Cxsb3RGN6xn7Sdp3DXPpeoGonVestNoVn2QxZ6e/elojWmincmTXFXDDUmvem5vKoTfmR6xBls+YsNtthPAuY840LBTc6oQ195mUHc6qgkEVp98rzTL7YWuHugfeVG1MNvtzkxdhhzksptmZuK3QHUivqOrBLPVlJTDD10qvnL5tcx0gXoZuXFctG+T+2B2mNgHu6eTJbSSqEbl12MEW9/leG0WgOQ18aQe33ZOHj/nc5jFLFBtpfBwD2rS3Gqy060Qs76zxqd+zgyCrem8Jc7TVgLhs3jDY0pdGqqyfQD2kpk1pg=; 4:ZEZ/lG+4VM9fHnz7KtiZrCJJY80VkYTkHZeqvFPlG1CnbDUent4eXzc8SZK2CalsN2/5iskNLYOvDGxh/Q+UfjJpMpV7BhcP3ORkITGTuaNC1xF80YnMcC+4PHWGY7BVzq/mKsirO+bZzP+4SRJcrKjuYvA5mIvarvKvaKBTNObSemk2ZX6eCude3WGQoBNGP41v6nkIhLc73dSDpGNtY71/jojxpM03WFwpZwxzP7vhY+Ew1yMVthIWhoKDjMPD 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:8XgJlf6GMJpZ/x8rShgnVARoulOCbXuFL9w5wfF?= =?us-ascii?Q?u8umK6nL+NHms/P142+gjf1PWToN7vIo7tCvPzD1bHejW1/7h+wQ2oUCqxr9?= =?us-ascii?Q?32b1fuxPICzMELuKPxH1Jb7dJtjtKZ9q1k2ODJxPXWcQ4yXdGL9jJlxd5tn9?= =?us-ascii?Q?hJ3bjPnQ5sPrqykO3CvtL/bpNyrEVHL9ROpFf+o866b/0TTChgMBBa7RP99o?= =?us-ascii?Q?ZFQcGSF0kD/Xa1BNswkXaCZ3ZfRH+sMhL2NMdAFfyNkPByoxT6sHfE7h0X/m?= =?us-ascii?Q?A3R4EBqLy6L2GsQ8zFoOozkEE5x7/2o1EV2z3zXh05zS2x93Xj1Rf+N8oQbg?= =?us-ascii?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DDCo+Itk8YGsL?= =?us-ascii?Q?jkd6Ov3kApLYZpFFWBjrSJ1UwumOXKwjFci8qQPmo?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR0501MB2047; 6:lQiRMACXbU/2C8sNsCAylfIRDXaDYWVXUDkuYYikFV8L413kZ3MMZWJNkMtOc3nbNZHGwslEPmXDc/FkWCozbjfHpjKRIN7nmSpldQhbM5xuRTT39yf91DPTB5xr/AoHQYjz6+mug4IUBV3xPTMEUoBs1Qb6x9IZt5OgAtUS8F5yVqxrV5V9N3ZMRytbxacOnLNm7yC9sgKGSfCIZ9drl3El1vxiE4lzbbfCJSQKLTlcBrhLeWTiVBaZWH46Lpx1kCpQ++xEvb1Xdb5OtaGzrp296Xf+h83Iq+RNbQq56KZV5356zgdw7f/t9QdjFNlgRl/W1F3VwF4E0dXWfsc7Wg==; 5:yuaZXABaS5tKXD6558CvcBtSPs3ohq8KsmpVlJyeYlHgxg70Dmv8BJIGk+FIAnrBRQw6UQ/M6pI0JESeA2DSS9yjcmUoT31ukK6XwTGoIwxvsvJuwodymJwDSPa1nozVCphyr79wId93kAJphscD4Q==; 24:uCcqV29HpFdk7SvCa843EyGeMH8KGKOAWdDLKdkye8VbWnk7zvfBXpRko8NBRlBG4/wARyUDBiHGZb8qx0Vkz///7Xdyt7hiOCeEm/ppfLY=; 7:hN7KYymqoxtMp0Wkv1nKaPB4Ej5Y4UyBMnBRCXaeNUtJkKR3NxmkwMV+atbB3+fCEn2hvtfTHS6z2VIzp70VO/5I9fg5O/Mep0ZYydhHVF9Dz9RZu+kqBgT+f23CeUHi3FhYInm2eAA0CQjwpBjF4hVZztZwWCvzS6OOGqbg+jbO9n3a0K56DYKwuv7pqAfUl/tytFH+wGHoVhTpxX/W1cWziOGnxJUThGWVSQwdDw4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 02:30:55.3074 (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 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c index 501ece3..062189b 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c +++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c @@ -760,11 +760,6 @@ static int qtnf_channel_switch(struct wiphy *wiphy, struct net_device *dev, return -EINVAL; } - if (cfg80211_chandef_identical(¶ms->chandef, &mac->chandef)) { - pr_err("%s: switch request to the same channel\n", dev->name); - return -EALREADY; - } - ret = qtnf_cmd_send_chan_switch(mac, params); if (ret) pr_warn("%s: failed to switch to channel (%u)\n",