Message ID | 20220504161924.2146601-5-ajay.kathat@microchip.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 62296b3e19dd252694d24a60d6f10b487551d70b |
Delegated to: | Kalle Valo |
Headers | show
Return-Path: <linux-wireless-owner@kernel.org> 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 74CEEC433F5 for <linux-wireless@archiver.kernel.org>; Wed, 4 May 2022 16:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353312AbiEDQXJ (ORCPT <rfc822;linux-wireless@archiver.kernel.org>); Wed, 4 May 2022 12:23:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353255AbiEDQXH (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Wed, 4 May 2022 12:23:07 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4E2246B13 for <linux-wireless@vger.kernel.org>; Wed, 4 May 2022 09:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1651681170; x=1683217170; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=72pxP9bTkUbZJGrXlO31Do31M0Oar5HcVSM5xjDmNg4=; b=s4eKAzTe/XV/xTd/gq5X7yRdGl615i++8vYf3xuzoNUwJ06DfdaIqHJU 3qiH18bonAoU63qhwV2weANUdw6RN5qXkGdUGHG95urUhLsoznNe27P96 ps1llc8POao0eBUDhKfIPYjECAS6PMTUEbSE36M+dSZac89xP6Lw6mHJ9 NK3q4fNwBPT1o6kxBewBut+p2rjy4hgygnbvKfZbyuiQSbpqRl/s3txBh zjatjXY/11Zo58FzlomZWajx2A2ezjsKCexshTaQbfVejWLTgpxVAdXwk 5q7zTE1v+SH5Ps4AC6t0cM54wJCwiloVUy3jchDlUn925H3URfc+n43ok Q==; X-IronPort-AV: E=Sophos;i="5.91,198,1647327600"; d="scan'208";a="94549834" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 May 2022 09:19:29 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) 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, 4 May 2022 09:19:29 -0700 Received: from NAM11-CO1-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, 4 May 2022 09:19:29 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eMncWExaTFy6EQWnhjozCXUkiBMZljFpiv76GZsdM/SSkJfMKRBp79VviHJgozmZ+KGp7SkPr5uy3foRozdUD8+SF6Ph3bGjiwCVm9f+kW2RVOnoKwkzjXTxtjcEkFv052N3KL6lQSe6NY3QYgyedDoOUNPBKagwCowaW0Ykm81vO2udf1e3mdvRaZa2eE7omr3dQ56nQo7/35EqldaFKVkTaA3IsBYQNFhTzAqqvtM92op7bUK4dk1AWso4IxKsuXrIr9q8r/9UsIs7YTaYpJfhL8oteC9dTsH6uABjn2FBNzFTexgF9RKuIjw/osr9BH3jkkBUYsitt2lRD8iHFA== 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=KwKWL7pLBEUVJfTAi8G8mj+L1+eIlv6eqN3fGqsJd9U=; b=CMZZquZdEIvijcO+JirIW6W/oF+dSvU5c9eo3qxTDHgLCO/yBnUwuvv4zlPq3l0SV5Juy9Sbi8bXz2UUZClQLzECw7sMRdXSSv3INX+s/H/jgtl1EKG475/cUrsVh40Gkms5ZIVrOG3+0/OHiIOFSJDnTbTHHRqcO7V4BJqDjOtvVeG0H35y7dejSWm93NKn8h5S0HkiEStTRHDibRdZNiYIDepaLOGYT6hwbfzPh3bAKs6vUfC3QcUUl3BgzjcOabAsSH52PwphTVmeO06ExRfAeq6sL/75RCGFEB90j/OMfXwgPODTzghqAJhloMhU3ba4pmkpziVIdCj6z6LQ6A== 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=KwKWL7pLBEUVJfTAi8G8mj+L1+eIlv6eqN3fGqsJd9U=; b=t323kt1tHc9r2PzQVVxEgIwOyzUXFQodvq1c7Os2FJld0S6EnET/KkkNnvcckDCTSl2EYI1uoZwFkQe1xOoWt6oL+oEXaaz7Id72f1fco0cgWqGKzQw9/N4RqVbi5hyUVmoIsm6hdiiFKKqHNlnBkTo1q5QttUjCHQU4SeEf3ug= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by SJ0PR11MB5597.namprd11.prod.outlook.com (2603:10b6:a03:300::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.13; Wed, 4 May 2022 16:19:27 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::d0fc:845b:ce0b:11fa]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::d0fc:845b:ce0b:11fa%7]) with mapi id 15.20.5206.026; Wed, 4 May 2022 16:19:27 +0000 From: <Ajay.Kathat@microchip.com> To: <linux-wireless@vger.kernel.org> CC: <Claudiu.Beznea@microchip.com>, <Sripad.Balwadgi@microchip.com>, <Ajay.Kathat@microchip.com> Subject: [PATCH 5/5] wilc1000: add valid vmm_entry check before fetching from TX queue Thread-Topic: [PATCH 5/5] wilc1000: add valid vmm_entry check before fetching from TX queue Thread-Index: AQHYX9K5v2GgK0DDa0m7VuNszJu7yA== Date: Wed, 4 May 2022 16:19:27 +0000 Message-ID: <20220504161924.2146601-5-ajay.kathat@microchip.com> References: <20220504161924.2146601-1-ajay.kathat@microchip.com> In-Reply-To: <20220504161924.2146601-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.25.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: 58bf1942-d966-4c2f-1c70-08da2de9dc81 x-ms-traffictypediagnostic: SJ0PR11MB5597:EE_ x-microsoft-antispam-prvs: <SJ0PR11MB5597560ADF88A04CBEE83239E3C39@SJ0PR11MB5597.namprd11.prod.outlook.com> x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: N1bwtPins34bIa3pneTctI+kieebj6KmRRuH0it30o0twNJ7toBwFinqlz7lfXNxA16EB2Rvw61Sui7qXjcadrFJ6ZKRS/CDGBOlj9l7GdukKSry35xv78iqPSzYGHVyM/aTEhNgcsr1TD0z88Zqh/bHaPLTk+ILlL7Lw89V/DF90+XaIh+yJXzbZIZEDbILSy51TxG2ZkBxHLu9lyqRadaqzuOLHZA8EKpAsLg2zI2VF91OavHMesvjdMYBsIx0EVKIrvBuMINOiNMUPZa/9SKA+IvW8Ddr/WYFnH4FJaEugGgHGYbaxBhVicFLZ0w8vtFHrEzG83D7LXFvn9Sa9zMrG6CwHdFv79tByKY+ktCEGs8N3XuS3TB+z/H2TdorUwGILftwQvijnQBUGTi+BYXC/d6N/wkdlPaKDXTpsD8YPAn/myG/Yam/Hs0hHc4JAoNvmmDbPumKJEuvQZBEeCUZme7ZPDkI4q6eqLAJ49ei7JVSW9kRMKeyIMYzmOH57O8HTFRhjhEIvk29l18u3+L9AxwPR7RC5bcZ9leN4BzXrZH6WYeF34y8tuFo/bxzbuvriCyQSZWGLxHKdgfPRd7WFHfwPWaugXU0DmeZSkK/omST1rJhfOtPGLdQlx5AzXwm8ip450ZXchYr3hAjKRAhFXEvTVBjDvEPc8wUTSA+m4DF35XZPCU1YBHlEdIgMr/1gWFTSi8lEU8YMoVX1Q== 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:(13230001)(366004)(36756003)(38070700005)(38100700002)(6486002)(122000001)(2906002)(8936002)(6506007)(508600001)(1076003)(4326008)(86362001)(6916009)(186003)(6512007)(26005)(71200400001)(2616005)(54906003)(5660300002)(316002)(91956017)(107886003)(8676002)(83380400001)(64756008)(76116006)(66556008)(66476007)(66446008)(66946007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?/IgpJ3WuWnLgsOJeGyJN10C?= =?iso-8859-1?q?4dVCTfwZN4PkFak5Yz39xbRc3xD8Zp8qrhhfpCKU7CSDwm9ENa60vIeze3rA?= =?iso-8859-1?q?B2GgxO0cuq8gYkF6p87ljCl2lGP+GNarYl/pLC3++eLGAo1EgeyXVprMVjYu?= =?iso-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mZScg3/M/exPF5UcsYJU8Doe8VyX92R7slc1vk3lJ3G3MJgyC7?= =?iso-8859-1?q?l4f/Ysim6WY+KrEbG/Rs/Or6zRZNKVWuXDQ9ougJijcwKnUmapkzALQxtl27?= =?iso-8859-1?q?dhjyHc7LFvG3pUk6JBNfM4R3CMjtaGQ7gLMRK0W912HD3QL5f0dsBfVp9Lsk?= =?iso-8859-1?q?FhuFlXC2s/G+hrccgcNYu1EQ4tgkIXUWz/gPPzCoQ8/M7hy54HnLoL+fe2Ly?= =?iso-8859-1?q?AIAgJFQ/rYuOCcqlrRKm+SHSGd8TFBjnpiZG7a5z+a+RgwF4srQH6HJgBbaS?= =?iso-8859-1?q?4QDqup9fjzsWBtJdcaWrEpUNtE3MpdXbHJXrQ2nHmPxrrqEAcR9KtQZ9ITHM?= =?iso-8859-1?q?s7s70xKgOoXX7LTrapEpLmGWlfty5udWdCs6AGpxr2mu0pVJ3ugzljsJTGlG?= =?iso-8859-1?q?SKW+7OB2LV2pmws9nMFSYGayIsEfV9L0BAVeSwo2WLuxvGekgO4RsJdmBRS9?= =?iso-8859-1?q?MsSwdTSQyYS32yGzgT7wKaBUl/3HvuwBAkrLqCnhQREkIeyhe4Y5SKyPxPy+?= =?iso-8859-1?q?zOtBZvfOSvtAoisK6buDk3X6o3uEM7vMDSm2/h3nM/5LJkD2fyxE5EC+oA6Q?= =?iso-8859-1?q?QLEupfi7/CV0Z6pmfBUeBS+K2rSFECehJLDBx71O46jLRCVPzEDnOUVwWPiW?= =?iso-8859-1?q?L77jmejkX9iAyVOY8JSKYezDie4pXbEkWRRbPd2M7+mR23YN8f9HBCCGpOB4?= =?iso-8859-1?q?l+9AfEj5inWZisfeAgP6191eTL/IGozwp4i/HvziQZWC4B8ty3oD/sOW5CW/?= =?iso-8859-1?q?y5TnjxONTXgCqCBXqi1lJdvnG86eU?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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: 58bf1942-d966-4c2f-1c70-08da2de9dc81 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 May 2022 16:19:27.5800 (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: 70/sOaXaVXlFBvlqNK1rYyBRoP+jzGeWSka5a1kdxrsal9PpgeGaU3aTDVCfnvmlfYkJlOUsoPBg1ol56lK+uePWOydUcAbGKHhJF95r8o8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5597 Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org |
Series |
[1/5] wilc1000: increase firmware version array size
|
expand
|
diff --git a/drivers/net/wireless/microchip/wilc1000/wlan.c b/drivers/net/wireless/microchip/wilc1000/wlan.c index fb5633a05fd5..48441f0389ca 100644 --- a/drivers/net/wireless/microchip/wilc1000/wlan.c +++ b/drivers/net/wireless/microchip/wilc1000/wlan.c @@ -875,14 +875,15 @@ int wilc_wlan_handle_txq(struct wilc *wilc, u32 *txq_count) char *bssid; u8 mgmt_ptk = 0; + if (vmm_table[i] == 0 || vmm_entries_ac[i] >= NQUEUES) + break; + tqe = wilc_wlan_txq_remove_from_head(wilc, vmm_entries_ac[i]); - ac_pkt_num_to_chip[vmm_entries_ac[i]]++; if (!tqe) break; + ac_pkt_num_to_chip[vmm_entries_ac[i]]++; vif = tqe->vif; - if (vmm_table[i] == 0) - break; le32_to_cpus(&vmm_table[i]); vmm_sz = FIELD_GET(WILC_VMM_BUFFER_SIZE, vmm_table[i]);