From patchwork Sat Sep 2 01:44:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Mitsyanko X-Patchwork-Id: 9935439 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 8C78960216 for ; Sat, 2 Sep 2017 01:45:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F0F628542 for ; Sat, 2 Sep 2017 01:45:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7427928552; Sat, 2 Sep 2017 01:45:16 +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 1247028542 for ; Sat, 2 Sep 2017 01:45:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752037AbdIBBpO (ORCPT ); Fri, 1 Sep 2017 21:45:14 -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 S1751387AbdIBBpH (ORCPT ); Fri, 1 Sep 2017 21:45:07 -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=X3qncmo2oYodnT8C/0VhfJ62WP+k2PZv0QfE+b7s4Zw=; b=xA7KD5hKfVvOWL9jFmfDO7I42335uxQGIropHKkwCHem7JoKk3JD/6Uyj+nMRs9zxDuS9SGG9pIhqjdmI0oZQpmteWVJbHfn/eGmg6eaAD+UZYB6gxR6UWbP2fdqhf7CE/aZV2oWyTF1YXl8P5uUuD0oMpweMCG3YbEgkUxG59Q= 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:02 +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 8/9] qtnfmac: remove unused mac::status field Date: Fri, 1 Sep 2017 18:44:50 -0700 Message-Id: <20170902014451.17766-9-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: dc734dd5-fcad-4770-53e7-08d4f1a43a7f 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:9M311cQmnGSW8/GDWCwnNVo46OWQO4KDgMwTXFD2cP+ZSfBPHyBk5VXkmZs9p37TcAy2weGyv3IEuXY/SDdKbiHJ+8LJniTYocyjY1jAXq2cDBasQIFLZ3EHf0irQmMjM55JGcCRn/qpPhxVsB0FIGGTtVIXqwAqnaNwlZYHxf7Cfcb+KGmVe7vsjc5gC2CtdWUGx2DuenNxoFohD7NOdyo1Wael7HorflC0//V574jTwjz1UxGksUym++xlq/YF; 25:4+bMWslZjtY6Gi39Dmnx98NKSjKLRJjVGbWgj5GENZt9TK8DmX6e1cwzJITYmg9iQxxEmgoA4piABVewFXWPiRan84tFpAw0ZksHerFhxsqjIFt+SsfkYseAJ1eMGR1I9mVN/WaH0r2cGL0Jt3iqLkBWaVWoppez5kqlQG9rdzPR7fycY1jW+sVP5gn5E4A9no0ZbR80xzb9747fv6dSWYcN/aQrSpMLleGcX163K137zeKEtvaNGPae9RfSO/JFYhqhvMvfV9gQgZ6C5UHMMb+wpgfCaJ/Q7LLvLosv8MYoGriAyCYOvkUDVtLTf11RZIAiAtAwNAbB1gVL87AXOA==; 31:Y23jdABGAk3uWG9jlzGBUWclMaRx6jCcWrxoYXeh07VnPqrUUTIajFpf9L0tihSq/zBTfohfjsIbaEBRS78Y2I3PuHG7G7GLOaZXrsalS/HAiqjLEkfwtushbtSiDYVHA7qG+IcI8lQIss3fMDNnepo8OshfVfrE5P+r9h5Enhp22KF5ZP/S9tcXLYKXblF+iYDDmeqYkpEbeqeeCeWFr1KXuU8jIDfF400hA5y9KUU= 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:cjE0dEaEeMjDrFdDn3WZSYQyUPY+OIZvnTV+6KP3UjhcqlXjs3gbh57oKqUsrORZA+Kj66UAxG0Zdj6K4KhZ9R6v8Nw3E5kHkj88QbOs8ustK06lveKyjrx3jkwk/iNqFeYahUSKTZIZt+ZEArxEhk9EG7BmOACVZ+HdnMHu0C3L5QvY2ZLzQ9QVGYoqwYur4uoZ8orrw30EfMDLqlGLPEwtIET4sIvTq5s9NiEOaE1A3WYN6rz2ccOXs813/Dz+Qs75j8xoHi4KxXsMJywCciie3U1dqgUnNM8gpYlBGkRVmPmRza2+UW8RW9uutOVO37OSJKusPpkGiNO0ZypX1+rpSkDN59DwyLpfurHre9r4QA7oujbbBRNiJXFzzMGeel2r2tSRyuALuD4SkzrqVUdMSo6HcWUpWiTfllj2Rry/bJvOfONt4XL8lhfnc9ks8EQ1Ham0U3exH65jnZs7oH33dM2m+iYIBoHVkDBiOBrJt9PAZYakpBLjwrKmFRP5Mlj9IbA51FM4WVk7Rk6oDrjXFkLXk31m8r5ByK14oDbsVZuvsAs7DW1dfdWn2x+9pWm1I92mrLGThhEJVb73zwB2zDnQ5t1+fnwfGxJ/fkE=; 4:fHqeh9PB8g10S6AxmqOZZeYF7HMcxdz10mXyUOqE07i7EibzLiFRoqeMl1q6/MzxYkda6E2GQqeRl3RTID4Euesp/V6OCzT5Fe4N90q5V1yIjqUqopTP+8NLf7S185DV3jmylKlOmqOMlmA6UoPNo6XsIXBepYeLVuUUT+/LHp/9S2MWb9nbw8Y5B/AuSIIWORtnKnjhCSvnwN+ChNaWY+6pPki2xx+Zmzacl34+aRZoLqjgEcphHgxpWuZduGXm 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:6BjlbVGXjJh9EjhPJal15x/FuwDzXuB35vsOZTP?= =?us-ascii?Q?NJ6z+6kIexYZYePiWwT6Gn8T0K72XZAucAGOS/MQqfHECapUn3U9SuuR2MWf?= =?us-ascii?Q?77tWIQ7+o5sG02VaHKE8e4sX8p+0XDIv0uw9/bqqutp/4ZWrmAV8t7KaHvp0?= =?us-ascii?Q?nSZkDpa2v5AKLrIehU3E3u5d2qfFeAQV1f/NQyjtmiYv9F0OCNSPTMq2e/R8?= =?us-ascii?Q?HwscevZsU34nvsflvlBZX5VS/os56Np5N/LIO44YvRZRfvvQeX6R+1logwpm?= =?us-ascii?Q?L8qKQK5CTgsPN96BnX2tbEGV7vySuP9AK0tt5OVKxDBZS3b0qzowAAdKsYON?= =?us-ascii?Q?cBOeSPdlDHbIwPZNCU9J5RGCKTJj5zW4VyvRgY3u6Pwst9qyTsnMAJY+Yexs?=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kN79VkK4uOP1VlbirfYaGteA7kDESsxOH87G5uBMJai3HEaz+Uu9ISJAH7k0Fdpo/eJxktkAtZPVuZYgyOlL5P4JirLh2USGb+fYLSmJ6xO/GcXSzVu9REM3gTbpqA+KiygGxg3DblL/3nVLvqbtqqgW8CVYgHu1X27/pIwpd62PH7RvSljLl9fRNft1P0N3VUTd8jWqfCNAZlmDdS9al3JpFJSiJK2FoLSPoHbA3myS6vrU7bgZyTa/dGGpvC8dNyhSleUTcjnnIlGU35MtsHQq641hUJvSLH2atJI2mAV4JVWZw==; 5:gXwT3viumK9FcZXOwyMzuHYzsfjruk/AVf6UPvvsW6h5QfYA8VJV9s/F5qik3dV1tvuL5JUMddJQCF5yHc7/jt/35SqfLXCTSP+yfwejDYOWJAXgbwSp5GwArRq84gsmvAA5oB+fvCHmdfOuIV+Wrg==; 24:u5Swm5ne5jZ28Yr2VdXVmSmrpJ7ahNrIY1oXRy1elBfn7GgCoa/FHl0LDI+OIyxtMSz3HTZVAX6NylXUSTIXk+vcQVGk9LLm7cNVg4MdSbg=; 7:v4+JM3z7juViCVahOORVqhcS1HXueJMR3H3eROFxdVHdoWMjxSRHPjmvpj/wZcsr8ll6hxHIqrnZagEZU9EbGNN62U4hCJvoBvd+DjTmsGbmSRuRbLsnSV3/RI5DrUwpEJXYik2ILtP4R91ZDV9GGIfAqgtxHMWLKPMHZf1yfl9Wa6vjbVG2qw8PzPlBW+A1AgYPNVftzHuiOpvDtYEt4tB9qMD2OXEw77qcNaoXlX4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2017 01:45:02.0842 (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 It is no longer used. Signed-off-by: Igor Mitsyanko --- drivers/net/wireless/quantenna/qtnfmac/commands.c | 1 - drivers/net/wireless/quantenna/qtnfmac/core.h | 5 ----- drivers/net/wireless/quantenna/qtnfmac/event.c | 2 -- 3 files changed, 8 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c b/drivers/net/wireless/quantenna/qtnfmac/commands.c index 42f7e1d..8f95f98 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.c +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c @@ -2337,7 +2337,6 @@ int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif, switch (res_code) { case QLINK_CMD_RESULT_OK: - mac->status |= QTNF_MAC_CSA_ACTIVE; ret = 0; break; case QLINK_CMD_RESULT_ENOTFOUND: diff --git a/drivers/net/wireless/quantenna/qtnfmac/core.h b/drivers/net/wireless/quantenna/qtnfmac/core.h index 521ce09..2cd0150 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/core.h +++ b/drivers/net/wireless/quantenna/qtnfmac/core.h @@ -89,10 +89,6 @@ enum qtnf_sta_state { QTNF_STA_CONNECTED }; -enum qtnf_mac_status { - QTNF_MAC_CSA_ACTIVE = BIT(0) -}; - struct qtnf_vif { struct wireless_dev wdev; u8 vifid; @@ -141,7 +137,6 @@ struct qtnf_wmac { u8 macid; u8 wiphy_registered; u8 macaddr[ETH_ALEN]; - u32 status; struct qtnf_bus *bus; struct qtnf_mac_info macinfo; struct qtnf_vif iflist[QTNF_MAX_INTF]; diff --git a/drivers/net/wireless/quantenna/qtnfmac/event.c b/drivers/net/wireless/quantenna/qtnfmac/event.c index 77563b0..b1acc24 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/event.c +++ b/drivers/net/wireless/quantenna/qtnfmac/event.c @@ -381,8 +381,6 @@ qtnf_event_handle_freq_change(struct qtnf_wmac *mac, mac->macid, chandef.chan->hw_value, chandef.center_freq1, chandef.center_freq2, chandef.width); - mac->status &= ~QTNF_MAC_CSA_ACTIVE; - memcpy(&mac->chandef, &chandef, sizeof(mac->chandef)); for (i = 0; i < QTNF_MAX_INTF; i++) {