From patchwork Wed Jul 20 16:03:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 592815 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FFD9C43334 for ; Wed, 20 Jul 2022 16:03:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229717AbiGTQDQ (ORCPT ); Wed, 20 Jul 2022 12:03:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiGTQDN (ORCPT ); Wed, 20 Jul 2022 12:03:13 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E517F53D35 for ; Wed, 20 Jul 2022 09:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658332990; x=1689868990; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=0SQtZ/+DuPmROF8zeUo9nzHxl+baO0qUYdbF6SCIn+Q=; b=NqkeW2cLj+Tl0lI0qmdnrPmp61BZGBoIoXHneZ4QeAmLU9YLKwC6hwi6 EsalgEon3weQktz2GVlTAjSNMyd/9j7YkcjpJPYLcIz3aDxOQZe2P/AIe LsnAIJzJOHoPoXzhTxO7TmQqnVXMX0jlqkzC40H4LsNcnvSC2NxFUV1/6 hZcJBkdQKFTZBtDBp3rnzqC3oKz8640XIjBcc3sAu7rF/L523Ge/3DpzJ mkLMIsafccUWfy7cxkVmwnTr46Dnti0nsmFx+E/0VEhc/ffncyxoaKzbF BsInWPJzKvbAN7PfLyo0PyjlSuDU3Axrh0OHrpgF0v7jCqbxHLBDynkaq g==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="172930028" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:09 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:08 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D4b2o3L9rQaZZgvGq6M+PSMgN+aVfYg6nh35QHUtksEm3BP3u/+PkMm+ph3zcW3gQH4oyBMD4/zLGQTRRTPuY2hD1gzDNYfems6tCGRP8z78rS0HYgHKhLHEXMNEf/l0kJw6E1v3eVl+FNEPHLGHUOpCL9jF3g/UNw2Z5gipbzMSc0FAQrwJv+qrpc0eRobdAAsGaOT0+JKXooHm9R9taeQXzByzpO7upHsXJjhpWD4cMSDkw0ZZT2SXgP1T+p0HgbrkelmSfqUf+Lwt82m0NcWm04WvmEKe+dcdVl2j/cLEmKpp1w81gd5De+p1yiBNE82dYJWMHtt2d4JwggWJTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ReFynCsTL8Qa80XUpBXIAQ1XNpmQWv9ucg78oJQW9r4=; b=alEg0UUeboUbDQvMl4WUhSBtYjBrkG/fhnUP1g+I1l3jrodXtFO/LkBZF6jJx/ZdzYjjPaIRvyFnGFjrNTnrVVurY43CejNvjScgz/HV3LEpHK30hzOmm3uRwy10WtvaX3I96IfI6KJu9dd6myA3muJHhfOYbeIPIUxKQo8LD2hxL4amsxYsJS0ofrew9qzZQVpb3HwLsIhvRHRUfrw/7LEyO9dZpfqn+HEdEikwVtD0iMr1hQ87LeE5SBvilT0DVePivM1qCMnKoeVzQ01IB2DLY62pQcLPU7sbC+at4BRiegGDProxqjtxJQl7KOqUCika+mr5KqPnksUOhPflvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ReFynCsTL8Qa80XUpBXIAQ1XNpmQWv9ucg78oJQW9r4=; b=nRxrdVaAHzlhnyoZ0KOP9nETIBLB/ydFU+X59ph3Yp5ma8yl5OSIWs6TUeflzrFoVz0YHvnG6IWAdfKhVbY9jrpEr0oO6KN8rItTCXSRHy981/ey/jVQqqmaTuvE8vSmPbFDNiyaswPMypEHTl+GvaANWfRdvJT6DB6odfVAVDk= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:02 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:02 +0000 From: To: CC: , , , Subject: [PATCH 1/8] wifi: wilc1000: fix incorrect type assignment sparse warning Thread-Topic: [PATCH 1/8] wifi: wilc1000: fix incorrect type assignment sparse warning Thread-Index: AQHYnFIwX0T9qNvnekGY6lt0TN0NsA== Date: Wed, 20 Jul 2022 16:03:02 +0000 Message-ID: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c5930830-fb24-43a8-358e-08da6a695334 x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SU/2Iom+Tpdff1B6SWc8U295DMf/jW5URt8oQqhKvCJgY4FjCdVNF0hoTIOQ/m6DZ6AuLutCTcEBTVc+tUoUh/u+jNc7fSB5yhlZH0xxNfWQoFlcssoD6pkdXXBuwfVEJfnNbFqLZIIkq+U0hL/jlniMIdCntaYHOQ+QpqjlQ9ZiPN2JwEYSHT39vVnvHxs1FXHBoygAkK1SdSGibTiAliEwQEhy1rdJI2WPNL3bvQmmKF2JjNXtbQQc6vguZPGdI4PR7jSV1w/m5U3Uxq1kb/tkA6FBDhA2kwEzAqov1v65XfV/8EYGjEbjApBlQmXBr89upoKw76ui+nPRDNKcdAyqLPIbuTs1hmXpyCPmHYPzymeRmIeNHUnKgmp2x9BKpHv7LO0Ms15NZ7Pyc/K9qyjiOE4J1sL1Kkb8QIQb0wU3404ENovOwM/5b1lbvcfA7dXaeaTN00t8esotXYqf9cNX8j3bYRpAw4U/CU+PodwokKQdIsiR9VV8oNc7ka3sdv7yROM14yEpGDA9+CPOUgBT571DzY5mfeCujMy3A/k4Y/W5As3fdtKyGsefA6NS/f/+jI/a7wSj5hvk4byxtIQIboJngVFYSnePfykivQ9C3AbCrNtNL0G9/+eib5dTeh2TtYpv+lKLj0V30cx6bs/M660uYks9rfdLnsdY/E09vo48jWLYGMj7qkdonxT3jCtfBQk5KAPtLHpVByTYwPBh+gfDG6OezrTlxmDkyzIaZIBtLIyaDX+skflysb/wsnMvYCs9BO3SRUowUudPXM/VEiA+CNHyfeG6zCoQ0zQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5176.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?Y6qCvOCOWUMWEyjy+rT4w8V?= =?iso-8859-1?q?1aiIkc2fked0xZHGGq16jBGJJFaw0Le9x04fBkiKjA6BXjazw3Un90Nn7Y+v?= =?iso-8859-1?q?CSzGcJQSaj574/x+hZVS8AcI8vZtUs2Mosfxd3ZYE9hrMuJGa0cyiMYKVysq?= =?iso-8859-1?q?/5VRpeTQ8CsnhTUj/J8KxOhW9t38AOHqjjt3RA1CZQARVyyhR6iWpwyimRar?= =?iso-8859-1?q?GNxG/7DIRd4Q+wdsZc1pOSqxqOiwFVkRkXrPoUlakTmYkFtMPCje1o5np/Qx?= =?iso-8859-1?q?C2J+/XI5ENAX7RkCx5B6ow4RLnaXETFIrTf7KxWZYzxMthoutyBCsh5uENKN?= =?iso-8859-1?q?qsFrHdsfcM6Jbwkh3kUJ5ey9gvndgCz3Yc2TzwGW9QJJMDpXvl3wV53VhORj?= =?iso-8859-1?q?sE98tFkgQQla1Y2ssgiQb6FeIB9tYXWhZXuHf6JGt+v3zoLeWoKq4ZwB7BZX?= =?iso-8859-1?q?yBUrJ+QvyTgyXHuYiqO/WYXAsRWAI29gl2XzOkM/92fbDkptAtsXZg3SA3uO?= =?iso-8859-1?q?lqrdwiUb4QXqKiVZ04OJCBP0PLl+y2r3nUhiFSWEgbXwp1dujBBZ9SVmjj4a?= =?iso-8859-1?q?LRIqJ48RnndAfnbZR2l1jHftS46RSy9aJAkbxcnAWsVVyQ+ZrdL4hkP4qyAa?= =?iso-8859-1?q?NoxsmK9eYXey3IENsX4gup7sG4U3IcWcKBZR6VmmB7fOlt+kv/zjt+c7sBXK?= =?iso-8859-1?q?PbBjLYXIhIgfb0gJj2KY0n6G6nf+G2RuyFWS0HeqBGykIdTfrrFp95LMVXio?= =?iso-8859-1?q?YK69jIU0tTxRj6zhxKvGBQoy51P+F91gBgsqpTdAVhYXH0dVrekoz6KhC+6D?= =?iso-8859-1?q?1JAfD2SfS976qJyBmO99oLJNGZ+Uu/kH0NOw3FCmTjX+nmo1ud/0wLevtbt5?= =?iso-8859-1?q?exqpvgW8HacBGEL8Mfc9akP+xnh7tjSFXH8j3BGG9jfA3yTy/9BTrGqKVMmV?= =?iso-8859-1?q?k3vPcG0KYI6d7Ya07SCCeVWzZxDMbhU7IzpSP9+rzm1/+l+H/YZ8TVEEDijL?= =?iso-8859-1?q?fh+6eE4vISeDDhvQ+fHZ54v2Id4W+dK6fm84Jg8XdgB3fq7sFrPtTaXnCwLQ?= =?iso-8859-1?q?LvXHTXycNL0CqI1i+ApJwZ1L1lpFMi73UWunB9uLUiGhgkUC/ErpMY12Cj7a?= =?iso-8859-1?q?ztuHN7z29RiaLqvaBOvTv6xWcu/fRMfaZVySnal0606fS6Hw9aj97eq05Ccy?= =?iso-8859-1?q?3+w3naNG1R1y2x40fidyPGeG7nTU6njq6lmup6wfiU5fJ0cjPhL8sP78F2z6?= =?iso-8859-1?q?ker/NpDtZsac6DmJg3HMenBHh4wJKVdPexzkrideH3e9A289IQoe8xbNMuvZ?= =?iso-8859-1?q?YnT4aIFfA+0E7kF6vMT4zHI/2QihEafVZH4rwgxWUPPGZ4TqJ8gbv+Fkl3A7?= =?iso-8859-1?q?Mkd0PkhoBldHi5CZ8tlQiufNH0BgU5DpvGT0ubGQlyB0V6FMqdp+YzQzxUoo?= =?iso-8859-1?q?sqb6F/qAF/fEc5sfu3WNQxbkDzSjEBjP/QztbiRpAuY0YzyoqrN3isNCjh5W?= =?iso-8859-1?q?IQ3rR4PqZzn0Nkk6iWrE7cFjpSZGDFYxdO0y9k3SWe2ITVSoGwFNNkMVecmw?= =?iso-8859-1?q?kHFqX2asLzpIEyhFKhnkklwbx6nCkkJr2cuM0Kk8NQgyNh7vp1k4Wp4mP/Oy?= =?iso-8859-1?q?jUVemfUGmmePRbooBhQiE/mHv4wL8KwE+cAJf90d2PgpCAl15SnqTFt2cyLY?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5930830-fb24-43a8-358e-08da6a695334 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:02.5762 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HEQc5D6ViEou0oOUQyz+TMQoEuGvAr/Nl8KQwieCEwz4AqVdBLwFvJZR+BYI1ramzJVPtigHxOdXB5LuOjfVZy/1y1D2Ty0+k74E4P58m8g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh Sparse reported below warning >> drivers/net/wireless/microchip/wilc1000/cfg80211.c:361:42: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int key_mgmt_suite @@ got restricted __be32 [usertype] @@ 'key_mgmt_suite' value is expected in big-endian format. After receiving mgmt_suite value from wpa_s convert to cpu endianness because the same value is return back using cfg80211_external_auth_request(). Use be32_to_cpu() conversion API to avoid the sparse warning. Reported-by: kernel test robot Fixes: c5b331d4f550fb78 ("wifi: wilc1000: add WPA3 SAE support") Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/microchip/wilc1000/cfg80211.c b/drivers/net/wireless/microchip/wilc1000/cfg80211.c index 5c2c7f1dbffd..19862d932f1f 100644 --- a/drivers/net/wireless/microchip/wilc1000/cfg80211.c +++ b/drivers/net/wireless/microchip/wilc1000/cfg80211.c @@ -359,7 +359,7 @@ static int connect(struct wiphy *wiphy, struct net_device *dev, memcpy(vif->auth.ssid.ssid, sme->ssid, sme->ssid_len); vif->auth.ssid.ssid_len = sme->ssid_len; } - vif->auth.key_mgmt_suite = cpu_to_be32(sme->crypto.akm_suites[0]); + vif->auth.key_mgmt_suite = be32_to_cpu((__force __be32)sme->crypto.akm_suites[0]); ether_addr_copy(vif->auth.bssid, sme->bssid); break; From patchwork Wed Jul 20 16:03:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 592105 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D500C433EF for ; Wed, 20 Jul 2022 16:03:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbiGTQDP (ORCPT ); Wed, 20 Jul 2022 12:03:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiGTQDN (ORCPT ); Wed, 20 Jul 2022 12:03:13 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4A0D53D34 for ; Wed, 20 Jul 2022 09:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658332988; x=1689868988; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=cT6DPl2Q5qJX6hK8ZD0i8MBYsoD/JuCZXpqlfcnhZlo=; b=jfIit/DO1cGjj0rIWMS6hogN0W/bn3wfsE5LJoL9+sH9IeJ8Exx/oDnI 8njIKa2RFNA3mE5+jzm0HEkBaSgKtzhFPgIcEghPtI+Y6MEQmSS/RCR3B ljrlBpzH79CXBT9ZjqiOYJ2kydOmBHYjksLy+x/wt2QnjQvCEWTC9QQdc iM8qHhfq/aQ3Bya4iYwN75Rjr/mIAKGAf2AJtFdo0/2SsP+EmOMYOiJKn YGtjJnyTxX3oozmzdOthyfGXrkx0hXSlqEqsfFjhP1nEMFoeeHyx8BP7N FNBYVKLlo8NmkQKHOcYWLtquk+Oc3Q2WOKcHyIrobF3E4kLUTT5/tbpVA A==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="183021447" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:08 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:08 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=js04f6g4fkAdz3GtVurPH+acAKFsxquzsXk2LcK++p7gybYulITVz3JhOw2mf/pLUczk8cH/RY6hB62aGyt4nelNq7YXnlbSNcJalg4/3+/z38TtF66cnaGUR6TPQ4qD+4jdUiB7v0wJc6j7MzzCqhERMp1vAXEpA2UwPDqkHvM37CQusLiAOXvR0zrt3d4auh71281siRpP7fZCjEsCeGPMx/4N7hcnwhJDldn2E/O8gSQjIQq7hQmK83qE81rWvf9Be5bC55WWUUcAVOoavC5+GazzN2gK5n0TwHsEb1JumaB8pJbyAnUFK74mUs1kiO5HBGC5SDDA8lh+Ume3bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=d/kZ4jKZghk/+2mlGr3b/S4D4RjPQe8PI2c601yaI6U=; b=QMfhYLD06jZhyrT7+/gxdRLIU6iflzgX76SXyAvSt26GkmPDOWdeWq1/o+lmdwL6KeGAeWTS8bhFq14yc0adw5j2qi5IBSs3LeNQcNgeAoUds/Zmz9hWUXcr4XUJnwfPHwjsFQ2uOugJEh9ANl1K+I7Trm4NrFLqE6KW3UQx0xF2HDlbcLkxSC3HnHYy0HB9pf3NqqmgEwYJViQYgx8jN0xi6mTZEdn6D3dKjN9hDR1w8QTA9sokHQj0lYnsP4d6rl2PzjdGoUMaliQATNXxyhNWw3xkjFsiOmqyaBM8FWWl5yytvmI17/EfFO7f9xlLTJ3Zk90JuMjMSlrs5bOuEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d/kZ4jKZghk/+2mlGr3b/S4D4RjPQe8PI2c601yaI6U=; b=vXw20Hj//1YIsbS/IN5M2NfdJJWuyHqeK3154brX8ny/1CDRqS05jfxvB1bDrViQW8TarCu+Go7KwGWGPe5Glnw4FdaYmoKuCWPnH1TORpxTbswNgYI6entB/tJWo6M4F+XaTJxig7wUTZyexm0ceN+waeP9OTqp5BoMb3cPqq0= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:03 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:03 +0000 From: To: CC: , , Subject: [PATCH 2/8] wifi: wilc1000: add WID_TX_POWER WID in g_cfg_byte array Thread-Topic: [PATCH 2/8] wifi: wilc1000: add WID_TX_POWER WID in g_cfg_byte array Thread-Index: AQHYnFIxewSe1xi6H0yRIqDwxfQI2A== Date: Wed, 20 Jul 2022 16:03:03 +0000 Message-ID: <20220720160302.231516-2-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: be8cf7db-a2c9-44f9-a95e-08da6a6953be x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 67q+1J6g4CiilwzZU+wVI3FR4qFHDm8unCbEkR1pnKj7Q+pKJh2GJe1zduIiTnsA/nDBRvpVDsfDo502hfu9TBqvNASgx6ANNPGiiuZrqbJTMA3GxNQQncH2cPyAZMrdlHlt5hE5Cs0EwwkyNUWIUnMrJCPHc03OoHrhww7AdurW9c9iHPfJQch5JpyS3TUcDDn1VxK+99rHdp2Ex0U0YwnhZdqFTAkstzalLKm2YvYz/huBNbeNF+stehDdee0L4aK3/MF/nFZcacHmUDFr9Yj9m2xKNRofr0a2E0PkWlGys7wuUv4X23awBhDr4t/7n0Zvwyogka7dN20vHV3+z6ALr3uaRHPb7s7ckonus7DIdf9ln4BoeQaRIB/zyL7HhTF7TmYNvjhp44iGTA/CXLJgYFUHRtiwgaYQZUaNCc7DP+vsLDLLfcyZMcaBt4R2EPrwUHQ8xO8nUho9lpqLJu9AgNiyisUpXcHOQ7ila9OMFQQBwpwdeuuEkqFMA1E7KF7DjKI34P5PUiGDJ4qqcljC0t+fVf0Fvm7UvrFnubnV8b21TnXw7ZHIDDKlnTnruDv5Ar8fxaglBZ8hKEAn/aZrezjqHMs3Sv/2XdNsdZ0Mw6ny0rMIWhwoQTMuacpO/qFdc7h/kLX4myyANfovuFQ1WkL9P1D4aTnTBJoxK7lu3fTlxZzsoi1oKlleVivFXsqMh2EflNkSv10krtqXuB21K+i8bVFppu1Fw7U/F61u4kiBMQFlxbzCpXUP4vb43DnR90+1EKSLskdCgNeGHabPci+xt4n4W4nctVrFYS1Dh2/37hspqtBiKjnKiJq+ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5176.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(4744005)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(66946007)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?/UmpujSMYW1C86aZrbhHt2a?= =?iso-8859-1?q?76Jxg3hxZrdgBs5J8XjlumPRn4BDdutGyF4H1EJcB1iyzt6IEtRrgELtfVVD?= =?iso-8859-1?q?6ZW2GiQwUNhcrd+bpqtrSO9/CkvFkqyONljZ81JSlY11O9XMyybM2v0Y/YLg?= =?iso-8859-1?q?mUqDlIBAhMjgl+AklRGXIf2ClqfAgNwXQi0naaELmGKCvIpvYOz/N3b0sxFU?= =?iso-8859-1?q?2qAkwFK8iIGqfP+B/bvctrs97eKQ9MzxsfpJOVA/cWN7599pQZNXNcJRmC71?= =?iso-8859-1?q?M6uhSSHUP1Cll/PHjvDFQh7AGW56v5rkPjulixj9pwLcC8exmMdfQwZNdiQU?= =?iso-8859-1?q?/LFFdzmFETwZILHtvHHt6+HuKKWL/Bq+tPJp+JtcGSbTi6XGkNju+JHhNNba?= =?iso-8859-1?q?gOEyVE9qohZQ0ip3P9Zdba5bUpgqfeOdn8aa4MoQoJ8UWHxOc3VI8qXcfw5+?= =?iso-8859-1?q?PGLP1l2uQjU9D0xVNBVtt8tLef5ylO5zQFRioi1/isAdFSczNjh/tOJwgh7+?= =?iso-8859-1?q?wSJhBYyr7K3tOu3SqOZ8ZOmfKFoJ6I5aPGIYTzfohRPl5x1cJCWP9hbrbN2J?= =?iso-8859-1?q?IcQXEAJ4C1vBLVD1lMVvNI6+qhMIbGNEozqtQ7Xw/Y/e+z+g6mseIAdQEkx0?= =?iso-8859-1?q?/XosyZZYQsVVsWa4THYtVCZp5OAQYDWfFJKEWZhiwUXz2MGfVv0x05QqjvTx?= =?iso-8859-1?q?wnnlbWLahwL6UapM75uoNYzOIpL80LXzBd9+Cn3dEAMhR3/G43YvgGlOtLew?= =?iso-8859-1?q?6JpcxfXCcCeyfeYR/No7GylO13ypxTtqiCoqvDbKmSNf0WG+nRuOgRmXyF/M?= =?iso-8859-1?q?tlPXkWf87JlS6Q2kFKA/rHrQ4RjAlpBsizIZBCueJCExiBJyRPSfnhCAbP9E?= =?iso-8859-1?q?mQyRXGUXGyztJyFZCur1tofdK2LwhPvwBgvM+HSXQb4m7Htu9mNNsL+WFeJQ?= =?iso-8859-1?q?YraA+z9YdE9PMi0hSDKYFof3r5y4OWA3dhrnANS+oB0C5gPPBk9sjapqVUuW?= =?iso-8859-1?q?AJBBNkviIV2mmNzDt+ITTkZvNZodJGr/NLIUlJofQPAZuEfb9DU5wXEnLtoy?= =?iso-8859-1?q?aNCunITYJBEmcaxJIayP1wVnRtv2eDxe8ITnaiMioSQBKRSw4Uhfxk9Lsw1O?= =?iso-8859-1?q?yVUdIhD3CHmVu9KCn/zZ77MjjH2vZ5D1u/nRUhuHHRpQreHgx8adOjzIpwgg?= =?iso-8859-1?q?JH2170x3pCMGNVBQBlUQPGRMoBKZ0ScoqqPNFVnfzHgVJJjcle7j6Aqguwld?= =?iso-8859-1?q?yiLpO10bBeUabATR+QfdGwOvMEp6tUHS75NRby1xehYNAKHGx6a8sUWQK+dv?= =?iso-8859-1?q?OkVA/bpaNmU8adJkZmWZcl/fxetmzTUG8p+dPcj31w+DVw8U07b/iOD53Y/2?= =?iso-8859-1?q?PUoZwVzYlb4x9eeGq6jozMBGMvyweA2Gn328UqlLF3Aj0h1IYYLLyi2LvQ6P?= =?iso-8859-1?q?GglsiHJmQst+D4z3PD9UxAjhEX5l8SSFA8+m9PBoe0Q6J202Hzefknk3Q0Hi?= =?iso-8859-1?q?vyizGD50bp+8Nz6JFuK+fkILYob1YBX/C1tEoxd9RFUJkUj76oDiWdDTA2F9?= =?iso-8859-1?q?ExMeR4UM0LzPwVGJ1zrRnDSUavl4wiaWwOUJQfFO7gDExeuR4Wx3xDJSt3p3?= =?iso-8859-1?q?wAGsIrHaPWxzNu7F0ls8V7wG1fq/STVWV+O1ZbNfcyncESoAkcQTOnv+U9yg?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: be8cf7db-a2c9-44f9-a95e-08da6a6953be X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:03.1698 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uvHBOKEr1YWdD5fNewRGFNMTEa7A5GXULWsiHVDOOAu393cCsYneMuxtBqEr1JyQ6c6mY27ZwsFMj7BQiTPcS6dbpqSvICd94vnMQ48MpkI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh WID_TX_POWER WID value is fetched from the firmware so it should be added in'g_cfg_byte' array to store the data which is received from firmware. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/wlan_cfg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/microchip/wilc1000/wlan_cfg.c b/drivers/net/wireless/microchip/wilc1000/wlan_cfg.c index dba301378b7f..60eaf62fd164 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan_cfg.c +++ b/drivers/net/wireless/microchip/wilc1000/wlan_cfg.c @@ -22,6 +22,7 @@ static const struct wilc_cfg_byte g_cfg_byte[] = { {WID_STATUS, 0}, {WID_RSSI, 0}, {WID_LINKSPEED, 0}, + {WID_TX_POWER, 0}, {WID_WOWLAN_TRIGGER, 0}, {WID_NIL, 0} }; From patchwork Wed Jul 20 16:03:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 592813 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D51F5C43334 for ; Wed, 20 Jul 2022 16:03:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232073AbiGTQDW (ORCPT ); Wed, 20 Jul 2022 12:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbiGTQDT (ORCPT ); Wed, 20 Jul 2022 12:03:19 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CC4F54050 for ; Wed, 20 Jul 2022 09:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658332998; x=1689868998; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=agMHJUtS8wAPlgav5zk7QPhmFnWGX8CQUSKb6esfNBU=; b=lTGb5XQrAmkdI0EShk/q6wDltXWtO1sLClhv7+fpHhmRAG0JvZamfGkx eaSeeVEOOkGST96b1SCd9/0XkPSGvJx+Xr2XwhhvIDo72RQgYAMMA/Ocw aHSUzprfNIGmzKM003vQnFZN6Z2Ih1hlqlVAqWCBMbONQjQFDZm0l3HW+ yqvm6A0/E7ASBDbIMyT0EEpn+cW1X8tod7o+BPH+fh8CvrJE23vFlbj89 k16k7ky5jCwJh2U5Hv5AfU/Bf5MXbfDjiatcwf36NyqCjAESILM4odLfE qIr8abigYkXA96+RBtsOGdK44OoECpCH0czQQOcyAhGT1cA26atzl0boO w==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="105374573" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:17 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:17 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:17 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hyb6bcfHRLrejIH3L5GQ6j01nBosUlWI8+5aPKJKreoxTgU36MN0JuNYZ01U5zm8yodSIYybHLGU//86ra/NU5WuXredIrKK0dnHNEzSMadR83ugJeBvLgRruTTGSNqzHUuXFZL5/9fUV3s3GB4G6YvzcKEbRrhorf+sq31Hd3nAzGHJQZ5jW1gJTOK1lWzBL3VWbLis8XzJC1qnS/r0teHKw7bv23MixYxtxDPwATINKifma36oeJY1GUkxafHlQnumoF0GhSJ0muOIoHOBPnKVoAefBLcaPkq0+hShX378LUtgCe+etRJYoRpju9ctUGENagf5wxjUtuxbCMSV5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ftrMiV6VMVlwoMbZdE0HMC6S5ovsuJL42MQCigkBjOY=; b=fIqu9uOZ8P5TNJiYTBVm1e9LSZcxIZPiy+Vqd5qelLhglPO/q88xuyPk6nNrUTyaOF/RRXnZeefcnK8lRvQEeTcwBM2rTI80qv4FZ38e3emPMEGQ9SO34YxvGPqpwPY4uc+4HMzcE+19w4fKRNAkBALRA8ABxvusEfpBlYfHz3oQyIue/pyUAZfIzRao5WP1YRoUzQ53dM9z4ZsTIheoZSBLVVOK5fswgmVGP1SMi0I3mtXu/JMimwoZQIG8O99xMV3q/VZlAfPMuk9vYKmPzrN4FpKLz0qPPRV7d74G6f2fhoODyglu6Q7gmuVAZ52Av9NtJEuFKPVeJtIaLqA3+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ftrMiV6VMVlwoMbZdE0HMC6S5ovsuJL42MQCigkBjOY=; b=cm8gjLlnRlyNl7Xxpg+4oofG25+8eV4h53xROEOkXHcSk6XXa1sMXJIEg4xc4dmqFOOhnalS7qN0/KJ7O7ooec0hFxeIcvccJ1Zm/sVwopWIC8aHLzShitvahn3kYrWIBGpUhi/CCcZRLq8b2c6vWR6xF933o2/dHX2zYpuePwQ= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:04 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:04 +0000 From: To: CC: , , Subject: [PATCH 3/8] wifi: wilc1000: set correct value of 'close' variable in failure case Thread-Topic: [PATCH 3/8] wifi: wilc1000: set correct value of 'close' variable in failure case Thread-Index: AQHYnFIxs6iET20GYE28HgWm62p+Ow== Date: Wed, 20 Jul 2022 16:03:03 +0000 Message-ID: <20220720160302.231516-3-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8be65622-e0df-42ab-1499-08da6a695431 x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: D5jYS+/5o2R+jxgkn6teA8leR+hObRlyt+5G3Edn5O9JDeshU93BbThPb4mhhyzYpD8pwxF0d3SlLZh0ndR/Z0BBEkJgmEfnTw0kX5XANLGxZARAOsdD/klguAXHsJL5YSyLwW7fBQITHDw6FIFOPwylMgpFssgnSFHKjO6bxPQrPvqHhKUzE6I0weIG6SxRsb57M3Xo02OeoR50VmYbDezP+8pYy98XnXoB63Wxwpf2JWe56meeHFDDahcOws+uJd8to2Ed5ytkNGWA7r0gjD8HcEzd8tgatY5Diwpk6u+Itb/gMyuJnwfgmUOnu1SZJaMAKJaqND26MwTYB6XBOuaCF/yT5JiE0U1XFda6jTKUjN+tz2pjOmzuYOCH7hTNfShTxCbe2nKlkl0H4GypoRxJKsIgzyo9fl9MFCN5oLqPE9V4KenFP2QgSAqUtct8LoHVA04nOLJkNfnmuJmw9XlWHFvYhT0AOQkb25H1SkkcYbCrD0MNgxBK9ptxIVF41deMPoGfkiJHrkBZJHXpwzsKOUcSCW4uxQlYbKpHxMSPjIySIoPAaYMEq//G0UIdw/sIfMskIlZe/ETZxAxuc98wgpSa+GK8TxGcLt9P+JIJrCTuT6tb2dm6RbiIF1f2yDgRlC9YBga6TJ8pzSLM1lAgc9jObuti3YyG3UxgCRLoV1yKFrQyO8LNzxAPt7yJZxF0ebx9Da5doLfWuIrkBK4qcHc21GksaoNaCHGj2sLyBDIRhuTibKPKH1qmGa21e+R6qdrvTaoOBu3KBNc5ewLtFkOfanlukMUkPVPFnL9Ojf3kFB+rezAxNl7kwt5K x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5176.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(4744005)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?1MKexBTT8ax3PYkgKaXGLEI?= =?iso-8859-1?q?PFG8qLyAjGQhv0lqIay17Sfy6z1135GnBjYS7Jpo2p+oO7ETFxfgVfvhy+fJ?= =?iso-8859-1?q?4whAB6+EQ+bba8zGFh+NgqAaoi974FjsofCNbaRXLiJeoJxC1YYiKkPqrAE7?= =?iso-8859-1?q?3ESPXMMqoxQcdurP+UTHiknI1KOdGTAnGhtw+kOBBNe+6bXqmT+JZoF38yLi?= =?iso-8859-1?q?CDVWFeRn7XIYisF5kYoKvojUTshdpntX/mlL/r91gAJLcrw8a4VXEMaENMlR?= =?iso-8859-1?q?4KieYFFrQ34I7yjIeQUjc0Crx4a7I9OseG1l/NLlXTPpkq9tXn1ZSMEk46yX?= =?iso-8859-1?q?kVVUq8Enw7itp6LQRNtRy4zH9/BuNA4cl1xrG8v/goJuJz4nK8BSo//J6IT6?= =?iso-8859-1?q?8L/1lN4W0gNo0r2qkLESTqSGgeCDWqBqxHehTyL5kxDMu8aMBDwh0sIsywkk?= =?iso-8859-1?q?zSoy745+LscRh6I5HyY34lMuIFwYGNYsL0RSu8Vxvz4fNz1EuuQ2Dsq8FcXd?= =?iso-8859-1?q?Y1rewCzqxDHAPZltLu7BCNMBniKRLpFDoYKsG8LJAlafaqYOfKlXY2pjLIFF?= =?iso-8859-1?q?wjyhGzwnVc+7of+sXzX3vUFdaU5y7tuQ7D8n+8VbEZwslZ5kX4oVBx2swvux?= =?iso-8859-1?q?pYw1keHpb9bfed6R6i+WNqJ3K7ZTKNhV9Wjf8sWFrdnBuPanaFBeq8SXw3Vf?= =?iso-8859-1?q?fYmTMyCwHFXQ2wq5kiJsm4LtdY6Bh4t9rLdCziZKsKJdHp/H3bl/zl3d2xfM?= =?iso-8859-1?q?P2SxWIVHWADCfp+9TW3mi8cAIktRmVAlQ9+duFg0wrogvWQEEULxxFvWZDQk?= =?iso-8859-1?q?MDut1GxMG4j5htDv9LyE+d0YHpkQFLcHB7N22nTgrpbSVwMemay9XPr5tHTC?= =?iso-8859-1?q?fdd30bn8j7bRYK0I2yMc10exx17JTuzWrqb8xETongBPQ2UvYLnlHtWWEaA/?= =?iso-8859-1?q?qPl5RDDMTDCOphEHGWqPLyWBqG3FsFQexYQqEJkS6on7DlT6CuYDpQVVJw1J?= =?iso-8859-1?q?g9Pd7Ax0Xh4P1/LADQHiQyHGopD9R0xEhRqfAKNuUJxerTJvLn4VacE/M1cp?= =?iso-8859-1?q?DRWW3taorcDsKKSmMEtWhBcpw39FZmM4//QHJ/+H1ya94pcJhK3Zj1woFlmF?= =?iso-8859-1?q?FHb85Iu8o4M5Aa5WpneV0DDe1yeVgvjo94hm/9p6og19SoMk1m1HbMcHV564?= =?iso-8859-1?q?QfFgZZtbpgh/JvYZxTmyRfO7lpiWo5Y9fW8DYQsD81aiBrIM5qbLPzdY3hPS?= =?iso-8859-1?q?AhicIo7dE792+BpYTPgVAINk3VMt1WdBhRBpb7jixO/I4AUuGFzoCY4wjK/f?= =?iso-8859-1?q?SckPdm52HY8OCaty74+8NDIcLwfo959NFr7AzWP8IMKbh3JlHQGSBOCjDlAP?= =?iso-8859-1?q?scSMr84oobmRXc3STvVVzJH/mtrjyEJ7mAo/yxEkz1OBQ9HeVJJWtMzFw9qq?= =?iso-8859-1?q?rwKE4U8BC/9cECli+NyudZESTbo/zEstRVAqe8UxAVzMv7tqGI7Taz8/C34c?= =?iso-8859-1?q?t2rSaPNwl356S5Sz2XNyXrRbbgrbZKCV3bQQ/m5fQz9y5newlZ18QsqqgH8W?= =?iso-8859-1?q?b35PFfcxVQgvxf2Fs/SrS1CA3iKoN3UPTPOC9VJ+jgaoZein+EpUZpp1TZ5e?= =?iso-8859-1?q?h0zprZ5hi6IEGax/cZwafZMGwf0L1+Z3BVisCgZPHU+xyi6Yz7fkwk0RiPL0?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8be65622-e0df-42ab-1499-08da6a695431 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:03.7648 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tuYSNYvzLGlyuLEFV2y56tu35AT0HNGGrC7HrWvCQzBrJA3Emtzn4Ovp2kzoteoMDMX3uc9l4dHhI7KeT3zp6DYFc1XDaA6nqR67wU8IQ/k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh Set 'close' variable to '1' to indicate closing operation when initialisation fails during wlan_initialize_threads() call. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.c b/drivers/net/wireless/microchip/wilc1000/netdev.c index fcc4e61592ee..7879446f282f 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.c +++ b/drivers/net/wireless/microchip/wilc1000/netdev.c @@ -472,7 +472,7 @@ static int wlan_initialize_threads(struct net_device *dev) "%s-tx", dev->name); if (IS_ERR(wilc->txq_thread)) { netdev_err(dev, "couldn't create TXQ thread\n"); - wilc->close = 0; + wilc->close = 1; return PTR_ERR(wilc->txq_thread); } wait_for_completion(&wilc->txq_thread_started); From patchwork Wed Jul 20 16:03:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 592102 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F184BC43334 for ; Wed, 20 Jul 2022 16:03:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233315AbiGTQD0 (ORCPT ); Wed, 20 Jul 2022 12:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233172AbiGTQDY (ORCPT ); Wed, 20 Jul 2022 12:03:24 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF87A5466D for ; Wed, 20 Jul 2022 09:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658333001; x=1689869001; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=uZgP9VIHQFVV5BzTT0h8WkMFqvxZKt5wmqjdYmFeq+Y=; b=ixguRjGcBaxh1f8apWSjjFAyyt+ZvFk61OlDK0Nw1Lu6pDW0lHJxqXy1 eyngeDMoyKMuQioZvr00zxzSTpJVByuenJ5l0TUR0fgtYr9U9EdX5YOWG T8YMM1iek1Svn9bDS7Pyo70hkKSgxt49kCRz7vhHhERb5dYoWqBmvN8+X /26HMO0ux1LeiHkpuA9+S1hvZZ494bbbU5Np9t3zDc1ueamjRuvgeZDcN jrMhZdBYDkbnW636RUIs746xh4IvF9q08CPM/pnsFOOS05EQh3Mt5syiy 0qmgCrrp3w8r5yAuFvnY91fEEw+svSpsQsTOJLvMaT/6oCYMlVm0+OMDJ w==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="173122941" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:08 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:08 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WjBtFJ++cjw4KD4A9kxumDTHw3nFTUyH6c9TnvVJCWlVp84yg9n6wP2H+b91hkY3vZSrIYDrS1B8MxeiuyUPzF8YusV5660CCsyOBz5yG+m4AwwoWFEUyA/OIppRXoBimwrhO73eaXlsoM0ASHBMwIYyIfNjZjleF/Wm0UoduD44Tz6mLClByPf6JjIT1HyMadCA+9jTjfo7eGjEoCRAXwz8MIDVork0ON3C1IyhMFzETay9IGF3efYLGUbzjqqwEbxeWFArTRor5s89LHSogfwntofyL/p8/eMJ73BQQrZbbHon1Xyla4TArOz7HWqeSYL+w6oDJI0VeqHWzs3HXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LOuXvQVx5xdSFn1oppAKOc2fhy74QGJDfB3/SqxC+zE=; b=U8ko58Ykt+16QqOxai5Rsf36q/fwYLx09T8uUYx5yn3APYwDETCJJ5PvIg94cQi5vKTiQOh1Fkjv69VrEBIFAGhfyzzOD1/45nliqeiT4qHVQUJ8MmNJKAkAhXK91F8S0HmiA1t+Crm45+bT7JSpYAk9YECZ/PMu1j/ZWun0JFTi/RzH1ZK988jG/x5Ce3VqBfAtrNSD6CXr7pRxWl7H4DZip8Vte8aiPBTByN3uvRkxTsKtIBh7uFN5teJQ8peVKFTWnZZtiOfOTQFSZI2GkTPwTjm0dN88ewDrhhLPfjXDxGbrEkTd9pPA0may2xrbHJs1r7TFbmz6IWekjm4HMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LOuXvQVx5xdSFn1oppAKOc2fhy74QGJDfB3/SqxC+zE=; b=BGxqwrCVegLi6YnH07pI5ZfkIhuT8IB1FAizPupsj06a9ej1r2rNwq/24/5OsBuVK/7TvYZA7xhrqxP6hCu7O8viJmW1FShEIK/rU3duduieDclcutGxaM9xuZPAT320525zccZ5HPfYRJZKhPWuQcgaJ3d4YPUXpwKohNrDS74= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:05 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:04 +0000 From: To: CC: , , Subject: [PATCH 4/8] wifi: wilc1000: set station_info flag only when signal value is valid Thread-Topic: [PATCH 4/8] wifi: wilc1000: set station_info flag only when signal value is valid Thread-Index: AQHYnFIx4NLfwcl9sESOagg4tMRVTQ== Date: Wed, 20 Jul 2022 16:03:04 +0000 Message-ID: <20220720160302.231516-4-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 40058d9d-938c-4703-6e05-08da6a695490 x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4BwUBKbJoZKeC/XJuOM0NaAGcrxf7oNIbWDcS/kKZBzH+jXu276SMFCxWaT7ue4n1BV6OzHxGFdMqLFhEAZrYrZrNpPuyB50Eu2fV1aSJCotAl6jGkX3kT0+ivAvmnYGcXZwrzgTYh2cb/BzaAUG5eWxSPxWdvYPGho3/VUi01Kz1J+28TQ9GbwolBt6IlKtwPcmT4r1a7gwc1uXtEUi5iPZRsT3JnBOk/P57m2fwOg2v/mdN52dZePuedBMGksWaIAgu40p7gKwJSR+R/s4oV2zWZLlzhGr/pDpgCkSgKlN7jeNfkbtgsMKJEFgRYFLWbS7J1EYIBlZqBEsyyYab+YvcKh/T8xnmUgcmIi87XnkzQ2HolE/PXVCB2fvW2Ch1LJ724FxUkS1JSFOcGLdFb/YfiB+UsfWxKFXFL/pHZTSNDJGFUabCe8FIMYlA4tEG4DGe63bk6veM97loGDXPklLbyQ4OaRYV7a9SyAly8zsvSru2+5OWVk1WZGzwmV7Y4kWOKtTaxaAnkPXTNFGQHaPtRgEyo7Q7D6ijSTlCO6o6f1xMlKq9tkXBQ0uxRYwWJ047N8Aj6BZQP9Y5ZZ4a+GkPWT36T0XTk1zvdMhW4sA806zz6xjxxCZHxQEZK+YQTs5qLbWv+TApLESOiUThWzxjCikDsGfWwwISP8x5HoxWXCMZtz740Wb7GQwvlqmFqlOHpd/SQQnla0QByf9xuS0Z9+YQCwYvsRIT+7uE4ogy1Zt7xLIqpSjSr7v8SShkZoTRaEJanJnp0ILvDKHA74BfRNf2HeVA+zfKzPnqRpc24x55xWB4yD7rWIHrbNB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5176.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(4744005)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?6jZNF0UNmqGHIdZIuFvyQEM?= =?iso-8859-1?q?hW4EusnnXiWtfzHY9rXEWOKfMFleFiDaGbnoFsM8fJatKJuoonFodcUCoPcr?= =?iso-8859-1?q?FDFTI2OWUXU5sEnw9dkEk0NKvx7+c2817Dx6FyxzGbf3KkfK8nZkWg5+y0jv?= =?iso-8859-1?q?jE0EkzbVJ/3zklfgSfYuj4asY+n17ORbwaoZj1IzyeCoPlEkt9/XFBAjZL98?= =?iso-8859-1?q?CbzxxlXbSJqxb3zLXfWCsyKbn9UIjmFdyxMZdSjcMKdgbfOYWkFmP74sA6ux?= =?iso-8859-1?q?4Ckohg1+J/Tylw3P2uL4p+AiltzSbEr9chhOhGwm2KIsYMwZ7816vAY0Iiwf?= =?iso-8859-1?q?cCAGcvTLwYld0wgGQHtmejBe35lDUxZ2RvUnIUhaAmLXvVmeRIu4eiLxDr6E?= =?iso-8859-1?q?v5yWlIbbU6E+6sEhSZKp9QXk1CJDjXqx8t/qeHh51b3MYPp633fMLhVgW3+d?= =?iso-8859-1?q?+o+l+xruzAla5MYD3iIe+d9HSjI0ExZxn8PDY+7M6ve8+X+5Os+bMeNv8627?= =?iso-8859-1?q?idZILTRWUvjk7ugBweN50P1v+FSkaHWrtsv0bGoiw4ymWo/4jEVnP6f0GsA2?= =?iso-8859-1?q?uNLmzAJ0Zey2uB0lddYuJLY6xVcFMLzGDW1x6pDL4D/3rz0laW/MnZAJVskC?= =?iso-8859-1?q?hqQLeINwcVywEhtQVwUsxVmKRCzZLWxs/Xo9yX+iu51Ris73HhjWyxTcDsDs?= =?iso-8859-1?q?ac6p3lhwqbHG5gHPY8Fh5wmrw5Hir8hLPbR/pxwrSn0B4Wjmy+bW/Crb4jAb?= =?iso-8859-1?q?PWBEFL1085d56YyRuMuY+TVZZG97WW8MCVT3fObjPbnM/aD10pzcDUf0usmI?= =?iso-8859-1?q?dBUGlOxW+aX9XHVc6ycwJeaxmctJJINMfgvpWLqanlSVduOoPZBf5qyHIuij?= =?iso-8859-1?q?Ev6bCD2sGSCAnsQVNUjsmsbtNTTlpc4g5SDDmd1Akx9SKYudRnCtYWSf406r?= =?iso-8859-1?q?ScjomCYYYOwR/2vquxqmhfSPC7f8iw9UGmemQwBqRbc2Jk+fKPC0dfHKXfHI?= =?iso-8859-1?q?t7nz+8egMpHpWcqP1Zx6mKJJG4th2ECGEdLvyKunnEbv5d4cVWpQ4XWSVPSV?= =?iso-8859-1?q?o/PWp5Wc5VSLEOiIZwv3ys7OtvmbGdN/1OSiDqnha0KpmYGoevHi1/IriTnh?= =?iso-8859-1?q?LZKYlewxAYKvnzf18M9r/MrN6OSi4gRt4CT+SzMf9jCZGcDbKJzPFsTR8Q8X?= =?iso-8859-1?q?wgJrAKqTv4vzW+aC8w9dTr2N+V+qvPaNMH7zOAx27btCuvcQJvmvAC2OZIJ4?= =?iso-8859-1?q?dKcMPoQOQsmqOJPHAFDX0xzyz9ohqrm5CvkLCJ3DvnahUwNkH33/hGPjiRZG?= =?iso-8859-1?q?qyKP4snhWf5FybH4CwyuHKnWL/No7pCD8NvUsB/GsYUAarGYlGEOiZaPz3Z/?= =?iso-8859-1?q?3fGRbmHK+Gmg6h2cbJ4tuCKYGQPOSGN8GJ0o/fJQ8DlK748i8kNGR62kaj2S?= =?iso-8859-1?q?QYObIfFYwTx6WRd+PKXkKQaz8bkkU8VvYGa9F1/qjHYaazBGhW2zQsFt0/jZ?= =?iso-8859-1?q?O25IcQUlXEfDOST0p74zDsSIC0YVYeo70Q4ex1t9qRSQLGIjbdzVmnsSuBWe?= =?iso-8859-1?q?WT+TLsgPyegBVIfVELGd9YXdoiycGM2sjFYtOZvZeP2HC3IMFWWpi6SxTlo4?= =?iso-8859-1?q?0qXwwAk3D9zhZRwUQz/nd3lpVnUXdTYFZICX/7YI4ehKNZ53KcR13K58ezSc?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 40058d9d-938c-4703-6e05-08da6a695490 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:04.2959 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: S28IYio57SWTrjzkRzKyUoMGyoceh2flyM+EEk5czHk8slr5TJLtbaraiqkIXoOwQrFeBhgFb78TXkXiZWeuafcEzxFOlG7duUCufjT9B6M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh Set station_info->filled to indicate signal level only when its value is received successfully using wilc_get_rssi(). Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/cfg80211.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/cfg80211.c b/drivers/net/wireless/microchip/wilc1000/cfg80211.c index 19862d932f1f..1e184ac93afa 100644 --- a/drivers/net/wireless/microchip/wilc1000/cfg80211.c +++ b/drivers/net/wireless/microchip/wilc1000/cfg80211.c @@ -1312,12 +1312,11 @@ static int dump_station(struct wiphy *wiphy, struct net_device *dev, if (idx != 0) return -ENOENT; - sinfo->filled |= BIT_ULL(NL80211_STA_INFO_SIGNAL); - ret = wilc_get_rssi(vif, &sinfo->signal); if (ret) return ret; + sinfo->filled |= BIT_ULL(NL80211_STA_INFO_SIGNAL); memcpy(mac, vif->priv.associated_bss, ETH_ALEN); return 0; } From patchwork Wed Jul 20 16:03:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 592814 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24041C43334 for ; Wed, 20 Jul 2022 16:03:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230195AbiGTQDS (ORCPT ); Wed, 20 Jul 2022 12:03:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbiGTQDO (ORCPT ); Wed, 20 Jul 2022 12:03:14 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47DD4545E6 for ; Wed, 20 Jul 2022 09:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658332992; x=1689868992; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ulYoKxdOWuQwdkRrF4KiuuDyrMsKL5iYTrSvccEfovY=; b=LMjkXGb0wPVnfN079YaqDDRp1b1MAWyiREarA4ibSCCJ741MiOleDW7D wYuT8KYLQiu7T4JOimswdnTOuGFGNBf80ZLwcHZQ2E0U+yCMuF3gKJ/Ln Gk8arS3JsXUaQwY3vZl2+SkRf2XoIxz9+gTmTdF9ea4e7djN5rwhnThZk 6V3/vLcxDhO3sAqpuC7uIBrkQ/UU4XY7EjTCsb+TFPc2pMxqYVZHkgpSZ NGnzmJgVjqzzGEMGO5+gL9XUw9rI5KJcMbgNYsyTsOgYKOByw73RRkoBh OUiUsor9tUt1HPMhWJZ1zs6rcFNsrSRomfUYE7gXQ1FbG8GolDsXi44tB w==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="105374459" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:08 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:08 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T+3e/Sm09MTx0aZ6N7TF6qu7AXJNtzFO4ecuNnLGcX0QGVKAHtR2jRzznHh+3DfskK8DzlbhkgUhHDK53q56hhKR8jwycsfeWkcjjXv/XFYjYATVi4h2QQWd9fdH/1MtPMjHGItc8d5ZDyiwRYobgqEbqspKKV9QaeTV2VfljsTvJWaPtP6qsO6Jn3SHwl9b5FzBci81sYv1/EOQELdbd7GrLNvI2c1cYKW4Z/9qGZYFgbfd10bTs6eLh21dFYQAD3vwZgy1SjLG0vQcHxdP4YkL6pvMV942jsirbvIDrS5XGBDRlCn9aBuy2HB1aZyHzPowABB0tBL+TlrSEjz3lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4VaSb1OG4mMAr+Ml2yFAYWwGO7fA11CR1swOdW+YiZ8=; b=hFUJ3dOKYymil5nvf7W6iyne+XS4qpzVxDTJlEBd2Za23KGBc/KTk+3QfQSNZUdHZ0r0c2Kq5lHJ+iCaVW/eQom/GITRLHV7MIEod0bhR36mmU0sLvxgUJDNa2tooEIytfyOiMvh23IPaj4V12tFt1tpfY0Jg9EBhDcmEY9bx9n1Ip9TeICIzcML/oHZ1nglEFgPaFyqS2ScHK3AgyJ+jWJnxEncvWDYoznspoD5vOZF+DjpMaZhPnvjqSBx2wQdbxdsfwSDo6j6jYT50PoRbGhhNBC3vCzsDUjbCit0KUM7jo79oYvb85lbgb6Gskpl7gaj/WvQ4H98luUUhoafqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4VaSb1OG4mMAr+Ml2yFAYWwGO7fA11CR1swOdW+YiZ8=; b=BToet6U8ukzz7Ij0uIt927x6Io8j5TJ0EfYMqvqbap93KiU8RcpWZgirgpMEQHvt75uovjjsv6t9RvXLvTsSgxLcuSt5fDKALLwg8X/nO7bf75xO6bULjHHlayjMayBwZ7QpoVDTGYInT0w/PHvu7AXVxJT3gFulV70k5n7hjlQ= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:05 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:05 +0000 From: To: CC: , , Subject: [PATCH 5/8] wifi: wilc1000: get correct length of string WID from received config packet Thread-Topic: [PATCH 5/8] wifi: wilc1000: get correct length of string WID from received config packet Thread-Index: AQHYnFIxWRWMAbsz1ku8PVk/c/upZg== Date: Wed, 20 Jul 2022 16:03:04 +0000 Message-ID: <20220720160302.231516-5-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f1602021-c99d-418a-1008-08da6a6954fc x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2GD60Fpgw6VBl98mp1DgLAZ6WCnv5UV1WJpAVhU+Gog1p8PfbkFoaTmuFaf0b22eSHWyjURonvmqYcK7TqvKytSncsIm0W9MNj+cQzx4dQCb2p5PhP7tILWhCIMXZc31juRXE8cVmOmj66yDaSUWNJYhNh25BZUcY/etMzx2CG2BoeDUDHAK8s90NL0sFQdu7A2kbswA+vcW8Aj+tyTucMwqLp5Z3WUT9N2mTv3vK3ht6s+6i2+OoCmOdJ+IcyGDmhvMC4Alv6ntPwNQQyBkuk3v5T+iUh0LH9JXKjurzl98Jxw6RFQt1ZwdG3DMyACz1uOng8DkA6Z75jKRTPtq4nuj+1wfqQrNidDIG5I6PHFuHYqrBrECT9cT8JtsGt+kS3f9R8nkfjew2rjIOwRNv0GtLigLg64k2JURvsJZ5qyGYaxgMz1HwW+XTtlW67J30iyxJmsrWmAzA1oSIVKP10vI2m+Z9dt/RdCfCv/acdZZF6WmoHqF9+V4b/7sGngz4GIXOKx95qBMNVxtkVZhghvq5s6+SZkeYW56au6fNtASsvszTnl11Dh/TKZZ5UrqvyeIDo+8ZejILPEr0ObODUwM1hk2AUUveHAw0BjbTAtWO/2pWyYAGe1Y8ll2sK4rebxCUGP0A7iWqC66r8+/a8yrhw7spjpsNfJjYcvSfemxZHKdhAq6KEvlxyt2DYbuBPofRVCLTVRWdFJ2U+P2KfZGOmerYIHgQGF50Br4lGdC0EJozWxyPef0qFojWdHDWUapbD48IJjxqyYfWvHBpitTwKBLSFAIpwj2VWAo2cMMCxBh3KXd+iE788WQO5Iv x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5176.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(4744005)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?1lYjxfPJTxP3553VYedjIHG?= =?iso-8859-1?q?uD5GTFpgwMny4jTNCGC1I5PZJV1M8TWywulrCAvqtyTcbhxfE+G+RZD+zkAs?= =?iso-8859-1?q?jQhmW6RDGWf/dgVx4oyXmOnEUlhTyf/7+ys1zoqUP49K75bq2CB2BcOWHlyi?= =?iso-8859-1?q?3EE8HmQdNliWxv8eNpC3jR2rEMLDRrE0OA3S0XKsOd0BCQ9Hsf6wkaTm4dVo?= =?iso-8859-1?q?jaw6iSQFXSKTS62KpI9m9WILGPjlxMn8hebelZg681tYJ/d+9z+pw7ahX4pk?= =?iso-8859-1?q?vaDQn7LjIfkVus1mUuueuxsoksugrvdIXbc02WH6heTu3jKTT2PMqg+8uONy?= =?iso-8859-1?q?0zSge2SHhkCgdyZ2FtK3eCPWw7m2GJgMYtEvnSiFB3GUM2VzhFsowpO4dTTf?= =?iso-8859-1?q?67uqiGILlzDT0Zt2wM3xvIEVmpws7vNIrPsBVP1qPUPqcYGS8LKlqNKNBaI/?= =?iso-8859-1?q?K2PfZ2l7LndjkH7JcDpJkuUtbz2cU6+V2rynKrIeAjnL95YR9ptFcmEe8o5G?= =?iso-8859-1?q?wG7SogFY0p2UW/3KfeKIcojTKtXBplAvngoSaO3p+tqZl+KhT/JEvzxB1kWY?= =?iso-8859-1?q?D4nsL3LapEBLVJF8AyzjR4K2zQN0Yac/VAU7LhVUQ46J/rU2IjdwPNn1S3t7?= =?iso-8859-1?q?j24UoQpkApxnImzdiJ7/2i8RGMqU8wGSyyw4gF4RqFBLh7+7TAZRXEaHNlKR?= =?iso-8859-1?q?59VDYyrpztKG5aGzCYiBTZqfFza2wpiU/VFYPG636MJisGlHPQ9fO74wlwqM?= =?iso-8859-1?q?xSKSkpVZoGP1ESYtyzqGmYqA5PDYgbq1tc19gkR1kp/J35uzjeIF9GIeFvvt?= =?iso-8859-1?q?pHl/G7yaoAVSpGzEJnNDRTrjvYYw6xb1vR3xG0oQhkmauSidh1fb3YWhdsPr?= =?iso-8859-1?q?PIx5IJ6ESd52cO5l1dJTYiH45xSQySHZDsTkIMW+lcVLicNZ2ZcpetTndfQd?= =?iso-8859-1?q?bA/h90wo00YS5vPJaTRUpP/hZYEi2pW9jEkN9S54z4MpVItW8cnzfS3YsR6H?= =?iso-8859-1?q?SwhndkGo5pLXtdaBCSE/ZboOSleQIQKb8DI79/FC+rFioNteXJbnGpHaaPZi?= =?iso-8859-1?q?uGk+9Db9yNvl0VZylOB6Zps9dbs159bj0+UGl0uE2UGea42mIhYMl8ePY+IQ?= =?iso-8859-1?q?+NaN+vWkIJqFpPIW3jYNbqSbjTLRrmr5EpW11zyK9Ceda7tn5GLMaYXddx8C?= =?iso-8859-1?q?8cVoJwhInR0+taLZdQREOi4vUNWy2bjnBeYP8U8zkwiKtihq8mB4zAiV0lno?= =?iso-8859-1?q?dBb9SvzlUlOj4NvFyfkWiNXGVRsxZ6RMMfhz4rrsqAb5S+PGybrm97IPD1ot?= =?iso-8859-1?q?rO2oXMNfLK5olMkZ/HZZwfClhWo2wn082VVvoP2Fm9ahGWTaTa39Hw1Ll9sS?= =?iso-8859-1?q?kIqP6aqmMUjswmvj2RX1qT3bXt+IeO993TdUaqaFNSc2LbWLAP/ppr9dWGYL?= =?iso-8859-1?q?VDjtMrrGeXUuYxybaEQ3pjB7n1q2m2b4w4dnD9cgvcAJK4+XqQI670tr70z1?= =?iso-8859-1?q?pU1B8vM/rfVaWAlbaXW6TPXaaE7YdDxeXpy21H7IzyQZHs4TkREIP2SnbqIP?= =?iso-8859-1?q?XfXS3E9aH9uVtjPwOitP2iX63BM+Sv9yhA6noX6j5R7jBAXv+/9qDCZrCqfp?= =?iso-8859-1?q?/fFXah0Hshc6/OV/jXE97kwSu4owcg9CV+fCr7DH0ff+5DpypnpPqbzpiqCo?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1602021-c99d-418a-1008-08da6a6954fc X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:04.7646 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sC9Jg0ZilIfRLWjZgwlVqj+KLXb4vtHYHW/Zc6T23qWF6bTX8W2I9ATLyeL2gnE7IVHIj7Yi5ifSOjseQeLFZpcBdhCyykFsVRR3uuzQlmU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh For string type WID packet, the data length is received as 16-bit value so use 'get_unaligned_le16' conversion API to extract the correct length. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/wlan_cfg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/wlan_cfg.c b/drivers/net/wireless/microchip/wilc1000/wlan_cfg.c index 60eaf62fd164..131388886acb 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan_cfg.c +++ b/drivers/net/wireless/microchip/wilc1000/wlan_cfg.c @@ -181,9 +181,10 @@ static void wilc_wlan_parse_response_frame(struct wilc *wl, u8 *info, int size) i++; if (cfg->s[i].id == wid) - memcpy(cfg->s[i].str, &info[2], info[2] + 2); + memcpy(cfg->s[i].str, &info[2], + get_unaligned_le16(&info[2]) + 2); - len = 2 + info[2]; + len = 2 + get_unaligned_le16(&info[2]); break; default: From patchwork Wed Jul 20 16:03:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 592812 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 352EACCA482 for ; Wed, 20 Jul 2022 16:03:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232618AbiGTQD1 (ORCPT ); Wed, 20 Jul 2022 12:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbiGTQDZ (ORCPT ); Wed, 20 Jul 2022 12:03:25 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 812E554645 for ; Wed, 20 Jul 2022 09:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658333003; x=1689869003; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=R03sb+ZaZad6NY1khhOewSS+WEbj8+gxGdhSEn1JSPs=; b=ijrXcaJ8guKilTeH5a5VkkKr37jyn9/dg5qjvnr/qSVSF8/oHmBFze9c w3E7aAdnCos2zpu/pWqae31T82K+VEa/W69YdczZrvZAr/dOpUb/ag5xr Q3LW/u5eM5AR8YhtLaWCma8J7gdqhxjlvRRK8nxsg2frDPQjiUOUNs5nf 0QmnVeWyNkTF7vA+MfOxq35MSd7n7AmdSq7rXZNjenC1XX/aZPuqGMbeK 3z9MEgw9B4Vmh4hh3diPD8eSPp++XjvFsEf0NHr5akWOsv417dq2g925M BXVrNPp37Nnj59duByYSIclHRQFz0IDcq4BkJ9+ZhMPhkg6imDlbf+Q1O w==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="173122945" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:09 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:09 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NwwYWG0EOhXrgNKUJ+l7XuwbAj1bMMNpbaVeaert23WaLgItFpTFUMWyrPM+Rj7HqwAWt2CkVNA56f/sQYfIMSh38iAPgiylmAgIxAojTGX5jfusMcBxJ9p57aJ/R+lXcPLC+MieQsFdN97Nr6f8tGhcsHLGauxYaxpa9T9yP2jeJX2uQH5p9ovNzHoreZh+eQnrvV49dZ0TkJjSyvDKbB2LdeCRnYMybppa+Uqa+jkLFCZabt12olYwZX4op62dvLiiWL3YQv9naUlTy0PatbqYIuJg/8Oyszwy2gSchtvNqpgdeMKzDwSm2iDVteX6nIgq8kLZb8KRDkhLukK64w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ul0JnRGNo4mONJrOa15zsWgRBRo+LPdW6qS6vE4ryLY=; b=fM/TYHUoSQ5h26c4etiXvqR0ZihD+RLVLEOA9wCLRX1TKbtCkXOowJCBrnshQunMaG3NlJTHr9PB25oi/hcV7baauXunJck7hChMxOTOeVwIg1q87KyjQFqQF3BrB2UErV3FUTP8DOzDy/rzlAo52t6qkoBzW9ciuXaPaskrmbhiS/ifQMR7I231VPre74+R9/i++mAfwkFipJoEJZZ6/G3Xoa4GcziV531uMPYmGT8PZekGuHWv7BU5rCzhv7xzxvpBnokBxAXUxz+XzHPjGWZuf89sj+ZY+acgI+LvzC3mqdWttUiZosse29FxoZPPvuSR/dBPgcHuxUPJH6maFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ul0JnRGNo4mONJrOa15zsWgRBRo+LPdW6qS6vE4ryLY=; b=d4arEQvyOZfZwq/iCgfYeHiVvPvPBNXKKGLONHR8rOKllqHykTvOvRmz+VPau83EOhsn5pHm/2c2v/nOHOxJ1x79RJV5Y8fGR6ZQYG8iBNlsKUCswPqT9b6I/8fM1mLuT0RF9JS66nAm23L5GzTigKy66xrMeMgLwFjxvT2XksM= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:06 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:06 +0000 From: To: CC: , , Subject: [PATCH 6/8] wifi: wilc1000: cancel the connect operation during interface down Thread-Topic: [PATCH 6/8] wifi: wilc1000: cancel the connect operation during interface down Thread-Index: AQHYnFIyKXBWLfJKwUmhG/brPRejYQ== Date: Wed, 20 Jul 2022 16:03:05 +0000 Message-ID: <20220720160302.231516-6-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 747d0cee-905b-43b0-902c-08da6a695562 x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZgpHEZbnepjUXjjzYU1PRcTQRFWS59iHEa779BZ72ybFL77UCdzNK4ai3OENuUnwvrSSNlC0HxKRX5dZ73R3hSpj4hsPeIO2ycEeeU6kwYJr2+3ZGkyIY0YTufxTGXGCZm8Dd6FHgz3mcJzQvcRAAN+bSPpGFsO/BRarT9h76MIODzdLDV55YnoPleNvvzU4HAZQGDpwFS3nAVaH0NlIFZh8TDxx++jSkM6BJLf7s2p8CQj0xvZYwuWMQIh8s4mGTg1rb/BH6vuffZ7Ewh5JxYz8IUIn/Qoo1Lh1MDWMzQqBSgat2CRqJvG3KT22BDy9Lxt54KhtBp52NT6sD4q+fDhx3VCVcSkOhk6qPP/T/thrcj2JQJmSRhE1AA/3nLpT/RVwn4jpxd/z4dRv6v9aga/Jrp3tlFvIuXZUUB2ZgzQl2RQz3JeniNW0g/Ic5evl+Tm/nJ5ms7r4fb+SmVc1fxbXRUjFk8f+jDvZUE0WODvDSoIcjfylNkrGQ9gt9Ydc6iCiNetEJwBWoKmSo5gN3ic6LVCMcOoeP5MLMYlAxMnc9mRlypv3uAmjBQRM1Tij0N2rpPCpLYvdbHer0NLN+px5iQm86kDq/pjvrSRW1XV9FA/hyMndaoDYQ/lxHNc69JlcfUVAC0IVIiiwgi26Es8ChoE0WLRNuQBkOIlh/MV1/jE0p36ZmqAYsvc6FFrW1jabzkIRSPVlMR7bWlTjx75j/XufyFKGNWHwsPJasYblctp4kJrgMu0uesGPkju7MoV7DWoTzyBD/g1wL4lMDj6GJmSUxqLuTjSJvR5mCSU3/TY8k4rVvch47c9e4Oql x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5176.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?slYrI1Y28Snj4QR8wMO38rZ?= =?iso-8859-1?q?jUqo/qockoNJg5pHYMZH9t9qVxp5qitW1n4JRQXN/IeBmcVwFFTxZvxUScv1?= =?iso-8859-1?q?fwBLO7GV+Kx9sZ8SzCtuXdNO1AXGdVnAWcdVwdm6kqf1Eu87Q1LYyI959mNO?= =?iso-8859-1?q?oJASxQqQafDvctdzawtG3jEoINJVOFs9Iiqlq2betBfTOjpMdNRDoFHWHzE1?= =?iso-8859-1?q?3Z2Jx0q6FN1pgI7SzGraBHNkk3Xf4zQkzX7eal6GucC3tQdDiS5XhNwyhWi4?= =?iso-8859-1?q?+XCIg5+wEtOVIgYlUvmhSNuw9ajjkCBLKJg8yQ1Q/Lj6zQNbg+htUPGUTQ9b?= =?iso-8859-1?q?PQea36VZ/lTuIQFNaL0k7TbRa9kyaS1zCIGGyNHUzib6xHiccluhGw0i7nG6?= =?iso-8859-1?q?eQYljReodsciyFK3zbfbKKKPoOtLBxU5rJwCLxf9CsC/R09GF/YsHZF3QUmy?= =?iso-8859-1?q?pInobmL1KTPomsXtGLXUza64ipEQvFkx4DENMkc/dEAr6UBZdXm9ksNeVnTU?= =?iso-8859-1?q?HkKwb3+ab8BPMTpsATawr09USxmUJRHTiJzSTNCT0lwRvriadY7iQXEH8oxM?= =?iso-8859-1?q?3PL3xEYMPYNhLAa8c9icM7B9RaAiEmBRPLaVvWnjQNKb15V5Qb/S35OCJSwd?= =?iso-8859-1?q?jwvwoyle+nKE1nlCwfqQzSw36+FJqbyoll4Wiv485YoKWKunya+Djt9KL34J?= =?iso-8859-1?q?Bt/GsXobwh82z+2oLqSpUiNJZFTxQB4MoIWIZIQmROO8HVWJ24PwzUKBNwzT?= =?iso-8859-1?q?sTDHJqF4aBcgMFMdeY6sjkE90aZ/Pr69ytw/aehaXEqbpRC+d7b1+8GwXnWb?= =?iso-8859-1?q?DScGBuZMLzPo/R3AsXLglEorIY6wScqBKWnqBcnvP8FI1czWP3z1omS3fylQ?= =?iso-8859-1?q?Qlu/IIq8PzaXHGyFYEf0zCe4Yd3JzvvbF6lFFHiKuwxFoxciTOi7K5jFlN+D?= =?iso-8859-1?q?ejIhhoBV2GSJmOsonGBN/AJzWnSMD/shvRe4frEfK37oXMTVesNH5HA+jeAc?= =?iso-8859-1?q?BQ0/1jW4RBdWA5zmSwkYULBz8ZLoccI61o6n8mGfe+bTqa77GJchy4C8uS7m?= =?iso-8859-1?q?BK0na8VfNbhAVy3hg8aYbCFuwhKL2lXNUybBUa1O08iqnpex+kcczP+O6i25?= =?iso-8859-1?q?0CtZEbqP//jlu4anYxKSK00bDmEYmF/J3I9VDTDnRd1vuhHJTroyN3R3wjBF?= =?iso-8859-1?q?imEBqm4KLK5QU9KtsC9ghaCW30m4MbvlxTp3Psf4Po9DRQlDdNTOgRSZ9Ntk?= =?iso-8859-1?q?7NkR3p+X0FG/MmsrDn9oVsMF8kgaGa0Qpo0fU9Se0noLlttwY58zNdofr8gA?= =?iso-8859-1?q?qTXlZokzhnLq1qTDk+LkEOTthZNxzYh2LqKqokWEwSU8iDngHIdtuogI+5Uu?= =?iso-8859-1?q?V43/hjh9gJNrD57wwC7ajNedGjpMg0yKLM8u5gPrWJir3DU6HCFdg6iPhHCm?= =?iso-8859-1?q?cp8h8VGqRYmvMjmtGX6Hi0rFUVGde6Q8YihtzQkkbR+xDjNwllY/uCvCc4Wq?= =?iso-8859-1?q?HIfut8vzwIkFbj4pqpnGCYvaXWtxPl8EfHtC5dj9/iccSoEIc/UlK8sRW2Vr?= =?iso-8859-1?q?aM5ESFO2MFAx8z/zC37YaWz6SxpSZMJPvWWGGY6U1rCT2jvtXD+Fgqy4nKC6?= =?iso-8859-1?q?gAG2SbhWfM+WWswC4L8q5XRoi2PFP9gAgBy4Dj7u/jNgprtyw12LCaiQUhMM?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 747d0cee-905b-43b0-902c-08da6a695562 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:05.3582 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OhcjZAQoXnFwbyELOjXxAhxSX39cDY6YaAT1Opx7PitY83edn+s/51+NtVlHZ+hbZAJ/VFiH+oVXpsX7pFwibNait/vMaZ0xYh9VQVxLOqo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh Cancel the ongoing connection request to avoid any issue if the interface is set down before the connection request is completed. host_int_handle_disconnect was already available, so renamed it and used the same API for 'ndio_close' cb. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/hif.c | 6 ++---- drivers/net/wireless/microchip/wilc1000/hif.h | 1 + drivers/net/wireless/microchip/wilc1000/netdev.c | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/hif.c b/drivers/net/wireless/microchip/wilc1000/hif.c index 021e0db80bd2..b89519ab9205 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.c +++ b/drivers/net/wireless/microchip/wilc1000/hif.c @@ -635,7 +635,7 @@ static inline void host_int_parse_assoc_resp_info(struct wilc_vif *vif, conn_info->req_ies_len = 0; } -static inline void host_int_handle_disconnect(struct wilc_vif *vif) +inline void wilc_handle_disconnect(struct wilc_vif *vif) { struct host_if_drv *hif_drv = vif->hif_drv; @@ -647,8 +647,6 @@ static inline void host_int_handle_disconnect(struct wilc_vif *vif) if (hif_drv->conn_info.conn_result) hif_drv->conn_info.conn_result(CONN_DISCONN_EVENT_DISCONN_NOTIF, 0, hif_drv->conn_info.arg); - else - netdev_err(vif->ndev, "%s: conn_result is NULL\n", __func__); eth_zero_addr(hif_drv->assoc_bssid); @@ -684,7 +682,7 @@ static void handle_rcvd_gnrl_async_info(struct work_struct *work) host_int_parse_assoc_resp_info(vif, mac_info->status); } else if (mac_info->status == WILC_MAC_STATUS_DISCONNECTED) { if (hif_drv->hif_state == HOST_IF_CONNECTED) { - host_int_handle_disconnect(vif); + wilc_handle_disconnect(vif); } else if (hif_drv->usr_scan_req.scan_result) { del_timer(&hif_drv->scan_timer); handle_scan_done(vif, SCAN_EVENT_ABORTED); diff --git a/drivers/net/wireless/microchip/wilc1000/hif.h b/drivers/net/wireless/microchip/wilc1000/hif.h index d8dd94dcfe14..69ba1d469e9f 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.h +++ b/drivers/net/wireless/microchip/wilc1000/hif.h @@ -215,4 +215,5 @@ void wilc_gnrl_async_info_received(struct wilc *wilc, u8 *buffer, u32 length); void *wilc_parse_join_bss_param(struct cfg80211_bss *bss, struct cfg80211_crypto_settings *crypto); int wilc_set_default_mgmt_key_index(struct wilc_vif *vif, u8 index); +inline void wilc_handle_disconnect(struct wilc_vif *vif); #endif diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.c b/drivers/net/wireless/microchip/wilc1000/netdev.c index 7879446f282f..2de5838a4426 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.c +++ b/drivers/net/wireless/microchip/wilc1000/netdev.c @@ -780,6 +780,7 @@ static int wilc_mac_close(struct net_device *ndev) if (vif->ndev) { netif_stop_queue(vif->ndev); + wilc_handle_disconnect(vif); wilc_deinit_host_int(vif->ndev); } From patchwork Wed Jul 20 16:03:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 592104 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F365CC433EF for ; Wed, 20 Jul 2022 16:03:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229949AbiGTQDS (ORCPT ); Wed, 20 Jul 2022 12:03:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbiGTQDO (ORCPT ); Wed, 20 Jul 2022 12:03:14 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E64854050 for ; Wed, 20 Jul 2022 09:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658332990; x=1689868990; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=C+3jkmVl+oKEwK6VLNd1B0wSmmKIVjS9gW1drKfs5z0=; b=WxZHvNmCvAY7hM2GGUd99zBMuEDZlYTPF6hKZHSb5P1OFPpljfVTsKwy TCjEK0mugfs5d/kjB9n9UovVjobU6h1I0OxhGYfyQWxrFHeM7V6YXS3MO zt8LcpcDgJVKky7jLTNXCURnCRK2w4t0zAt1QcwWG6neCQf26oDsvbVnF nUirweSAC5ZQUTAZ6O/TV8nodCiza2pldURrp7+vixKznVHRoPkRTKfvP Zzo3BnKesFWfojMlGYF8AZlNHG0/afTHJvhOFpIVnfTyQSosRrXqbKVO3 WGkRh9JuuZb5fuA05NNWmqe5rQL++NcUUex/aklU5A8yOvNnVB9iNY77v A==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="168746667" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:09 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:09 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a52jwPpWvKMfDUXj2jIRsO9wuDO4Q+SEBOoISyFRwf8VtGT+fUfhr9/IpfvHa4hH0qnJLUyDygnsku83HKScTZvAhdkrPnZDaBcHO/GIgrBEHp+tPHwUQfWxWkzEHjZteZdh1aatWaEhZvv6nmsMYYQNIjY00cOuTRr+RGBkINpLSos4l8vyKr5JcLPgPcjKNT91M84AHJbxZiBibs50h71yEFnHThZSGzK51nDVZIqNcL7/dFkIWV5sdZ8ovTJwx7YxrZkLwoFOZ63F4Epc4YfLdRpnCrbw5aX65L8yqndk5v1k4tW/4ButQdXL7kyMf2B0Zk+rgZCt2kY+XBzfdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9tFxon5SwZHzxOt6+HGNnOCN3Ums/89NvGND08UWU2w=; b=Q3Nk777oha6LflocJd1KBGq9XkpdVZnNccphaBzfMPaws7nEbBn6D3qCjW4jk/zyogBJwFE5q647PSNYkVnp41TeWwhKp+nik3RO6gIwjoqOfsfp0KzI6zlrsLUAYFBVm/E7lWcUZgzFTJBw3mtb23Q2POZRPv0XAtDfKTBbto/csoRlv1aJuwDNKpaHEF3ktxSf3yn0TgQz3SjW3FtgehoHd36QhDO1nmC8kgPYSA27QHGccyeFZrlUICveA4V8Re9e9NV3RLZCjZ8mfNlKxIBnx5kH79H+TPEHVbpUd91/VuXfPB5Ul1txONA6bqa4oCXx8nRht0OcQfYaIfBRwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9tFxon5SwZHzxOt6+HGNnOCN3Ums/89NvGND08UWU2w=; b=BzFeRtYdkN9FUZLtBjMcDh//RKYKzk+e0eoUWwi/ZX6vTZaYLTjUKgU/nazB5LWNGjNATbo3MbwQf00bHDNEjFiiWfs1aDtdGnIb56SxRKVb4f1VpKyiTSr6z+WgUf8gPU92tIM/SkJIKjEcMIMuOjAdOSVE1VDUUThh37nt4Nk= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:06 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:06 +0000 From: To: CC: , , Subject: [PATCH 7/8] wifi: wilc1000: add 'isinit' flag for SDIO bus similar to SPI Thread-Topic: [PATCH 7/8] wifi: wilc1000: add 'isinit' flag for SDIO bus similar to SPI Thread-Index: AQHYnFIyYI7AczOOjEW0BkCmtI5UJQ== Date: Wed, 20 Jul 2022 16:03:05 +0000 Message-ID: <20220720160302.231516-7-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 65c0c45c-ad79-44fe-60a1-08da6a6955b8 x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CIGkeKBPYOus8Ae4G07fXCEQqcSbXlb0DGNfcVI5udeCeUtCUr6pwjbl6/7Nem/TvX3J/mdLMtsCzS64olawBCCEPRjsZyPfltpuVxzbcIvPAN40gBFKr1xzS34l4iojhdzPZgfdtLGz3XWEU1S7UBwaTs3fIbYKJrT7q+DbDvnzJMpkMnTYrR2o3o3D6Md7ZwSLFhBlFQ7hGQOwNQUOQOrv+bIkOEUy+iVKhc6/9+BCwHnWTtiVg5wopJ1B2jlQg8eaJDM+ipcrAwokytGf4GnlzXBQWpIG/okKqx8AKpNCJkMasIHh6ZGAKy8CyudFCVzcQbiJ8t/vUMCwuroPGygysz4SNVZNWCSPGwbwg8dKCfs2IK0dqAEqs7o6+/0HP1y4m2Yp98ESxAKFO7BTQWfPreRHOdPyQZ0rSXWpR/uBghw3SIR5AyOXlu4bjnDHHhOvdGMWc/yjQ/NEL/+uDNNVeAuuJn9bPoXjBkE+gUL7U3yIxQQ635ibwP/UYmLuDDWgtKzXw4uY3QesVQLUAAJNBK/t0iNP+4puUKVtJQwxb6YKGKzwSi/wi7t+cIY7FGF5DZf68QSelKPtNcf36rEpixAqqlPpvd4+s+W1BUtAUv+6bdKRSI2IC5V2mO3272PzVyEu3PGddHXMy700hFU5vu6ga4oUfsBtPvt/43GO8UD6DJ/6VFii5XT/hCcD7s8Jp9NsVGBnt0g2wvks3ukk/ws8c851fY/OukcIL6tvhbSca8Ww/KXgotazTS8ckg828voTgCUtep57H/RATCp9jKm82B5FGd2NdZPV9VjCX52w2m1VOgKcTW9SZ/Ri x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5176.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?Sf4rhbuSIrmk9ubKlvdHMFS?= =?iso-8859-1?q?KRHlBPOqo5ATX1NqomRumHdiyhvl1itsdu3RApSoZVYuykRViMuKFYnCaVjK?= =?iso-8859-1?q?mwuM2vv/gcdWjm8lr1fVcx7I61tWDZptsNL6pBP9h4KgrsAVlJjpcnA5d/hZ?= =?iso-8859-1?q?3CEuiW5jRFBya8XK3pBCnAn1ZnTtOF3VhVbi6T6b0AC+bHjscAFjydje4heb?= =?iso-8859-1?q?5Qk8ldJCO9UxYpGo9oRFNfnKx8vA+hIl22kI8KPETNKqlWUcvTo4vcN2qGyR?= =?iso-8859-1?q?sjeB8ofI4g5khYZ0pyAP02nrV0v/03XxEKz0j+/wFywDsOjrouZ+GBkC1c7a?= =?iso-8859-1?q?sia1YDBe8GdRrAe+/2K1a20suMxi9fKt0EOOe3yb1Ze/ux+toVfkAtIs2xH0?= =?iso-8859-1?q?SW3kxOoSeWjKbEn92arCvdIYuYZClEH1u7LhL99VFJnf1PI+N7gllyn+YrnK?= =?iso-8859-1?q?LPhislYE8hG38RF/uCUPc+9iI5DV2w/SAJFebKQRZ/JDErIoH+xsTeB47UTh?= =?iso-8859-1?q?bB0rXj23kMiB/YCBL0/GWbJ6yXTTb1lNpirHJYi4ApQt+efR8kBNDjLo4m51?= =?iso-8859-1?q?E62XNXCpkDiojyvVmL0aQcWaLCTjtMo+Vzv+taGBfi2FECTD4Hfuid+BWm0s?= =?iso-8859-1?q?35MQOw4djxIDFipXOzGni5GPzZ0EcOvmfwQWsz5uK5goXkjP+Fbyle/kRhgo?= =?iso-8859-1?q?7CqzTpY1GDW0rCCknliB6BW8eHiISD253q75LDsXKsvIbIIFkVhuwSBYkn3L?= =?iso-8859-1?q?oW7l9xQ8gexM0gHajbEXRfgtgQMcD/gQwn/YqI9/UKoVpF4snClI1ohmnlca?= =?iso-8859-1?q?Lf+XhhHDlXrO6e9RkVCWU+bGCIhqmp/lVekcObowDpvOebE0SDFKffR70/id?= =?iso-8859-1?q?cYmmgYGko3syT5/fbuxyYw038giAZRMAlMBUQS0fxKr54qyrc+M4abqRQWqx?= =?iso-8859-1?q?NTkCBYwL2zDVjysXBDywSALF5aUuJ5dMaxlCQVfiIoEbdm9IwFdAZULwEhTP?= =?iso-8859-1?q?TcB3kLYz9i4jF9dttmKdYzaCThO1KJykoNJxejcBesZyMa93DWukziFk2jV0?= =?iso-8859-1?q?hYI0UDqM/5SImd9B73TfxjlnCY4B8AaEGCTTmhJWN1D69Zg/9s5cPyiBlVws?= =?iso-8859-1?q?an/NomeJA7Z5xn42CtS1R8ynRqfokGGh4SEPdmcykuJzmcNkCEtsVcW2tioF?= =?iso-8859-1?q?7JINbgrVK48R2OFaGq/naRX6XUM6s5Ep65CoedrD7BOmNtv1kGb35HYY1l7R?= =?iso-8859-1?q?OmuUVkXnR65WN2WSEk0rnbw2pMIuOrv0pxnsv8+Lch5Dg+X0AXtSjarMON1F?= =?iso-8859-1?q?ARTyFisn1H6+wuYhsi5TYGGA9x3G2KXMm1runik7MWrbzRisNCuFwVRcM960?= =?iso-8859-1?q?CK0YaqSs0oCcZMmiB3g3HvikxELvhEfizBD3NYtZfhvN33ke3QH7dKIJfpso?= =?iso-8859-1?q?lCKVVIHIEIEyU5BH0drYAcjrrcfqhOP6HoCeVlBdGyI/0vplM0LcCbHit7gO?= =?iso-8859-1?q?OCYS8uGbn6FMojwRWl+LB5ZQCem3mZ/AY3G8fwd+mYE8QwFiZg8JiBL1dEzV?= =?iso-8859-1?q?38TvT0eqiHC8t5jZpR28pKpnkD0KZBs47u3ycfbXltAEryf4mQQftFh2cWFF?= =?iso-8859-1?q?PYW8gvmzX+M9Gni6iCSkvR/lJNxvry6K53M1O7shSkdsng0XFZQy5HPDWWJ8?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65c0c45c-ad79-44fe-60a1-08da6a6955b8 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:05.8293 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: evsLp8HIR2WlKuGpB3KkpU2IE1bQ+KIvw4xz6EMKaJaLFSco6iUt8FVlOCp7VNh1/0yGoVAi3jhjBqxOEJbYMP9/XktNZOm3X1LqqNU1iZE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh Similar to SPI priv data, add 'isinit' variable in SDIO priv. Make use of the state to invoke hif_init() once, and acquire the lock before accessing hif function. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/sdio.c | 13 +++++++++++++ drivers/net/wireless/microchip/wilc1000/spi.c | 8 ++++++++ drivers/net/wireless/microchip/wilc1000/wlan.c | 9 ++++++--- drivers/net/wireless/microchip/wilc1000/wlan.h | 1 + 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/sdio.c b/drivers/net/wireless/microchip/wilc1000/sdio.c index 7962c11cfe84..600cc57e9da2 100644 --- a/drivers/net/wireless/microchip/wilc1000/sdio.c +++ b/drivers/net/wireless/microchip/wilc1000/sdio.c @@ -26,6 +26,7 @@ static const struct sdio_device_id wilc_sdio_ids[] = { struct wilc_sdio { bool irq_gpio; u32 block_size; + bool isinit; int has_thrpt_enh3; }; @@ -193,6 +194,13 @@ static int wilc_sdio_reset(struct wilc *wilc) return 0; } +static bool wilc_sdio_is_init(struct wilc *wilc) +{ + struct wilc_sdio *sdio_priv = wilc->bus_data; + + return sdio_priv->isinit; +} + static int wilc_sdio_suspend(struct device *dev) { struct sdio_func *func = dev_to_sdio_func(dev); @@ -581,6 +589,9 @@ static int wilc_sdio_read(struct wilc *wilc, u32 addr, u8 *buf, u32 size) static int wilc_sdio_deinit(struct wilc *wilc) { + struct wilc_sdio *sdio_priv = wilc->bus_data; + + sdio_priv->isinit = false; return 0; } @@ -700,6 +711,7 @@ static int wilc_sdio_init(struct wilc *wilc, bool resume) sdio_priv->has_thrpt_enh3); } + sdio_priv->isinit = true; return 0; } @@ -981,6 +993,7 @@ static const struct wilc_hif_func wilc_hif_sdio = { .enable_interrupt = wilc_sdio_enable_interrupt, .disable_interrupt = wilc_sdio_disable_interrupt, .hif_reset = wilc_sdio_reset, + .hif_is_init = wilc_sdio_is_init, }; static int wilc_sdio_resume(struct device *dev) diff --git a/drivers/net/wireless/microchip/wilc1000/spi.c b/drivers/net/wireless/microchip/wilc1000/spi.c index 2ae8dd3411ac..b0fc5e68feec 100644 --- a/drivers/net/wireless/microchip/wilc1000/spi.c +++ b/drivers/net/wireless/microchip/wilc1000/spi.c @@ -1029,6 +1029,13 @@ static int wilc_spi_reset(struct wilc *wilc) return result; } +static bool wilc_spi_is_init(struct wilc *wilc) +{ + struct wilc_spi *spi_priv = wilc->bus_data; + + return spi_priv->isinit; +} + static int wilc_spi_deinit(struct wilc *wilc) { struct wilc_spi *spi_priv = wilc->bus_data; @@ -1250,4 +1257,5 @@ static const struct wilc_hif_func wilc_hif_spi = { .hif_block_rx_ext = wilc_spi_read, .hif_sync_ext = wilc_spi_sync_ext, .hif_reset = wilc_spi_reset, + .hif_is_init = wilc_spi_is_init, }; diff --git a/drivers/net/wireless/microchip/wilc1000/wlan.c b/drivers/net/wireless/microchip/wilc1000/wlan.c index f3f504d12873..947d9a0a494e 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan.c +++ b/drivers/net/wireless/microchip/wilc1000/wlan.c @@ -1481,9 +1481,12 @@ int wilc_wlan_init(struct net_device *dev) wilc->quit = 0; - if (wilc->hif_func->hif_init(wilc, false)) { - ret = -EIO; - goto fail; + if (!wilc->hif_func->hif_is_init(wilc)) { + acquire_bus(wilc, WILC_BUS_ACQUIRE_ONLY); + ret = wilc->hif_func->hif_init(wilc, false); + release_bus(wilc, WILC_BUS_RELEASE_ONLY); + if (ret) + goto fail; } if (!wilc->tx_buffer) diff --git a/drivers/net/wireless/microchip/wilc1000/wlan.h b/drivers/net/wireless/microchip/wilc1000/wlan.h index b45e72789a0e..a72cd5cac81d 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan.h +++ b/drivers/net/wireless/microchip/wilc1000/wlan.h @@ -373,6 +373,7 @@ struct wilc_hif_func { int (*enable_interrupt)(struct wilc *nic); void (*disable_interrupt)(struct wilc *nic); int (*hif_reset)(struct wilc *wilc); + bool (*hif_is_init)(struct wilc *wilc); }; #define WILC_MAX_CFG_FRAME_SIZE 1468 From patchwork Wed Jul 20 16:03:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 592103 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F93CC433EF for ; Wed, 20 Jul 2022 16:03:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231862AbiGTQDU (ORCPT ); Wed, 20 Jul 2022 12:03:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbiGTQDO (ORCPT ); Wed, 20 Jul 2022 12:03:14 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BBF74E848 for ; Wed, 20 Jul 2022 09:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658332991; x=1689868991; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=6GeNeXNnf2XNG5PrpvpfFeFyv0XZ4/Bpehgtvo+QziY=; b=QC1P+d3G4STGqlUUKHfD6NB5bM9HH8+V81Wcoexf9y6612u1zE/WgjyR FGt8TxICHJul4nAg7XDBO5R8aB5TNEUCkKng2BSJB5jNdv91G7UMJJJ0Y bAQSikezn+zH7Af6ef6t40OVSdhF4QnFTCLbPC71uKZP7vMTT0dr/vq7h Fthk+xJhS09PVzgRwyerJOmyhF78gm4x7Iuxfk5Pjgnn4vm1Her0YRnI1 rRpOtmyU5syDzpBXXZFxmEhupBg7O5+MTRa3W+VtTM/8k1KQ3slsGzWLd LgxoHdvSSp+6QrupOAK4Wcjw5KdRRj9tWzoRiFBGWwbnbWsbPLUyrEk// Q==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="172930050" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:11 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:09 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vk8zdUxs1IzM+IpG424mkBLjdzfMt6CIeJNc7jHkLdWWkAwVGy5Es2elEa5WkHX+qtCwglxWg6+kqiPBD+ucN+rHF1NJ4h7ngKfcg+BaaGKIP/uH0VkwRmwovgX/dtsBQDdFOPyHbhKa+XBqoPbPGnrDpVWj3KXAoEzh5dRZxWYsEBahPy4JnswqIUyZjNDllrVr3qLAaHtRGIvM/LzAmFs7B3brR8A9re9QgLT/AQrPH9+psI5BebYga+cSdI0wmKx9EXIYC7ZatxuGEwKBRN0NX0oIM7ErXp1eVDl+Oxg0PXYUmiSd3/NERF16U2RQ0oAUHe4oDmKvVw28ozCk6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KpoM0WdmcqLjGW7pFDSsROZOGguNTpK7JnHUMsK/XDw=; b=HiVH3f9wAgMTZw2PQuCIVE2v8/PUFgU0rK3piWjvNqXXuMqREXLdPURtjyZ5krdbIDR1DSRLzjTcPCGD37b8Ve3CSKQDXjUKMDSEsPJ15eePHcrdecLt0J2V0cWr9+xn+nhuXB9KCFO+HgI30iCYBh35u1ST9nq8pp3eyqh9zH/cOPUetEuwUaQJtIDMcOEW0EK7yw+kYHtOBKSTKtwAHyMcLrJ6FFgzs1MFpKAQ3FpyLBFS5yz0nTKG/c5vEk/yvJ7AgBYR0+xShPn86DhZ5v3P4XJLY4KtibZ9NB2fYDArNjmgECStmGgaNXgNZ+41P56jY+mf7+iBUOeUQrR0Tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KpoM0WdmcqLjGW7pFDSsROZOGguNTpK7JnHUMsK/XDw=; b=Vssf5dGc3zNwuDAn8mzKFRJS6RHEJAj+gu9bKkECRaHqTmpnV7NBahVC1Qpkm/So+Yro7x7lBP7ihHcZrvJfWMdkQqKrrC/Hah158Ov9jnberiAkOV+F8IkbtQo6nUxjnVxZyHSU+iJcyFmaAEGnaY51PZTjwN0O3pCC7C2JGnM= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:07 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:07 +0000 From: To: CC: , , Subject: [PATCH 8/8] wifi: wilc1000: use existing iftype variable to store the interface type Thread-Topic: [PATCH 8/8] wifi: wilc1000: use existing iftype variable to store the interface type Thread-Index: AQHYnFIyORgkEhzKqUiaORlNMx2lfA== Date: Wed, 20 Jul 2022 16:03:06 +0000 Message-ID: <20220720160302.231516-8-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e5f61f84-7924-4b67-dc2f-08da6a695614 x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wWOE4h2vES2lV0g6Ne1/UDxGBuVmSCyFEWtFTIscoVqz8eCFHjA14SDaFAVK41U0w7H21IAcDiC7ehw8CG2gOQ5KWDrYQaqGG6UKP5AP99q1K3sykWzrR9FpbjQfkASXNpSutTaW0AB0Tg9dRzutm8IEqRnzaXHJ96sCqADNDbuzAU1YNHeCJro7YGqLPrb8IUhufz50WS9E8fyok+VH36KJ7ZJnO5xSOtQSjSM4bEtka0Iq0guAk4UDpK/aW5+DyB9mJDF0etcGGIUF9kqSPZXVEPUpxueAamcDDQWZsFvlEk9JwPK3gpOsdx/QozRBRONfh4vwRmWJsvGj0cbwEedzU+JDWgCIBZWQ6iMZgIG2MPHo7IZl79gYmFJ9S9dy/fdlDWxN2kTQgxr//Muc/EFNI5bYZHQiUyCd9F1XWTuOmBvrDJVi8Zg7AT/ZOoSGi3JtgqiQJFyQJMkEkCvVaeB5KuWCmHpZVBymFGQPJF+x0VStqEXVRxRRwQNwhRp+DHgerbR2nf9a995hgrCHTwrpsFgGNA3Qcd0/p3Vu14kuy2AJ33rabDnF659YD4rCU1MzuRoRorDMGIKe8DxjgnVCbH6kvXnf/m3y66rfR8C2vcuZEKKISzaWqLMrPYddmmM9DZjXWAFhhxDYEP7AgPMOsMW0NQM0eT6YnmHbvI3PboNhaW/08avSRAOM/j3g+V+/1+8BZwJkvsERmCgJ6lOVj7VhjvoT0X/k3Do9DGVFB2VtNDcy4I/Nl1FHIn0Cdf7MgJNCVmQzfDUT+LslYnZ4oR6DRGrE4Q+fPD4gE/A= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5176.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?hnKrxWT7UQ7qAoiQP6g8Fm9?= =?iso-8859-1?q?8Rpw7pYt4rFRJjH5fC/juQ/Tc96SA4b+iLGANO0vGSy4UOp6Drlwzz3nLYJq?= =?iso-8859-1?q?QUn0MVdzDggZaow6P1DDvYLGpe/BuvjJF05aH6vtS8md5pL0zuSgjMcRpWTU?= =?iso-8859-1?q?Y100GE/Rd6fxPGZnnApNdRvI37txKuOHsIGhTeLstF+8OQ+wtm8pFQvem94z?= =?iso-8859-1?q?+mpPMPPdI2w9Nysvyu30bBsgRzOkHxRB80FrwbWAZO9eZA6M23X32f2gPmU2?= =?iso-8859-1?q?gu44a/mDUyQzCcZPlHur+OiwmBcnN+6O73onS390U70TpmBYOv6Pbbm/r8NM?= =?iso-8859-1?q?cgjwv5UPKh1rgtnXaDPqHG4PlD3Nkqsvx34dt0Wlxmcw5QHL0FjxjUeX+c1p?= =?iso-8859-1?q?jSr+ykcqa+j/H+SN7GfK/ZOMQSm64Ed8xvVavhZ3cM1yn7dC02lxAODSgMbI?= =?iso-8859-1?q?DkADzTVIN+ITgQ2N7duzcWZ4XLYrIxwAJwhaZr8PVsB1AxQ5Q6IDOa0TXZzH?= =?iso-8859-1?q?FnM4AEz4Ed6S5m8n3D3kx8J3hS0ysn0UDbt8wKnKK1Qs2GPg+9i+A6q3bsWd?= =?iso-8859-1?q?8F9znvdi6+U0GDq7dYNBkIv/XNiyTLsYHmJlMiQpwWZQp8GX528a3USEuHqZ?= =?iso-8859-1?q?TKpOjSztux+datrOsAU67WnN/OwCbVTsjZSFUZuoAv8b31gH8AIl+nYBXocw?= =?iso-8859-1?q?5divk91XUuofCtdzlPgG/jQzFNDXw8rndaPsPGcqOrmMcCsUQsS4ShTluPyp?= =?iso-8859-1?q?RZV9PTMmJXHLZ5TTgk1LEfwF9AgmN26C2c2qtLh3awlOJScVeQ2kw2EV0w36?= =?iso-8859-1?q?vrJnS0TyPu2imDqXhvY6FibKpcbRQMzA+4pcrzEr2JiydyI3jSrAXU85RCnR?= =?iso-8859-1?q?2fgEiNJqEsf2G/uyiGpJ+WZixfD+s7ujt2Cbyts0duewhHcngai/PsB6yzB0?= =?iso-8859-1?q?Plc4A9u7xwF9X7WVWd/5VY+rGad0BmkfUICYFcrrX+fR+ABKCHS5XeDNWHuw?= =?iso-8859-1?q?rMeGvOJhqyWNfQMEWfdq/8+23eSrU+Ckzn4IofZjgoW1C4gg7Ghtiu9vSAZb?= =?iso-8859-1?q?/0wwz+AJjonVGxLrkyIezjaQogvjlCmMs5XijHWo4XDH1eMdDxS6dgrHtMRk?= =?iso-8859-1?q?RkWHEJiJGs+zBADjCi4hvQWTOhkBtiyYW2HDJgRWYJ0HGHGfVpL1MeEaArNM?= =?iso-8859-1?q?22VnSrmU2H8sCOhfoxWz6VrSQnwVxkDhl9YvST6t5RJfZEmh7ajXuekhpbkT?= =?iso-8859-1?q?CEIY3jV5Q3CfaSDnS9XDfIvz+LQwMUcuCe80xdHLodLqhrUd0vgCK9YGz3KI?= =?iso-8859-1?q?kw0Kjo+mMbAq3KgIlgh/aJxYhzNluW9Er1GVRofCD0JZK/rHIDkhuh1tbUZ/?= =?iso-8859-1?q?sRBszmgJe74+GbMwgVVHbbPeMcOWRMX1V74Zpn+HmBrBfJQlamPSUp/m8bJl?= =?iso-8859-1?q?XCfH1gMeBhGlt0iFTXSLmZ6R2exiJS1gvEi5QKuwygk2Xur3uuvZ4lzq7ea/?= =?iso-8859-1?q?gDv7Jm4VKpLX5zARiyeBhSlPInGe/b1MF8sbLEvFSk+0RUWyjXs9Ski/vgbB?= =?iso-8859-1?q?dRtKRipBcYbMwzBep1SgGz30Q084oLiBHumCLZC6FFl2DeGKq1R3npZBJKJS?= =?iso-8859-1?q?wcXMr7OS6KGTjyTVWlPve9BXruFXkzPKJFmU6oRelSy0EZ0/mlmUv7chQhqQ?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5f61f84-7924-4b67-dc2f-08da6a695614 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:06.3292 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: l/6Oeh7GvJ6MLg2iYwJ9tQ/U9extOJXeAGPNlD/UGLxwsAjeRox4x//giHOQD2/H0j1e+9iBhwqQ1OIpTKfv5iJT0v0vVyMDScrSC9zYMDw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh For consistency, use an existing 'iftype' element which was already having the interface type. Replace 'mode' with 'iftype' as it was used for the same purpose. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/netdev.c | 6 +++--- drivers/net/wireless/microchip/wilc1000/netdev.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.c b/drivers/net/wireless/microchip/wilc1000/netdev.c index 2de5838a4426..9b319a455b96 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.c +++ b/drivers/net/wireless/microchip/wilc1000/netdev.c @@ -97,12 +97,12 @@ static struct net_device *get_if_handler(struct wilc *wilc, u8 *mac_header) struct ieee80211_hdr *h = (struct ieee80211_hdr *)mac_header; list_for_each_entry_rcu(vif, &wilc->vif_list, list) { - if (vif->mode == WILC_STATION_MODE) + if (vif->iftype == WILC_STATION_MODE) if (ether_addr_equal_unaligned(h->addr2, vif->bssid)) { ndev = vif->ndev; goto out; } - if (vif->mode == WILC_AP_MODE) + if (vif->iftype == WILC_AP_MODE) if (ether_addr_equal_unaligned(h->addr1, vif->bssid)) { ndev = vif->ndev; goto out; @@ -122,7 +122,7 @@ void wilc_wlan_set_bssid(struct net_device *wilc_netdev, const u8 *bssid, else eth_zero_addr(vif->bssid); - vif->mode = mode; + vif->iftype = mode; } int wilc_wlan_get_num_conn_ifcs(struct wilc *wilc) diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.h b/drivers/net/wireless/microchip/wilc1000/netdev.h index 822e65d00f53..43c085c74b7a 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.h +++ b/drivers/net/wireless/microchip/wilc1000/netdev.h @@ -177,7 +177,6 @@ struct wilc_vif { u8 bssid[ETH_ALEN]; struct host_if_drv *hif_drv; struct net_device *ndev; - u8 mode; struct timer_list during_ip_timer; struct timer_list periodic_rssi; struct rf_info periodic_stat;