From patchwork Mon Jan 28 22:38:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adham Abozaeid X-Patchwork-Id: 10784977 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-2.web.codeaurora.org (Postfix) with ESMTP id 39F296C2 for ; Mon, 28 Jan 2019 22:38:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 274AF2B230 for ; Mon, 28 Jan 2019 22:38:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19E852BA0B; Mon, 28 Jan 2019 22:38:24 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,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 867E22B230 for ; Mon, 28 Jan 2019 22:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726817AbfA1WiW (ORCPT ); Mon, 28 Jan 2019 17:38:22 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:61055 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726762AbfA1WiW (ORCPT ); Mon, 28 Jan 2019 17:38:22 -0500 X-IronPort-AV: E=Sophos;i="5.56,534,1539673200"; d="scan'208";a="23948858" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Jan 2019 15:38:22 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.107) with Microsoft SMTP Server (TLS) id 14.3.352.0; Mon, 28 Jan 2019 15:38:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9pdDp4ESYLVtfEpmKFvsYFYyJ18aDzefw2SzFode9kw=; b=HpjFc0iTbffINa4/Z1rsJrd5NLaCxuxaDNh3Cg02rxWL6P75otvjjs3mhHUGQWp3h1pKHzbrxXLNnlIz0TnQeqRK3RL7Bq3x1BYRLey+5x05ho8WkN6LVWf6X9m0UKKmwdYJBSvi5cHtvw1nRv7BrURndtZMfNw29MVNi1TR+Jc= Received: from MWHPR11MB1373.namprd11.prod.outlook.com (10.169.234.7) by MWHPR11MB1407.namprd11.prod.outlook.com (10.169.234.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.21; Mon, 28 Jan 2019 22:38:20 +0000 Received: from MWHPR11MB1373.namprd11.prod.outlook.com ([fe80::58dc:240f:c0ee:37ea]) by MWHPR11MB1373.namprd11.prod.outlook.com ([fe80::58dc:240f:c0ee:37ea%6]) with mapi id 15.20.1558.021; Mon, 28 Jan 2019 22:38:20 +0000 From: To: CC: , , , Subject: [PATCH 1/1] staging: wilc1000: remove redundant reset of station statistics Thread-Topic: [PATCH 1/1] staging: wilc1000: remove redundant reset of station statistics Thread-Index: AQHUt1orshEXRJwd4U+dDCEbtFaKDw== Date: Mon, 28 Jan 2019 22:38:20 +0000 Message-ID: <20190128223111.19400-1-adham.abozaeid@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [198.175.253.81] x-clientproxiedby: BYAPR02CA0038.namprd02.prod.outlook.com (2603:10b6:a03:54::15) To MWHPR11MB1373.namprd11.prod.outlook.com (2603:10b6:300:24::7) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Adham.Abozaeid@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR11MB1407;6:D4D2s8Ycn4ORjugZd5hVCuRkuYvNwr4xwuLPO/xIaKiQs1KoJOQriZ4Zi3H+fgzujyDab7sl7SGNyqd9YQlEIq0gsWnya0Xnglq3L9tIhjLOaTqI60TcRNhuHi9d/3Pv57p+NLEEEqvGZXJzsSkZwKtgWwy2nXXf+x6VPYfiZJQhhtskkYymGaaQIKkR4KpYHcoY0dohpfOLPUncoLJJJc1hoThXWkn5mXYAoixawQ++CkkgCFESFoAS1GfLbYy7wsvGmUhmmIuo4hOUt60MdQDEh4YFmvvHOogOuc8TOGw9jyYpa83WiizF0Q/UhuXMNQhV/WenuifciyB9mS5qfyv3BtatezbDBYjXDD5WI2MJ1kUVIMFyQFQVmYf7F8zYJ38zBPaFB+qGvywkBNlKoegeOaLupmcAkHsvHmb4mW7b6xpb18J4AVak0QHK5+ogwTPKw5CQzZmvKN8C0omKZg==;5:JfVZj8kw74GDelgFrjx6WDRz3a8JfL96DHa8y30dsnNW5CJ269+ePTgydS8Mcp3fl8NC8U6WCl8fdg7wURHQU2o7dGOVUmIl+fCAqiKsQUurhmDhnnodmFUxsLGjGG6Sa3fAVAfFt6pBxml3u716m9VRIM1HAw31SjMkKg248ePwdK3GvoiwkWBAspfMF0mxg6rC3qSaldPd2iAy8P/rdA==;7:49q9gNtPZ0geEdbYT3VlxWAipuAgDC9yiiRlNjqIcXXNI8UJWq5CG0Wi4Rmn6sa/Zs7bNThDI6P6SfBUQdrjFi6s+FNsaz9B5IL+dIuPUj5Od2bVBD0+NFUqWCoDj0IaRVotZOC8eWESagjN1IhuSw== x-ms-office365-filtering-correlation-id: 9806197c-5cef-4a40-36ef-08d685714da2 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020);SRVR:MWHPR11MB1407; x-ms-traffictypediagnostic: MWHPR11MB1407: x-microsoft-antispam-prvs: x-forefront-prvs: 0931CB1479 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(396003)(39860400002)(346002)(376002)(366004)(189003)(199004)(1076003)(256004)(71200400001)(71190400001)(2501003)(36756003)(316002)(6436002)(476003)(2616005)(99286004)(72206003)(14454004)(52116002)(66066001)(478600001)(97736004)(486006)(105586002)(5640700003)(54906003)(6486002)(86362001)(305945005)(6116002)(3846002)(53936002)(106356001)(25786009)(8936002)(2351001)(81156014)(4326008)(81166006)(186003)(26005)(8676002)(50226002)(6512007)(6916009)(6506007)(386003)(102836004)(68736007)(2906002)(107886003)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR11MB1407;H:MWHPR11MB1373.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: qhSX3EN1Itdn7RqaOWNtrC0Yu0EJ9sTeMqrBmr39gNXnGNaBXVIibnBsxNTIiJ9x3kBdWN6Qh1wodki8XqlG+CugsVxr6hwsD5OLNTgw+gjHx0oxSBC4FSuQrMX8NfcRVYrqh+FcH6t+uqeHUcndGn8HthV8KoZZdXPUUdkL6VwC9pYO4t4NpwulF0sJXhMAZ5H5dkOgESYG2PK0pggEQkoiOdkTyxPwVIinvnUQOqEyatzcM4WuIli4/tIqdcLdH4FpvxOz2jfvDRXOg0yIqULom71n2HjihH897UrefYQi7mHVebYkf+mzZQUeBD270sr6S3PUvlqKWyazt3hJ5lkVsFnHwijZyecea0T5MdKlaegMJ3WUfVvTwSInO5Ta7DwdQNAG0jzqs5b27fgQAEyuW0fsgOLJUzxMbcOwXLI= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 9806197c-5cef-4a40-36ef-08d685714da2 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jan 2019 22:38:19.6654 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1407 X-OriginatorOrg: microchip.com 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: Adham Abozaeid Driver sends configuration wids to reset connection statistics in the device, but the device already resets it when starting a new connection Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index fbb61de20304..286685e426c1 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -342,29 +342,11 @@ static int wilc_send_connect_wid(struct wilc_vif *vif) { int result = 0; struct wid wid_list[8]; - u32 wid_cnt = 0, dummyval = 0; + u32 wid_cnt = 0; struct host_if_drv *hif_drv = vif->hif_drv; struct wilc_conn_info *conn_attr = &hif_drv->conn_info; struct wilc_join_bss_param *bss_param = conn_attr->param; - wid_list[wid_cnt].id = WID_SUCCESS_FRAME_COUNT; - wid_list[wid_cnt].type = WID_INT; - wid_list[wid_cnt].size = sizeof(u32); - wid_list[wid_cnt].val = (s8 *)(&(dummyval)); - wid_cnt++; - - wid_list[wid_cnt].id = WID_RECEIVED_FRAGMENT_COUNT; - wid_list[wid_cnt].type = WID_INT; - wid_list[wid_cnt].size = sizeof(u32); - wid_list[wid_cnt].val = (s8 *)(&(dummyval)); - wid_cnt++; - - wid_list[wid_cnt].id = WID_FAILED_COUNT; - wid_list[wid_cnt].type = WID_INT; - wid_list[wid_cnt].size = sizeof(u32); - wid_list[wid_cnt].val = (s8 *)(&(dummyval)); - wid_cnt++; - wid_list[wid_cnt].id = WID_INFO_ELEMENT_ASSOCIATE; wid_list[wid_cnt].type = WID_BIN_DATA; wid_list[wid_cnt].val = conn_attr->req_ies;