From patchwork Fri Sep 10 16:04:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509388 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18550C43219 for ; Fri, 10 Sep 2021 16:05:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA04461207 for ; Fri, 10 Sep 2021 16:05:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbhIJQGx (ORCPT ); Fri, 10 Sep 2021 12:06:53 -0400 Received: from mail-co1nam11on2067.outbound.protection.outlook.com ([40.107.220.67]:25696 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229451AbhIJQGq (ORCPT ); Fri, 10 Sep 2021 12:06:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HpblC7YtiFdT1xEjIkzD0L77ll287DKZYDLINgOZKEXQK6+mt7ZfAMXLcC6mZGPQKIZXa0cCb2OAVo17e2iguPRMkhqBsuU0UIlg5iN6OJBXsub7YZW8F/RsJ5JuYGmZeah5kEOXyxpPvBQBtZoSln+7k5/p7yWCX5Ek8SGgD8JeIobQZBXkbUVemy+3GyYpmcNKzl4Xutbgz8We3G7M0z825sxzlevmQOL5M57SrnaLS9mIJiep8v4ig28UrhWwEEFl272kzxnBQaLfbH6xmDIbfrdOhej4uokjVsmao9EE5ahudRSn5TDbMPoYum5CJtwNePBZ9wl0HUBxTMW0rg== 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; bh=Fib8Y8j+Fw/sN2NX69u9T+P9uNpyVHksmDfyGgxLK4M=; b=PZ/CuwMOMpYpxBA1JkidjrnisZj5F691XAZU8hFiC8InzCy1qz3P+yd+ORiZ3XgrRBjymeoCnXWkukRLjlX6Xrng+VkmJzFxipW5T4O9MtWyf0ZF8cXqXb1xydRFCXSTucbZ/uJJJewi29HCTl+iz7YU0gCOTVAGlzvbPsEwykJaxhonTRH5XNn3xXrYFWLfmFl2wE2+HoWVnL55aN+uzZLA68hvSJzgMPyiaGGk5C5Umi+d1L5YWTM3j9nLjgfo4MZiDued/a2s0nTqWaq4euSZ2ar+S4wwx1fTi98ILUZnga+EN7Tjr4uAyW8xNy0yPq4unC8ALhVH90AdxCfpTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fib8Y8j+Fw/sN2NX69u9T+P9uNpyVHksmDfyGgxLK4M=; b=RZ3LmnX+F3GuvRCuJ5ac1Yjsjby2ooolA0MwRHRS/aaSmcaKkJdEwW+7yiXluFOcYQDoLbqrBwQuCIAXvyET/B+I7zn9h2LShoPXeKU7pDjS4fQazliifUKSA2n9s6MBKsxYi2i0pEr1OHKw/xsaUzm6dGh7s3BuKV5UTzfqiug= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA0PR11MB4592.namprd11.prod.outlook.com (2603:10b6:806:98::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:05:33 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:33 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 01/31] staging: wfx: use abbreviated message for "incorrect sequence" Date: Fri, 10 Sep 2021 18:04:34 +0200 Message-Id: <20210910160504.1794332-2-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c400d46-7ec7-4b36-dcf7-08d97474d190 X-MS-TrafficTypeDiagnostic: SA0PR11MB4592: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DkUjH7DWdYbciEtKdegbBTHDuM0ThY4NiKyTUEHBYGzviWajPiC7GVcL2RfD4vM6zegxop4ibZJ3Q0uvi2jQflpQWubsHeQ3nDABF3xGHmIl7e3QM+DVZye1ycrTCgOR/xENcH803OraTfSrJ6VyCaXLAwlzfWDP4Ml/kFu0733RziDFpgJ9uyy4MUnu9wdT+XMitzyfPqThXcd9D83XZ9gEIbFGekc+kvEFSsKI9k2JN47F3di6vwRtBqs020r7NSPSD6HOpkkqhE3XD/6derpV0WEidkqPHF8y0367eQMW7v3cygtz1ZB1cAqII/yreJ/+MeStwZGJGVd9ZHkN43T4MtrDALYI4qZGdiDPfeLajq8nLJrKsI9u0H5blKx12kMy/Sj4Bg4lC0Yqw4BkzD0fmen+6yN5n/E53selhL2L+E7ULEzZFNRpNKIafMBtTMuqnNvR06tiDjhrHnMoRL8lPPcU2fN2T3kcfH8/LuK2UMKp1GSgGu1HUwmneJpQtd3O/HJtp5MuDgNBbGa1OSzATCtLLb7d9Lwv4An2R5x6/o4oTcvLMEwjAC5mzg1p87oPAdGium7c4zYiAAgaoxPR8Ke2FMRmRzV0O1pOzjqfmFVRgQfcaHzC8qLOj7R6lm9eMYqeYMvFiVj6l2Z8dg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(2906002)(66556008)(66476007)(316002)(66946007)(83380400001)(66574015)(8676002)(8936002)(36756003)(15650500001)(86362001)(6486002)(107886003)(7696005)(52116002)(54906003)(2616005)(5660300002)(4326008)(38100700002)(1076003)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ZlpdSP18mIFTP6BLybV2wpd0W?= =?utf-8?q?kSGL6+uM53o8xukeNACXbyNQ4/bDOBsqzMwwPsEbrEqk9l7Vw6RlRJiR?= =?utf-8?q?/EYoQo5Kk3yWU7cqHNtYgA0Gg5/qkEm0G/P1oZkTylQoqkRjeZDUv9b9?= =?utf-8?q?F/eCyZz8ymTBZzAc18B6/EoHYXh2pXMV2+33EGzgZpWAq2ymbL2VVWg8?= =?utf-8?q?wA7dyqlx4p/1CIKMdcMIFN4+bH4lXLzP9rzVMixOaAMo1Zfe/kUZbukP?= =?utf-8?q?P8/5/F7/20xZ4g6nO4tGLXwzJ2XcPa7FqJB+4YTC98HuPVC5yQtqhimr?= =?utf-8?q?PeO6dFRwAcw8Egr4HBv5H1ZR6C02BoppFFPuMG9KC0RWrkpxgoUneMrL?= =?utf-8?q?NzsmLNhUx5H9hrqlZdAE23M1ARMf49wTSfWuZ9KRdxrnH7fnLkBXuPO0?= =?utf-8?q?8/BVkzv+RL6Fq2xo+DAO2pRPeylyAwowKvt/UforOz4dbLHg2bgZgBMv?= =?utf-8?q?z9mRb2a7dH280Whkd7VUTVQS4ZQ5ZM+OpsQGqCOYERP7o722K/lVvl1c?= =?utf-8?q?veitZBVPY9mYqEYmcPxcJMryZbVFzzS/AosoQGgJ77kslBYNxGTzZV4v?= =?utf-8?q?wD9TqofROtCQV/5Bkz4x/WhrR4BHPiY8cFlBSmiaTSIB96pc9qyMHTVV?= =?utf-8?q?rzVo+bi7DSpmK2XTNGvWfqKaUZLABt1cYXrCL2AJrPwCXCKHDKqbkEk0?= =?utf-8?q?GqSVUbb4OKJh2O0l1izOf2VU1oao8Pc6yfspZeygnwLUV4WxI4tiWGFk?= =?utf-8?q?lkW3ShYNQQyR5rvGxIzLmK1FlAlHjOHKgJdGOZvJmp5kIXtJ+npMpCAh?= =?utf-8?q?3T7cFtK3WKPCgcJUHhD4LXPgzsaZpuayBkL7N2A5xsBKeAmUHEMN54bU?= =?utf-8?q?tpzwpGXWOpFmv8RiMWx60TngNaIhrz2z6cZ2TtHXCu49pSLQFgfoyLKE?= =?utf-8?q?hdetEdS31o4SGwj8MDDeOhw1p0INpLz8CoDCoKmPa6kSc3/J8gVTeKnx?= =?utf-8?q?NYau0NJxc37vcgWTkg3V9YrGEx3x6yiLsNyEavTjVSyy/Rfe+QBg4DDf?= =?utf-8?q?trovUQ6+kq99l5ayrU3fvYCWmjjoAvlk2lfZuo6b1qo77FswbuCq3ICd?= =?utf-8?q?TEA0dIKmGWcLsFiZ6mhI/Io5QpDD2poA3kqXP/Utm2bH93iDSwaaAJSp?= =?utf-8?q?JsK7Z27eYle0g4b/BJTU5FR50TyLft9DiILXHhn6WrZQzZpZwvmifg+6?= =?utf-8?q?AsMKGAt+QnVUtuPU3lDOsBtKFLHv/sxrPhuKHhRV4AnrsVdkbGmaLcJP?= =?utf-8?q?4BdFgpSsY2byKcDGQpDWCxANBJ6cbDufd7PpIQrSOb54sBMgViXED0tk?= =?utf-8?q?dkcK5dC9XHwWKb38wI2Xf22YB1VT/h6UU3EQm4nzL0UuhnyfTjvtriZw?= =?utf-8?q?xupFBsFC9l2+GUWr8hSXcowkZg4BSAnYXxhT4rW?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c400d46-7ec7-4b36-dcf7-08d97474d190 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:33.3314 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 58QN90y1o+PcHxaEc74BzhVXvJzFcB/LEHjCOrb/yO3hSmsLhDlQdCiayjnXJ9Mcmh22URrXky3mkMWwmmgKjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4592 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The wfx driver checks carefully the coherency of of the DTIM notifications. We have noticed several times some small inconsistencies from the firmware on these notification. They have never been critical. However on the driver side they lead to big fat warnings. Worse, if these warning are displayed on UART console, they can be long to display (several hundreds of millisecs). Since, this warning is generated from a work queue, it can delay all the workqueue users. Especially, it can drastically slow down the frame management of the driver and then generate errors that are serious this time (eg. an overflow of the indication queue of the device). Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index cb7e8abdf43c..a236e5bb6914 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -631,8 +631,9 @@ void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd notify_cmd) { if (notify_cmd != STA_NOTIFY_AWAKE) return; - WARN(!wfx_tx_queues_has_cab(wvif), "incorrect sequence"); - WARN(wvif->after_dtim_tx_allowed, "incorrect sequence"); + if (!wfx_tx_queues_has_cab(wvif) || wvif->after_dtim_tx_allowed) + dev_warn(wvif->wdev->dev, "incorrect sequence (%d CAB in queue)", + wfx_tx_queues_has_cab(wvif)); wvif->after_dtim_tx_allowed = true; wfx_bh_request_tx(wvif->wdev); } From patchwork Fri Sep 10 16:04:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509389 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80964C433F5 for ; Fri, 10 Sep 2021 16:05:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5FAF26121D for ; Fri, 10 Sep 2021 16:05:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229759AbhIJQGt (ORCPT ); Fri, 10 Sep 2021 12:06:49 -0400 Received: from mail-co1nam11on2081.outbound.protection.outlook.com ([40.107.220.81]:23264 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229698AbhIJQGr (ORCPT ); Fri, 10 Sep 2021 12:06:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WuHjhkD1jkIACHTmey6dRz0jGniLo4HSfO9Yvc37yyK8efQxK9U9z9BCjfXpADWaDZTF94+UpqPe9nvdzOlkginmK3H5J/bvT/gHLX92MKJHCdQgK3JmFmcNbedPQPwm5EVoN46LIwtypFpeWW1j1L+uB3Xj2KeO6mkDbWz5UGWYkbWdE6Du/Zu45Yj3fLNUi6dfH/HCm20A+GdyGSsXdU14rA2tRcOAlP1ZyVHsp7fFbWOZVwep50cjaXlJDxHyBjAr18WPHpDLS83c1VOKE/FDelvkQfEA3RBguFcspNYIk9KIusfyCv7F3cZwb5F+TUvSBxO9lxw1BMiP0qNFAA== 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; bh=W3xhbbkCQnf2vd3TochAY9N0f/ZMLhJVqHh1xnxRZkk=; b=Q19fZY1KTLfidtu8KdQBQmnBYGadMrJ8j1aBC90JTF+xO1AuvHVAmsDRkisG/vre0LtyQTZ8BZyrLkKgXVCh/quRY2OCIP2GSutEtTSOozsgZjgJhnPsOEJxXuiOTj+AAMwnApd6kMRcanETSdaVAGufEG6b9zKsNrNdE3PDPV2bfc9qRI27kY5v4mtailHZct3kcI28XKHV/AsoKs84f9b83bGZPh1BdgoPduyyqvar0m2dFZNEBeAVSuVv0osoobkM9OWKtns+zHSZduP1x1+WHJkpsouHwGRaew9KgW+voMlH7HM9wsx5nNcTzUrjrjV112CtwVKOTtds+V8ejQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W3xhbbkCQnf2vd3TochAY9N0f/ZMLhJVqHh1xnxRZkk=; b=L87qdB3NMetYTccwj5MRSqsz9cUAxXoD7NSHoIDMM9xuhwFYvKoDMznjs9SwteyR33W2OAjaAVSirRUxQ6gd5TrTAItVwzQg4ybgI1kxcsQp5jFWMxqm3GG0+LbvwugLwdMwn8eCYU2x82gVDB4KJUUb7AEVwIeALm7jg6ju3u4= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA0PR11MB4592.namprd11.prod.outlook.com (2603:10b6:806:98::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:05:35 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:35 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 02/31] staging: wfx: do not send CAB while scanning Date: Fri, 10 Sep 2021 18:04:35 +0200 Message-Id: <20210910160504.1794332-3-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d0faf153-c32e-435f-4a62-08d97474d2b4 X-MS-TrafficTypeDiagnostic: SA0PR11MB4592: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5i/7GfUt+a40poWp0Bja3ajvWQO8nUeQDrkcdVajrK/rlNfIJycZL+HabYFEup3FOvok89BKROgNxIZ4JwEJi4yE98bdOJVb7X2A4Y1C2F0mEQi3DINcgOqLIcRA6hcYugFDkJsWT1B0/PzZCYhlU80/+r40hromxws0M7LcsoSMNyNBOJScUPveq1NLT0xt1LKTZtoyMCEjlDyINWINm8/9xevgWr8MdnoKY6gMDH6AzHUktRR9fzEnc+mRvYtfU8OEfYSh7kXpv6fPzvx47AU3WIBpSv69nYSXzn7GlcTcoateOG6tLPnKVjxukumlgwir3kf5dwEMOR4yKU582O1I9QQUlmuIRfMTjfxD3ijeWLqL4wkntz/S87WbjDXL1VXcop6g6ZBsjzHfl7eVKfS5ZnM/3wSE0L2HQDESJna6ud0FIzEvslRAvnsCf/GLuINVv314ekO/ExkTDN75YV7FzCsc3jxCYVp8w5vOzAhGrsAGzjhWZ2lGCsY+8Pw8thwheuLeUvsK9T8C17HtxwjJl8Y7J8+XuGU8kk2ZqwnuKsT6W8D2aUd03saP80nuuD7GWMs4zGfNHoXQbuElqT24JwQxX+lk+D6ZeAGMmfJFnMJT2uLY57CN2xDPkth90QOlgvozZ+Flrnnuyf4cpQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(2906002)(66556008)(66476007)(316002)(66946007)(83380400001)(66574015)(8676002)(8936002)(36756003)(86362001)(6486002)(107886003)(7696005)(52116002)(54906003)(2616005)(5660300002)(4326008)(38100700002)(1076003)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?HPqJQSELzoGLx2VVXkXhKFugn?= =?utf-8?q?sPo4WKYFxcBMwd3A/sUadHziJzkZYGwzzaHScGdFwSoulnpEgmX1+wCV?= =?utf-8?q?5ZSd99AF859iwXsef2MvXCUsvuhyI1rvLu0dH235sa5dW+fi54Pje2vC?= =?utf-8?q?KfgB5gTV+CSWHvWgm+503g4sht12EFpJtER9A42ZY9gr0G4IUx0EiQ6N?= =?utf-8?q?Hw+5IavV35htlZ+p6n7IzAsHzCda0nFNsOZ0I9IEP2IMFtPMXwK5P77B?= =?utf-8?q?EZUDaupGtIsMj1VYmHk5yc7akWA/W0tXvQJy2+bn33vv1QqJTSoVBXNf?= =?utf-8?q?la8tjuofQB+q1MXIAqojOs5SMdIm5hcyLKETOFtw6HnNV4kJ4f8UGD79?= =?utf-8?q?E9w8XEEiKGCLfyKH4M7QOxTM1xP9i1CwxDuhG/A/a0t8UT5hoVXH1v6B?= =?utf-8?q?Cktn7pnXfRzW6FcMrWA0tKzmIEkMDqHABQyAzvxo6VCDxVNtPSfaOla/?= =?utf-8?q?CjtydBIJWYfoguQuZF/4CAV6ETeNmpjU0t+IJbxeV6MIWYtqYBxKH2u3?= =?utf-8?q?rGHnXvzYdJrsHSMiQiCPlig/KOX7Nl6UZEnnbjJBDRl3CBJbGAHo+HQc?= =?utf-8?q?f8VE3ap59BSmWCCfDhsI1wP9BNeD6Yt1X4syRePCDhmk0uryFXK843sk?= =?utf-8?q?zhYn29ZM9CBsvG33kqJCFPmyOAVVcSWau3jDIdL6uLO0bzwigy4Xjfix?= =?utf-8?q?kAwvjM3yCbueU8Sy86CnsUScM1BgM5pEqyxU/ylG/ucWqTZVXrTIRWwc?= =?utf-8?q?v8i+XgEcgG2craOnpPOXFmyqeuEtY1bPiFkpT99HpG9cRleVtITCZLCh?= =?utf-8?q?lF8i7Fj0NufcRU8QaYssvxrjMccMuspMsrAUIBP0b1ox6Va1w/Sw+5zo?= =?utf-8?q?tNLXBJrBbvww0ih9OVWnzGDaLsw7prutbGR3xVkSuinfTckE+NvTT5df?= =?utf-8?q?kLDSBNMsoel9ZL3ezT3+fQ6sk15ULP5tFEbxzwbUf2o0wuTTStpvBA8a?= =?utf-8?q?yCQEb5eP2N4YUyVECAZoHwtj+exKb6+tW/tJ0OF0TNoSElsc+ynCBlio?= =?utf-8?q?O4IqpkGXO/PqDlzuUqvW/724ffgjK/4BegAR6J1zgt2GU2d8A2dCQX1i?= =?utf-8?q?eXYgwEFn4wQFWFLT6GHCmW01cwDqTqZx2yLQ/M0rCxmAdu8XpF0BBN5Z?= =?utf-8?q?1zlBeiT9OxKsl/X1mWvuz+Q7y00sn9jrXo+q9hC+P1Jr6K25XPsMk+1G?= =?utf-8?q?jxnx1gA3qdBzboOMAhb5/ZbTgUGd5SAo92kxo1CuMx5zwwRItWtYyUOX?= =?utf-8?q?A5g5NOPnsNiePxUEq7gwvLa8IcVvAT9SSrQ+IgndtyN2v26lrfO1dsxd?= =?utf-8?q?dT+gUq20nY/RD6XmGImNB1WtujWLimBUGkzV8p+6vuSRKeEoudME/G9S?= =?utf-8?q?smpw2Pfdgxlnk4adCNjGE2HCUmH9gvrz+7w2FyE?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0faf153-c32e-435f-4a62-08d97474d2b4 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:35.1923 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VS+Z512qR3UvN//OaPndQLct8AYIvkPaf39jVCjtnZ9NEFgs49gFh23TpE4R6fcre+P7HxGbi8bq7Ry94weVLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4592 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller During the scan requests, the Tx traffic is suspended. This lock is shared by all the network interfaces. So, a scan request on one interface will block the traffic on a second interface. This causes trouble when the queued traffic contains CAB (Content After DTIM Beacon) since this traffic cannot be delayed. It could be possible to make the lock local to each interface. But It would only push the problem further. The device won't be able to send the CAB before the end of the scan. So, this patch just ignore the DTIM indication when a scan is in progress. The firmware will send another indication on the next DTIM and this time the system will be able to send the traffic just behind the beacon. The only drawback of this solution is that the stations connected to the AP will wait for traffic after the DTIM for nothing. But since the case is really rare it is not a big deal. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index a236e5bb6914..d901588237a4 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -629,8 +629,18 @@ int wfx_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, bool set) void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd notify_cmd) { + struct wfx_vif *wvif_it; + if (notify_cmd != STA_NOTIFY_AWAKE) return; + + // Device won't be able to honor CAB if a scan is in progress on any + // interface. Prefer to skip this DTIM and wait for the next one. + wvif_it = NULL; + while ((wvif_it = wvif_iterate(wvif->wdev, wvif_it)) != NULL) + if (mutex_is_locked(&wvif_it->scan_lock)) + return; + if (!wfx_tx_queues_has_cab(wvif) || wvif->after_dtim_tx_allowed) dev_warn(wvif->wdev->dev, "incorrect sequence (%d CAB in queue)", wfx_tx_queues_has_cab(wvif)); From patchwork Fri Sep 10 16:04:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509053 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 252A8C4321E for ; Fri, 10 Sep 2021 16:05:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1257761205 for ; Fri, 10 Sep 2021 16:05:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbhIJQGz (ORCPT ); Fri, 10 Sep 2021 12:06:55 -0400 Received: from mail-dm6nam08on2082.outbound.protection.outlook.com ([40.107.102.82]:61568 "EHLO NAM04-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229448AbhIJQGt (ORCPT ); Fri, 10 Sep 2021 12:06:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bWaU2SzGzF+qggdxLtZq1JeICDs+8nxzlFrKEpj3pcEPPhUJDLLWz0t6G5jx56m4VxAVVUeHainBcqb77JD4Ej3IbRFQuukiVuaiJ2Os/7vSqYbxVOIw2o4B6o2fUbIKmRzfG28jR2fkBcbbRFIGmmIxU9wSGSboDukyJlIpw+5nLZ5GKY35KFEycQOVN5Uh/+ZcwW78QuGhp4SLW8lckYK3GsxMt/F/TFYDgENFHLKMsRsXtQ9FIHjD9/2KHlJ/rPMn6vnMiEfF2fGmMqcinpeIfMyQFyIsA3KpHNUAVDa6mYfHm4C+Ydn6xe9H2KcKht5F5O8rgt6AHApZyWgQ1w== 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; bh=0w+Xz727jgVX/irNEH9/BqvsPmS+ssDQd0a+YfBOGac=; b=PHW3pDpHb5orRikOdcrVgaaIuJ9ByGE9sKk3PDwPKLRLmd2hLbP3RMJtHtY9YW+YUgha2/XL1rXWBr+8RjXvyX4rmDdV8zvmkfj1jdGsS23P4jrFiQd+ZXWMnU550WIOknIB0DHvJwKXhvNb00z8Z48EyZ7pgDA578iz18cpHFVjYAWw0FOs2WhqIPfpsFDvsJ6ISjUSB6GzgKoirjuicLLpVU2G4yCqYLyD6HfOFSSQesx97PHmuwiXKbq/BmyjX5JM82cQx27icaeBwJzdKXYZJN7srSvgAT4M9HpzGKP/cSt9NEII7ej/jm8h0kL1Y3enByCD6GMvpbInUaCi5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0w+Xz727jgVX/irNEH9/BqvsPmS+ssDQd0a+YfBOGac=; b=JNJcVfmpaeGLD8nErSyssdyFZDCXYFUhEFwDesmzDYjsGtHPnOPj+Jo0lsGM1aqDCcS0GHOkYsipfA7iSsK0P4KRfpJv95s2qlQB47efM7wjBjLgNYJldysivXdsvbpcT8sEtBXb7sMeX3hwhX/6q3Idk0A0IxQCgn2Sh/wo5Ik= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA0PR11MB4592.namprd11.prod.outlook.com (2603:10b6:806:98::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:05:37 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:37 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 03/31] staging: wfx: ignore PS when STA/AP share same channel Date: Fri, 10 Sep 2021 18:04:36 +0200 Message-Id: <20210910160504.1794332-4-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:35 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d615f737-10ce-412b-e499-08d97474d3c3 X-MS-TrafficTypeDiagnostic: SA0PR11MB4592: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2EODoa3VjzFV7zowESBQcHs6/DFCjEjtJUU3d9OkIrbdoHleoRaAjy9jJYOO/S+2mF72EpbnFfe+oUSRI+c14oe/B1ir9sYmkEessH0kbdxYK/Wry8LJQzG3PkIO/9GqhP2ybKt267H38IGWZpGPJgdku1WKdjo3s7/eF6fP4+vlKSSPGRxxmXcF5abpvk/UNiLPV9+tnimrK1Cw/N9V1sEW70ntVKllZyOkYGn3UYjLuE3IfPZtwQijKe503nMXXMZu1mq3vftFf85EELo0r9abb781Xx+YNLM+eshMW+Hwrn+RIlghPEuMzDn+3aGZ71Q7rObqqVtXg22QCnfGq/fxu58WXwzxhX0yOG643Lqk7dQ5rNzs85seqwG0seI7R/+/thW2ge9blS4LFxtu3Fy4pq0XfR4F57SzMYnWJ/KHUo/wBGtJC+IHr6R8OczPuK2PhKSyvCIXR9IORfLuFSYJCq3ULczKnkFQgbJOWXvNkzEDTR/ofz+uDPstZL8y3WRRqovGHpYB9hidUjEEMDMdz78C+pEQxDYRiTEbsXFKLT26zkUUbPNH8uKChlu17XX5AWvrWAR8o03W0qw7vsolMuFSWyLjxsOP/UkpD/8/soDYO+CPPdzTUumrk6+8Hd/wQQmIc/4Uw6mxsa/U2w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(2906002)(66556008)(66476007)(316002)(66946007)(83380400001)(66574015)(8676002)(8936002)(36756003)(86362001)(6486002)(107886003)(7696005)(52116002)(54906003)(2616005)(5660300002)(4326008)(38100700002)(1076003)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?SkY3IYQjaziDaljFP0bxW2SkS?= =?utf-8?q?sp1jUa7hOzbWJlkVZS6tKIxedLqjHKdsYNwuXDp5oiBSvzBAb267CSkm?= =?utf-8?q?qvWduL7BxchyfZ2G4q9lk5runocMpdGF/6LxIYkmorf7V9VUEZmT30ro?= =?utf-8?q?/aGrwC18you8C1LZeXZ+BqbT85laBjzp408fKeCYFqYJoZCcseqR3Xzx?= =?utf-8?q?McZOBv+Un1fLHm37gRt6cMykh9GY7QmOORT/ve00cOfJX9u2pevUfkhf?= =?utf-8?q?xt4DCU2ZAp/QYS657s/HvlwXRnCm4A31+G9zQnC03RGhXb+TFlqsorwe?= =?utf-8?q?ifoTmjr+UGmUCfHhWh/DijhJItdS7NkjDgSa9jkdBZPTVktu5wr8shn0?= =?utf-8?q?LpLDaLkkbVjWkxI+el8JUAgOb1RWcBgfj9CYy5FpEPzLgYQk7Ab0n86K?= =?utf-8?q?+VZ0IyrBCrC2ZE6DBEVYnyHaiiEE5PZVGJMCSlIsDhhHDgW+dwHdcXn5?= =?utf-8?q?tkFIWYPA/Kc13YWaHeIgYrPq6dnpvi3zLOuUuHixRRxgtVvn+DMGE/d+?= =?utf-8?q?TVyh4Ig1eJ6hAXdEekrkIpfRgpCbspodkpfP3IS3D8daLZH4e2XguR7W?= =?utf-8?q?DKSMI7u2schrU6HFfsD1kdZN5tZkvF/bSFm2JL+gUMjh9KOBnS8sIuuQ?= =?utf-8?q?GeYYhb9LxTzcelYRZ72JlTZpguklCz4k6erVLgszoS/l3ehWB9QxvgJr?= =?utf-8?q?zOo6O9Cph6eujux7ZxDV+bbPsTn0MDEFAvNWyxzzWMTb+TwAJus2OgHs?= =?utf-8?q?S39O9T/UDH+Ze6vyUBaEnK+FVdToiSpZN6fJ+Y8x6QW/L+aYOx258oPU?= =?utf-8?q?OqNIxO6akXJmlihBI0/qKa5QWn3GhZsoHtUTCfipCQD0unuzFq/eS4u6?= =?utf-8?q?G8fSO3ivqfJN5mlGE/JQPUbL0fSBsjSHqz1cbCREy0vvvQjS9zQuVmyZ?= =?utf-8?q?qZYjkQlc8cFYilfDWN+IVv+56SMFMiVd9xn4WCscgVElHu3aQsQvMMbG?= =?utf-8?q?4FhS8Xw2xbM/ReTirFNNZXWiBEj8tO6fFg78ONcnLJHut0Ruazar6naQ?= =?utf-8?q?wKg4uJtOLM55Nu02Q2smrmTzqAXpxgOF4LZj2QtbWgkPQPmXtJ7I49Ue?= =?utf-8?q?8BosBK76t0qziyx8Gzkbwd13coWFOxwLRcDPzQTqIiEiDziofieZscpM?= =?utf-8?q?ZE2e7cLYat4S8Y7jJSxXa15Y9A/F3oGw/OD0oDoYMVyEODSFUH94TytT?= =?utf-8?q?Wxz9qYNiC6xeY6XwYWmJi+Mr5k64lDM+phu063MOxEWvYyc2Wk7uIu8N?= =?utf-8?q?C0b57s6RB2qzZv3uDaz6dOxlSTuq8fgwH/bniO4Ny3VIXr4BfI8FYYFP?= =?utf-8?q?pcag1QgB0vGAc8gXHmVpWdG3tMvZpLIlxSRGGD27yZvx130VNR8WH1RE?= =?utf-8?q?4DQWJX0CIXMdCr53Va6mNykY2tHSdRfI5C5hdq3?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d615f737-10ce-412b-e499-08d97474d3c3 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:37.0573 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: csXiGCsefQdRo/M2VmgAbHzyug6fyeBi3F72GvUKvzoGY02enUSFcqwK8Cg2V6Chy7MwDAeH9bOVyWap+uMvhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4592 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller When multiple interface are in use. One is always AP while the other is always station. When the two interface use the same channel, it makes no sense to enabled Power Saving (PS) on the station. Indeed, because of the AP, the device will be kept awake on this channel anyway. In add, when multiple interface are in use, mac80211 does not update the PS information and delegate to the driver responsibility to do the right thing. Thus, in the current code, when the user enable PS in this configuration, the driver finally enable PS-Poll which is probably not what the user expected. This patch detect this case and applies a sane configuration in all cases. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index d901588237a4..58446f78d648 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -154,18 +154,26 @@ static int wfx_get_ps_timeout(struct wfx_vif *wvif, bool *enable_ps) chan0 = wdev_to_wvif(wvif->wdev, 0)->vif->bss_conf.chandef.chan; if (wdev_to_wvif(wvif->wdev, 1)) chan1 = wdev_to_wvif(wvif->wdev, 1)->vif->bss_conf.chandef.chan; - if (chan0 && chan1 && chan0->hw_value != chan1->hw_value && - wvif->vif->type != NL80211_IFTYPE_AP) { - // It is necessary to enable powersave if channels - // are different. - if (enable_ps) - *enable_ps = true; - if (wvif->wdev->force_ps_timeout > -1) - return wvif->wdev->force_ps_timeout; - else if (wfx_api_older_than(wvif->wdev, 3, 2)) - return 0; - else - return 30; + if (chan0 && chan1 && wvif->vif->type != NL80211_IFTYPE_AP) { + if (chan0->hw_value == chan1->hw_value) { + // It is useless to enable PS if channels are the same. + if (enable_ps) + *enable_ps = false; + if (wvif->vif->bss_conf.assoc && wvif->vif->bss_conf.ps) + dev_info(wvif->wdev->dev, "ignoring requested PS mode"); + return -1; + } else { + // It is necessary to enable PS if channels + // are different. + if (enable_ps) + *enable_ps = true; + if (wvif->wdev->force_ps_timeout > -1) + return wvif->wdev->force_ps_timeout; + else if (wfx_api_older_than(wvif->wdev, 3, 2)) + return 0; + else + return 30; + } } if (enable_ps) *enable_ps = wvif->vif->bss_conf.ps; From patchwork Fri Sep 10 16:04:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509052 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBA25C4167D for ; Fri, 10 Sep 2021 16:05:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D635F61208 for ; Fri, 10 Sep 2021 16:05:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbhIJQG6 (ORCPT ); Fri, 10 Sep 2021 12:06:58 -0400 Received: from mail-mw2nam10on2043.outbound.protection.outlook.com ([40.107.94.43]:40801 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229919AbhIJQGw (ORCPT ); Fri, 10 Sep 2021 12:06:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N5YNXOxBX7QeSsAiy9pXGQmK1aUAYDQMvAko65Tgb8RugeZzttdjIV60Ra6kAm/qDei6OZW+50D461JzQNPCux9QK/AclxuQMwYPKkI0qKRla0OU77H2DjjBkzMu5OmNCCve6yax3k9hhNGXxrnabv+SkQUqi5M7I1VGqKxJf7J0BIpmARNQSqHmxYQxjW9JYRE9+Asd9VwbJYU6dG5/UHUzVLYhLm79V9aLjvpu2NJuwDh8q9QEahY2ANWIKWJm+oHdDUlCeG7b0Tn5M+Mmwtzpr0PW8Xhf1DcptCshpc5d9IgDhMiA6ysjdhXGktrh1j5Gi5SvZ375Ekuy6c+k9A== 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; bh=AmCqsbY3AiU0YiEAlz93ibGj/lSsD0m2Srcg44MoTrQ=; b=CoRRTO7wkUGxSXlMcK8zwbxQGSQDSRIysTp3cdmYBe1MAmNDRE2B8OYNDmId+SvdX2AlkTh8pmU+OxLBUnsP40Q23urq8j4YxdO5NW5ES0ta0vj1CNN7xWX5sQ7EdCOxmrEKKtpoZvi790jZiXG4pdvyNGWNAbjdb24pCeZLoVNk8uU+gFlTtNU9fBxMJyR76mqGTnVGcdyHBpLD7Ws7XlNKHQKkWLF0A1kgkmv4mlBnJMKCaVNyUYJURgzuw0N/zfaTSydZ0TJMmr4k9awtmioMX8SayJ2Ix6VULyj6uVK4crjsUkkxUgZ37yseP5b5OYSNZhZap6092ObCMud3Sw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AmCqsbY3AiU0YiEAlz93ibGj/lSsD0m2Srcg44MoTrQ=; b=Cn7QDbn9dahwxLKnFFM0PDTnm386BOTKmppRX93flw3a283S54t8LUKtkHBVRKlZRPjLAHA7R7AevxskD3AEmbL/JVijVZ1xQhzYebA6EjzenU6ohjueSM8IP8ELqW41TN4rd0PHytKGSbjJqj0eN2K+JgWTXxstXfm7jWkOSqI= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:40 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:40 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 04/31] staging: wfx: wait for SCAN_CMPL after a SCAN_STOP Date: Fri, 10 Sep 2021 18:04:37 +0200 Message-Id: <20210910160504.1794332-5-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 08b928fc-6f41-417c-97c3-08d97474d599 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zasamjVgn4oZb4+UaHWE7f1ct0+bSfClxh+giwSQqn4HErVzo+YXfmWynDzluUXtrdB26V+KqLb5l2hYODK1H1k324Y0CTMBKFhn647MYFR4z1DoneFMg0mTl4epOhLNIw4chL4EWLMHtBPZSn4E6m7zH6tUurWXqjwRX4HSEubRXyoy9dSsUNBjAWLiUqP6IRzfJqC/SLaPxEM+DVfRzVlZSN986xpHtv8Lfe/X/Yo8mAu95wmNnv1F4zSRSpSU1faz5a7zQl7tpMt/JPBratGchsH9b2tUhHYhE2NUAsi3xHpmOQfx4ulW70x3rpB6xkqMQPC9mOYrQtGXposU9ycXwifB68lth3hLRXvbKYoK7aBwKXyaIgy7YDCZNr/HfL55tOLfmZLCezDF8iMH6ue/o9PzCnArlAAzlkdtBF/EXMYNbbQq8NOEDZuTcdE36NVHAmU0+CXBgOzRmFDNjeif6pQSU5giZW0VVgfztUJBa8G4m6IpUikPOWYPUbEty8UZnVgrpy9i5q+Udd7sV0N21pGr5njk+P4CROV5DNNrpGv9WCe6s7Dm9oEyqhSGH4dWPasJTw4f11xcCr1WSqaoppjekogZzJjkwW8ICq02tGYq8PJxcqa7Xy5VhXe9KTP7iq0dnXh5qVoY07QTtg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wXZuKgtne74mrRulozXLGCotb?= =?utf-8?q?wcVZEyghzvc1fqtnDViUsCp8VambtABUTfb9UPPHxryPsMqbEiq0edNi?= =?utf-8?q?8LVXtH0BHt83cpWtKRxAuGsqcDyG21UmfiRVjJeOS0JyvbGHha2v1ETy?= =?utf-8?q?V4GZzdHdUlEaeqyKBLuP84EqsNvIhPFUb+Tj2KhAck+Zfn6YQU+rgY6S?= =?utf-8?q?r37Ksa7UpG7vllVlxvkjLKvVUNNqAGhWmeYGEbAt4ojslbsRenL8OB/c?= =?utf-8?q?Yc0eEKcms1ot38nhe/4VGFWXPoENZT8PJfbHhDxbWThTAG2hHSfamble?= =?utf-8?q?A+qEfCwkxx6HIKFnJN7eTGopXhJSrpG1anke0FuUEM4gNBWX3ZeHdfvZ?= =?utf-8?q?PLJ6CI8RKEODqPZCGpVzdqKfQqDB5HlrmS1uBtDagcSUPVhdmaZn02Yx?= =?utf-8?q?xlkHDRI9yYe5vVAF5P3j1h2yrTjDlpqI9RxhIQWLJm1TwGb1IdsSkANH?= =?utf-8?q?O/9Zz2hlOlxSFzmCSHmnOBW1pYtAlKITcPPcHfJI/aKfbxv5Q67mN/0I?= =?utf-8?q?NuB1pXABtvMuAVjO56uR0DNdGsc3USPSnM33FBiTiVPi8QPvdhV3jotB?= =?utf-8?q?P9gKIbJkfp/6wFe0LV8i9YbNh7azfmK3UfwPtpndspJrZru6o8NgrwP5?= =?utf-8?q?0K8HckXUy19aqlIMVHGnmwYQmI5NI93bG6TiVbExn+M9n8qMTvBEbN9t?= =?utf-8?q?Cyv2NeBKVx7Mwplayo3+xezzoyGR4vD+DR1XLn2cGAmE+KNHzE2GVIG7?= =?utf-8?q?S5DLNJA8mQJw48HKo2DbFABZIoW8p/BXszvr/68T93zUqOxlzJd1LM6L?= =?utf-8?q?aAJNclx5ExXekZ/jeRUD/sqcOf0VgkuWZE+dzcGMI7XhFmCAi6rtUkav?= =?utf-8?q?IMlPuimAlZrRfptXrs1Y/fmIgxXM4vq8gQdUgZgAN1Z9tyn0XdN0KWjQ?= =?utf-8?q?YMU8HoRgGgnfHokErRT9GjLkw8JBXENtFjEVLZHAg3+Uo9L4Sytp7Orf?= =?utf-8?q?KqZtEnCN3wL+PmcX3foZ72ch0xsBeS8c4damJauxMfJ8p6aErFooQ48z?= =?utf-8?q?BI8UqPuVPKcAuUpcGs4lmqK3GSsEKDoNXEnMy+1CWTQrHphV3wHPXuOs?= =?utf-8?q?UNPktJ8yCnd0vmkHB8VhjjWT+mbqlKBAG6xEGxVk0AaAhXLKOM4CABZQ?= =?utf-8?q?y2+RtZNNuCjMX70DC8/cs+ew2t+7KTcfOzgtDpQaj5vj4jxorN7u0f/5?= =?utf-8?q?PLb51SSf9TnBWyXQFvmZsSD346Q5Mh7TQlk62ievH21CN6CNjFb/PCMQ?= =?utf-8?q?RLFN4OW5Bm1GfjBC2g/M2UnN+6cqpoafc64QBXV8U5Lf7H5BWp0UEa+f?= =?utf-8?q?6WT66eYsAfh+zdpwJZVX5C05sExay7AXub32QCBt5h0d7DvNXqUshnUY?= =?utf-8?q?NTyQ1k74a5599vrn2/xltkHah4pMRJKupUHeDHY?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08b928fc-6f41-417c-97c3-08d97474d599 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:40.0605 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vfr/L8nWbfyEvUtT7rNl43JaLw9fXosr4XGZSwgDyQVL3vrb+XwfYSLjckDvQ92prHm/EFE2pUHOnirdQxP/3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller When the device has finished a scan request, it send a scan complete ("SCAN_COMPL") indication. It is also possible to abort a scan request with a "SCAN_STOP" message. A SCAN_COMPL is also send in this case. The driver limits the delay to make a scan request. A timeout happens almost never but is theoretically possible. Currently, if it happens the driver does not wait for the SCAN_COMPL. Then, when the driver starts the next scan request, the device may return -EBUSY (scan requests often occur back-to-back). This patch give a chance to the device to send a SCAN_COMPL after a scan timeout. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/scan.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wfx/scan.c b/drivers/staging/wfx/scan.c index fb47c7cddf2f..1e03b130049b 100644 --- a/drivers/staging/wfx/scan.c +++ b/drivers/staging/wfx/scan.c @@ -58,23 +58,31 @@ static int send_scan_req(struct wfx_vif *wvif, reinit_completion(&wvif->scan_complete); ret = hif_scan(wvif, req, start_idx, i - start_idx, &timeout); if (ret) { - wfx_tx_unlock(wvif->wdev); - return -EIO; + ret = -EIO; + goto err_scan_start; } ret = wait_for_completion_timeout(&wvif->scan_complete, timeout); - if (req->channels[start_idx]->max_power != wvif->vif->bss_conf.txpower) - hif_set_output_power(wvif, wvif->vif->bss_conf.txpower); - wfx_tx_unlock(wvif->wdev); if (!ret) { dev_notice(wvif->wdev->dev, "scan timeout\n"); hif_stop_scan(wvif); - return -ETIMEDOUT; + ret = wait_for_completion_timeout(&wvif->scan_complete, 1 * HZ); + if (!ret) + dev_err(wvif->wdev->dev, "scan didn't stop\n"); + ret = -ETIMEDOUT; + goto err_timeout; } if (wvif->scan_abort) { dev_notice(wvif->wdev->dev, "scan abort\n"); - return -ECONNABORTED; + ret = -ECONNABORTED; + goto err_timeout; } - return i - start_idx; + ret = i - start_idx; +err_timeout: + if (req->channels[start_idx]->max_power != wvif->vif->bss_conf.txpower) + hif_set_output_power(wvif, wvif->vif->bss_conf.txpower); +err_scan_start: + wfx_tx_unlock(wvif->wdev); + return ret; } /* From patchwork Fri Sep 10 16:04:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509387 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 952C9C4332F for ; Fri, 10 Sep 2021 16:05:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7F66E611F2 for ; Fri, 10 Sep 2021 16:05:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230502AbhIJQG7 (ORCPT ); Fri, 10 Sep 2021 12:06:59 -0400 Received: from mail-mw2nam10on2051.outbound.protection.outlook.com ([40.107.94.51]:21211 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229970AbhIJQGy (ORCPT ); Fri, 10 Sep 2021 12:06:54 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=El/iLtrs8NtOX+P7O+gE1AcoPJvwmaN/ura8aJmef1tBLMe3qs1+sNGkYIb48IvPr9sIkNoz6GFLF3uyCtthdPTUT0gpEJYwt6z+8sfQpTyOJQ1F+vXe9IDHSwAZE937BH+ZBf9qeq9fw/Vr4fOMU6yzUH59ldLsm4+dLHoYlO1MJr/sF1V2E/uskcOWyMZ65aE8unlGAr+XdMcsxUBdDJHmmC6PGe5CK1jYJ6rI7rJ4EtUoY47PlTvyED0rVD5ZPIuTVfHjCOV0dNYzWYlGxK6s72O1vQ69Ah0Dug3NEcKkcVud2DBIDXKPJZEmpEvH4ckpuiXB1BwNvDop6PYMKQ== 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; bh=A5/7GqCAYp3vk0jpEf5Ll7VwtNGaK4Te6PdbcTGXLL8=; b=W9JLdsVznNuNAoPM1SGeRUS+0cTJdatTs8EuWKKVI8UKJzKzDU/RbCJvG0u2xTM2SUJ5l78Jzka/ApULEJD2Cz/x/yQI/pU8z6eQD04nmVBtnCpGmy8qjWn4ZEUJ5HgQKOFNhOiRljvUpkZ8FK+CmI7hbiuGckM2Mbk7Q0YWHeHbHyj4vwaxeQxrA+4ZBvv2XeCagnmr59OQPHKb5dvWjWyvtZhGqDTGwQL2F63pzrH9OUERRBg2b1Ir8y1z/HeZoBvr74JNv22vA7/CQfgU9UL8Y1pcdW1ZuHFDYIuxjO4zJMygpEAYKNwcDaR43nWnjN3+Oya+BKlsdmCnzOkiGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A5/7GqCAYp3vk0jpEf5Ll7VwtNGaK4Te6PdbcTGXLL8=; b=Vn4LEQMwWBx/eeqD7feUfNvYIU5zn2SlDNOow0DF2Ukwj31/NWfj1CAvaDd7E9f14YzLT4WJr5eMG6jVGQriH9zZovQMdDZb6ZfCt3oLvfOQNd2aC69S3UdK95igIUiXsXwb84VHfm8J5c7XcckmFZn1+Bxj3dzylev+eYvwsyI= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:42 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:42 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 05/31] staging: wfx: avoid possible lock-up during scan Date: Fri, 10 Sep 2021 18:04:38 +0200 Message-Id: <20210910160504.1794332-6-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 215922e0-ecfa-4306-9ec2-08d97474d6a4 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:765; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lpwAP9rKYXBfSvOjXC8zPqYCBu3dbcfzftEnMjAIiYLS2bLViJnu9JXZEpO4od6tPI7SgOU12rCoqwjIqTIVOT4bioaM7FTswceCuin6XbGRXLM/bz5mxtx5HcQNVUrATdMgicOjvnPz0sc48n8OBisOgHNnPlPPyEEkPq0CmOvveuVf2LVgS5wgOFor2N0nPNXz06KSJhq5Oi7oYXEDVxz7mN5yBNPWsImHVFN8zB2wZjY6kzbkaMQdYv5CEdfITr6QH8BRS+zDchquLsb4a9m1YuajEV9WqIWp5HxOq7jN7PynuD0yzMHZGgwZMl1vn8TvIwMDDcUul0M2o//3HufbHBrmm0GLymkSvsnTngXzTj5Jo88CfqwapYQAxas/B3+wzapWiXFbDgx40c6Z/8FldS8fNya3M6qcwWJWIgkTWLH09lnR7RsGUB+VSXxmH1HaQ5sgLEL5ljRu2tAygUN7auwrdWOqiGtkGqU8AL3g5Fy5u7HKWNUsAbPcjMBDpyXWaqT8mAf17ErzwKupUwq5a7V9KEyN3nqLV+nHZ0Mtt3bB1FjocuIdBDAjuo9bw+Cudo76T1ZuZJcUsS/6Ox2xgKC/JWSbV8aQh+L1CWRI1J1S1l+EeAbIFP9Fd4DPqkini4rRGpfSE0t0c4HJDA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?V0YAKP/LT9qunGSjoKjJZLXKU?= =?utf-8?q?OP7pJLJ8U1A+0+jLghE0x50wbjf9HlMRCtjjnMLhZnldBjMPGF5hFpeZ?= =?utf-8?q?hKMV1dM65UQGmW0A/FpgpZRLw+c7H0C8k8AqAyQVJ00iTHXzikrTw3eg?= =?utf-8?q?xcXjpSYOJRbtHGa7fXmpNNTp2pEykqifWX1EZyTojotH8qjGEbhlJCu2?= =?utf-8?q?cKYTN/VqY7JC/3EkI/PMzHc3Cw2l2LX827T+G75NPy7jIObWQKPFANko?= =?utf-8?q?sJlH8Z8maJ+EMDlBZTMYNg9FQuv9nBDssblHGB2qJXmrNpE2Mp6jDbD1?= =?utf-8?q?7eN0qIPcXCXX1p2L1/FXhz6927XeSAO7KZh7GHlzHudQ2nm7EoLUqk9q?= =?utf-8?q?AGAAC8n/2wyQLCittAFTCLSI449Qms1C7qk7sRZzQzVS6wlLe2BrrXG1?= =?utf-8?q?Xbglr1Lme8F9esVulPNW+PRELeuJ2i9xPWq15YYPwlDf5imPGW3up8lu?= =?utf-8?q?8c+yBiUCLToY7qf/4FbRg9YsKpvBOI1ou0RPTTcX4nYHmQX/UriRvgn1?= =?utf-8?q?rzLsDHlqvL/mJ050n0PSIrXx8dBkQBvjezA/YwYuaTjKFPpmTTv4zalO?= =?utf-8?q?2Tkfe379ndpLtDImm0FGle9Xte+ndXK2DtFBBw8BPGuoAt1TbOdGb5j3?= =?utf-8?q?wjXMxlsTWyqt3CspMVlSVT0YnFHdLJ/fJYkA2EqOYLRatI5xXGoJTbY5?= =?utf-8?q?NQKb3A2cMu4A113ccZhB+5FkMprdPiwQwxssuiTRXD/wI10C/AT6LNGH?= =?utf-8?q?JDB6Q6Ei0a+dW8oP27Ydds/0w/Gwq5JpF2ngwzrjDaTcGFDpn1SKLXr5?= =?utf-8?q?Pv6K3RFBkGsERIOHugtPQfVmuiJZnlosNCnWMOu0dPGMkjn3BpGd+mVp?= =?utf-8?q?gqKZZpqliwQJ32pj+omyyRVpcgKnWXCMQGssaaTRLg1k73l4EJWmAGAS?= =?utf-8?q?1jZ7l9RTZ1v/YvZcyGODQC9a9C5pH8rkuegRUf9UNUrDAfI//3Txx6DV?= =?utf-8?q?UCcyFPvoyyJOYonKyZaUxEXBI2eZAFO3n6L6qfTzEOSashnoUy0u9hB4?= =?utf-8?q?vg9khqpaPXWwHT2OwjsWOtr8zuiXkUsZ/2pkX+xtMWBGFadvUCTu0Nhy?= =?utf-8?q?UEm66DAkhI5/0tdPAy1gMogqGXgH6FlL9Is04tIR/OdG83rzP5/4ex43?= =?utf-8?q?SrFiZPU8PELTIFnAqN+2DvB02IOdqtHmo1zgdkUsTei3BNj+0VPuIUyA?= =?utf-8?q?ljJIl57+v929QmXtTSRv7cDbR0C6zlEzF2HsckS4Lj3nT3J/nNp76Xdg?= =?utf-8?q?3Yn2NdWLzKbKK89LEi7I0C6HtbYqLc5wVHR2/T4nmzdnd8gmyM25ez0Z?= =?utf-8?q?+Vyk9OMX9dI+2AV0Ba1R6jVw3jv4AdoUy0tSm/DcfQhDb91xwCshfOPX?= =?utf-8?q?9j5TjqYUsbASyFMRiFgjRDmeQWzt4tsRlX0De/6?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 215922e0-ecfa-4306-9ec2-08d97474d6a4 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:41.8845 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OO0+cSX6oQqH9onHKCW4QFtYJ54S89LMRo6NtFY0TVkzYkY7OW7x/fG405XecJ6KaHO3KoTXFjA8ol2buT/RPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller If the environment is noisy, the device may take time to send scan requests. Thus, scan requests durations > 5s have already been observed. During the scan, traffic is neither received, neither sent. From the user point-of-view, the traffic is frozen for a long time. This patch reworks the scan processing. It gives to the device a smaller time budget than previously. However, it does not expect the scan to be complete and it is able to send another scan request to finish the work. A big part of the patch aims to avoid an infinite loop if the device goes crazy. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_rx.c | 3 ++- drivers/staging/wfx/scan.c | 48 ++++++++++++++++++++++-------------- drivers/staging/wfx/scan.h | 2 +- drivers/staging/wfx/wfx.h | 1 + 4 files changed, 33 insertions(+), 21 deletions(-) diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index 9fca7f26372a..a60c4a4ba935 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx/hif_rx.c @@ -175,13 +175,14 @@ static int hif_scan_complete_indication(struct wfx_dev *wdev, const void *buf) { struct wfx_vif *wvif = wdev_to_wvif(wdev, hif->interface); + const struct hif_ind_scan_cmpl *body = buf; if (!wvif) { dev_warn(wdev->dev, "%s: received event for non-existent vif\n", __func__); return -EIO; } - wfx_scan_complete(wvif); + wfx_scan_complete(wvif, body->num_channels_completed); return 0; } diff --git a/drivers/staging/wfx/scan.c b/drivers/staging/wfx/scan.c index 1e03b130049b..695b06974194 100644 --- a/drivers/staging/wfx/scan.c +++ b/drivers/staging/wfx/scan.c @@ -41,7 +41,7 @@ static int update_probe_tmpl(struct wfx_vif *wvif, static int send_scan_req(struct wfx_vif *wvif, struct cfg80211_scan_request *req, int start_idx) { - int i, ret, timeout; + int i, ret; struct ieee80211_channel *ch_start, *ch_cur; for (i = start_idx; i < req->n_channels; i++) { @@ -56,31 +56,31 @@ static int send_scan_req(struct wfx_vif *wvif, wfx_tx_lock_flush(wvif->wdev); wvif->scan_abort = false; reinit_completion(&wvif->scan_complete); - ret = hif_scan(wvif, req, start_idx, i - start_idx, &timeout); + ret = hif_scan(wvif, req, start_idx, i - start_idx, NULL); if (ret) { - ret = -EIO; - goto err_scan_start; + wfx_tx_unlock(wvif->wdev); + return -EIO; } - ret = wait_for_completion_timeout(&wvif->scan_complete, timeout); + ret = wait_for_completion_timeout(&wvif->scan_complete, 1 * HZ); if (!ret) { - dev_notice(wvif->wdev->dev, "scan timeout\n"); hif_stop_scan(wvif); ret = wait_for_completion_timeout(&wvif->scan_complete, 1 * HZ); - if (!ret) - dev_err(wvif->wdev->dev, "scan didn't stop\n"); + dev_dbg(wvif->wdev->dev, "scan timeout (%d channels done)\n", + wvif->scan_nb_chan_done); + } + if (!ret) { + dev_err(wvif->wdev->dev, "scan didn't stop\n"); ret = -ETIMEDOUT; - goto err_timeout; - } - if (wvif->scan_abort) { + } else if (wvif->scan_abort) { dev_notice(wvif->wdev->dev, "scan abort\n"); ret = -ECONNABORTED; - goto err_timeout; + } else if (wvif->scan_nb_chan_done > i - start_idx) { + ret = -EIO; + } else { + ret = wvif->scan_nb_chan_done; } - ret = i - start_idx; -err_timeout: if (req->channels[start_idx]->max_power != wvif->vif->bss_conf.txpower) hif_set_output_power(wvif, wvif->vif->bss_conf.txpower); -err_scan_start: wfx_tx_unlock(wvif->wdev); return ret; } @@ -94,7 +94,7 @@ void wfx_hw_scan_work(struct work_struct *work) { struct wfx_vif *wvif = container_of(work, struct wfx_vif, scan_work); struct ieee80211_scan_request *hw_req = wvif->scan_req; - int chan_cur, ret; + int chan_cur, ret, err; mutex_lock(&wvif->wdev->conf_mutex); mutex_lock(&wvif->scan_lock); @@ -105,11 +105,20 @@ void wfx_hw_scan_work(struct work_struct *work) } update_probe_tmpl(wvif, &hw_req->req); chan_cur = 0; + err = 0; do { ret = send_scan_req(wvif, &hw_req->req, chan_cur); - if (ret > 0) + if (ret > 0) { chan_cur += ret; - } while (ret > 0 && chan_cur < hw_req->req.n_channels); + err = 0; + } + if (!ret) + err++; + if (err > 2) { + dev_err(wvif->wdev->dev, "scan has not been able to start\n"); + ret = -ETIMEDOUT; + } + } while (ret >= 0 && chan_cur < hw_req->req.n_channels); mutex_unlock(&wvif->scan_lock); mutex_unlock(&wvif->wdev->conf_mutex); __ieee80211_scan_completed_compat(wvif->wdev->hw, ret < 0); @@ -134,7 +143,8 @@ void wfx_cancel_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif) hif_stop_scan(wvif); } -void wfx_scan_complete(struct wfx_vif *wvif) +void wfx_scan_complete(struct wfx_vif *wvif, int nb_chan_done) { + wvif->scan_nb_chan_done = nb_chan_done; complete(&wvif->scan_complete); } diff --git a/drivers/staging/wfx/scan.h b/drivers/staging/wfx/scan.h index c7496a766478..562ca1321daf 100644 --- a/drivers/staging/wfx/scan.h +++ b/drivers/staging/wfx/scan.h @@ -17,6 +17,6 @@ void wfx_hw_scan_work(struct work_struct *work); int wfx_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_scan_request *req); void wfx_cancel_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif); -void wfx_scan_complete(struct wfx_vif *wvif); +void wfx_scan_complete(struct wfx_vif *wvif, int nb_chan_done); #endif /* WFX_SCAN_H */ diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h index 94898680ccde..56f1e4bb0b57 100644 --- a/drivers/staging/wfx/wfx.h +++ b/drivers/staging/wfx/wfx.h @@ -85,6 +85,7 @@ struct wfx_vif { struct mutex scan_lock; struct work_struct scan_work; struct completion scan_complete; + int scan_nb_chan_done; bool scan_abort; struct ieee80211_scan_request *scan_req; From patchwork Fri Sep 10 16:04:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509051 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0A4FC433FE for ; Fri, 10 Sep 2021 16:06:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 95C4B610A3 for ; Fri, 10 Sep 2021 16:06:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbhIJQHs (ORCPT ); Fri, 10 Sep 2021 12:07:48 -0400 Received: from mail-mw2nam10on2058.outbound.protection.outlook.com ([40.107.94.58]:8641 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230203AbhIJQG4 (ORCPT ); Fri, 10 Sep 2021 12:06:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dzzVYukbVN/2rBYqYlLyn/ks/3faYlLhVOedJZEYSsm1uw937lPIPfIwYjH9wS2kAqK0tJ8C4N6Txl4Pdcp+tkbF2HDldQ0I1d4hO/1TgAMPChL+uXazBbyOqV1OW6YULRpPzCtZ3qaxCmLrZEeW/DzGfIRCcsXNMyOvIIwQ2bcF7csuNGf61NFGAbvPW0vQyMpx2pYxryLt8DXd1VPRTG4Bbbb6KRZ2owlTVmbhEQRkzWId0ftK8Am8PS4d+FnL+6803/S/SyETlR+6Aa+YDqfiEvyybxjZnOXnrRFMCN6DXgVq53T9Z3CLW0xBIyEAqvazXMZtIew01v67oElpPw== 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; bh=Ltkb34xn1l2676USN4kZ+ng0WW2jWxAd1JTkXQJO7zI=; b=cTR1+fc3OrisickXG7jSk5j0I0pSpWOySFoiiy0jwr1UaXPsDNyT6XFDGkLH/tO4Jw+Td/kZjMKaoFrOFls099ofjydaeBN2gmPTf/+KbWLd/tyCplko55xHWOzxRwkFDmg+QD+Fp4Ne94A5M58llIn4a1f2dBJcqbc2VpEBWMe/WFN0lR0jHUvr8mJ1sDBr6APugxc4U7tSP+1BaYcJyErDTS2Gv7besdzad6hcUxzv8qw53vF7J5X8tzOdO8uF1wH1wB4+6ZUTdIcPLYQjU9BEthBIBSMgQdj5xwmd21GDvVihZ/JdOOnReSV5esOPRf3BHymEnMImw1jzsr+eRA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ltkb34xn1l2676USN4kZ+ng0WW2jWxAd1JTkXQJO7zI=; b=k+qliVhOpRyMG1xFuTQWqe5S7JLici5ji+tU1CxnCw0fVpBP1G1hF6tVxhyUxmcZ/8b5pUGM2926Wry9LHiHERnJYU3h4Bsewxw2rcba+fSZD4RD+hfIXcNro66DgEo3kVx0oqNKuOE2g/fklAnVzUFOPHKEkwqQjWwqYq1RkTg= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:44 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:44 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 06/31] staging: wfx: drop unused argument from hif_scan() Date: Fri, 10 Sep 2021 18:04:39 +0200 Message-Id: <20210910160504.1794332-7-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d1a2caa7-721d-4872-0a4d-08d97474d7e3 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:854; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hviVh2ntmZ/dg0iWO4aOYdDpTThrQnGQy5cspf4Xhx6izd625n8DopES0ovZrFZrHKq82JkKy4YsjbCpSxJ00GoFhmSZQ93BnnAJVLfNPQmbWdz6tt5D93oCczGvRjU+e+zj0me2YfpOWEeh/26lcaJ69EP5upyR76nshN/HSRveaaqGWEPWx5tUWCwRcrW2OMVRiNuE5CSqLKfRZZ6E+C2xw2xem5C4XljWj9M3wlzdxyq5tag6y1sdKoJ8g2d8X/ylSj0rrkOBgkwOkYGe45mGoE3BVKzVlqE+sfj8pufw8Rgb7VkiMuSgNPeJsN0vnITlcyjMb9v5QZmj0bOzQzSlJ6FjBiNImojiiVgeyOTulZ19mgnwMqW5EDgkJnHuRMYtWv2pXXJC5G3jfLFMcZsW4cdaH8qJyLqbHrIUMD8Ind2uR/rUmX21JZwQxKHEkUJiMHzIRF7KGjJishm6HeIoqYzULPiqYmVSEegmWPLl3UitMXhELRVAIrRU76GfeYYt6mXXJyJJipozrJVgUisIx2i6+EBAAhKrHqVeLTtgNdAV6bVlMIpVKa/lk0PetGiygckNdNtgYw8Ag0lElPUgcD06361I1W5T7cLK2GLdc+93zni4VVlYJViPPhUcpyYXsUlr7lCtaV/v3pLq7A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/HraOtHdAfFPKbtoeqt2aFJza?= =?utf-8?q?eOSDuqO98FFqU6JhXFMxvWwtcw8wtBQg6pSyAGqtz+CFfdffPVodZ3wc?= =?utf-8?q?wep/WW/mFBclAt9RScOy4b3m+lnLtC5iGaUDCq1Xl3BNDT0drhAM61VI?= =?utf-8?q?SCUHSC+ukSnYDAeFyBX2RSmaJ4a/KmH/WI1lM6lykzo8j9qSBIFY1kS0?= =?utf-8?q?W1KJD8t0iYpcRIZlB3+TMjQF/06T1XgT4NpkcT0UVCed8af6PWzjNpfL?= =?utf-8?q?6b/5k2z1Cm9pHmfXD5AOAQU3WRLdyDhEHXF+gait3xDSkjVxt7W6e2eD?= =?utf-8?q?X6WPM5cTg0miMpZ1nxOhBjXr/KMek7nKozhQ80LRYRMjSRhmbqGiajFc?= =?utf-8?q?n0oluugCRdB72k3hEbY2o57BvSgZVlByGeSvdkQJ4dy5SjYVKPAj7HaX?= =?utf-8?q?XD/yUzwmT2i0TnHiscdokxqMGSnkb0sPaNCdHOhBdOugbOI2jGf2tbVU?= =?utf-8?q?g/F1taW4sui6mQ+bXBr/kLncwimk6gTlCVe8whqZ43pY/GVHGRQpDUrC?= =?utf-8?q?eT26EhQDLNOGQyVwi3nbfBfhL7UAjRl6oFWuS2WsArUiatS8wzxI30mf?= =?utf-8?q?Vt55BRD8+dXW4MQZf/c5w2K9yQUNv2hJ3KlBOh3UvjAfJPhgQoCYKnE3?= =?utf-8?q?rALTQBtrEMecZEOHRjgO/+dflFW1uZDDe700jvl70e9OVBzllHGZp03F?= =?utf-8?q?0MD3qKgxyevfFy+8LvwGVrTMej7OM68MbN7XWIwSsNRfB9lE4aiVzogr?= =?utf-8?q?QuK0ul3V1+HV5kLl2f80SMuRlAQa4wwTF70RVHZwEeq+sF1HO2cdaiJS?= =?utf-8?q?yzMVFkvRGAGsFN3k9dgzQKCXkSBOK5Usa58TkiICchqUOHMtuCfmuqjg?= =?utf-8?q?93FTeL2s56dg3uRwBWxgnSaW6wMp4qDAOs22yyh4QeASUihabk/6ASpk?= =?utf-8?q?YAHEn8hLHzK1fSFIe7AbdUpmHzaUaVI0urLLmFS4QWMyi7NuVRWvUT02?= =?utf-8?q?zqa52VfND79f5z5egCeHeSBN+dGq+eXXVVctqsQDWTA7CKPbOrCpvIEl?= =?utf-8?q?efYwhJy8aRWvl9eB7pOB9NRQnXPvKk8DN7szZR54fe4uF43URBsS10bU?= =?utf-8?q?eoT38SBd+NfUCOARO48OUA5aQSWdXTBf1uR7zxg6+QdVZQISMgz7E1H+?= =?utf-8?q?XXxkosLX7yt+lkRlC+OfZvIGkfr2n7G228XyUuV/xeDSFzmRV51QcryB?= =?utf-8?q?cqR5gTQTes9VeYgxCFJb+YGVk94Awlw8BIUrW6WY21/vIdeIwAiS+V7O?= =?utf-8?q?UNvP66OgLWcZzUReVOPlROamv47ZUKsQ7X70BebfONBY8Etpx8WdCDMC?= =?utf-8?q?PRDicU/S8ZCaVX51e+YU9NF/A/vNTWMt2FH4MQvyXSsmXdcxBL5vcfRC?= =?utf-8?q?5WbGrHdtNe0OyyfPxQF4ae161CI/m4BgTaPNi2W?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1a2caa7-721d-4872-0a4d-08d97474d7e3 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:43.9983 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: uGsgiK2SxAmiMJNQebAOnl+vjuk9/kaoERBLaov9NbOg/0FBrsuuxpYL6TsxWtNFWkNzDNGRJalmsQ5i1thYMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller It is no more necessary to compute the expected duration of the scan request. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 9 +-------- drivers/staging/wfx/hif_tx.h | 2 +- drivers/staging/wfx/scan.c | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index 63b437261eb7..14b7e047916e 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx/hif_tx.c @@ -227,14 +227,13 @@ int hif_write_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, } int hif_scan(struct wfx_vif *wvif, struct cfg80211_scan_request *req, - int chan_start_idx, int chan_num, int *timeout) + int chan_start_idx, int chan_num) { int ret, i; struct hif_msg *hif; size_t buf_len = sizeof(struct hif_req_start_scan_alt) + chan_num * sizeof(u8); struct hif_req_start_scan_alt *body = wfx_alloc_hif(buf_len, &hif); - int tmo_chan_fg, tmo_chan_bg, tmo; WARN(chan_num > HIF_API_MAX_NB_CHANNELS, "invalid params"); WARN(req->n_ssids > HIF_API_MAX_NB_SSIDS, "invalid params"); @@ -269,12 +268,6 @@ int hif_scan(struct wfx_vif *wvif, struct cfg80211_scan_request *req, body->num_of_probe_requests = 2; body->probe_delay = 100; } - tmo_chan_bg = le32_to_cpu(body->max_channel_time) * USEC_PER_TU; - tmo_chan_fg = 512 * USEC_PER_TU + body->probe_delay; - tmo_chan_fg *= body->num_of_probe_requests; - tmo = chan_num * max(tmo_chan_bg, tmo_chan_fg) + 512 * USEC_PER_TU; - if (timeout) - *timeout = usecs_to_jiffies(tmo); wfx_fill_header(hif, wvif->id, HIF_REQ_ID_START_SCAN, buf_len); ret = wfx_cmd_send(wvif->wdev, hif, NULL, 0, false); diff --git a/drivers/staging/wfx/hif_tx.h b/drivers/staging/wfx/hif_tx.h index 3521c545ae6b..46eed6cfa247 100644 --- a/drivers/staging/wfx/hif_tx.h +++ b/drivers/staging/wfx/hif_tx.h @@ -40,7 +40,7 @@ int hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, int hif_write_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *buf, size_t buf_size); int hif_scan(struct wfx_vif *wvif, struct cfg80211_scan_request *req80211, - int chan_start, int chan_num, int *timeout); + int chan_start, int chan_num); int hif_stop_scan(struct wfx_vif *wvif); int hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf, struct ieee80211_channel *channel, const u8 *ssid, int ssidlen); diff --git a/drivers/staging/wfx/scan.c b/drivers/staging/wfx/scan.c index 695b06974194..9e2d08317c9e 100644 --- a/drivers/staging/wfx/scan.c +++ b/drivers/staging/wfx/scan.c @@ -56,7 +56,7 @@ static int send_scan_req(struct wfx_vif *wvif, wfx_tx_lock_flush(wvif->wdev); wvif->scan_abort = false; reinit_completion(&wvif->scan_complete); - ret = hif_scan(wvif, req, start_idx, i - start_idx, NULL); + ret = hif_scan(wvif, req, start_idx, i - start_idx); if (ret) { wfx_tx_unlock(wvif->wdev); return -EIO; From patchwork Fri Sep 10 16:04:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509386 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66E32C433EF for ; Fri, 10 Sep 2021 16:06:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 400B9610A3 for ; Fri, 10 Sep 2021 16:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230186AbhIJQIF (ORCPT ); Fri, 10 Sep 2021 12:08:05 -0400 Received: from mail-mw2nam10on2082.outbound.protection.outlook.com ([40.107.94.82]:58752 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229702AbhIJQHJ (ORCPT ); Fri, 10 Sep 2021 12:07:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R21C4FFyUrRM7F7LuwhZcmhylN/6QrITi/bQ0E/BPU/uxRe/TR3r46WAShq5EzdoOjp9ZV66KCQW1n2/WkqaHZ3UscbDJe52JZwYe6+QjqDX6DUpWdJQPnN+K/G/6NpazWkVDg0DXpBCyK7cOWlz34fiwZwbE4LWjCb4sCoQd8n5WmEPgUL5Lt8zTGnDSwjCaM+GQXVqQzfDyKMGwO+OwGJ22gLHtzawUa0ouMw92BNCbjULSVdin351Sh0mYEQK08JoZTUlDjiQVMGY+rfUMasqZTC1g2cRKQ78/7yBh2X5s/f58ppdtICC/NB/9oz65gAiWb3qEVSX2/OkjiQVdQ== 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; bh=6X5C8iiyie5c+H0xNzgV2k5OxRmd70FdYQimieF/nBc=; b=eOqgOiaWj7gmkxCBoSEh7HpDRHls75QKXTI3UZtjjkNdjzbfGsJxUZlB6LmzG7SDUrB5CpG3FjgRqtFelasgVWxX6SpsRBoHn2SXbjA1f/rKgaYlvAsqC0jpylIwdh7eUfJW14hi6rTb8Lvzl3S4/sVkLhgmdF8Op9iC5tAweZceDPe31v5O/WPBro+/JrzbkNbXzVf7RJbnvYrLpKv1IKUWCnBoUN5f85/XVaW/e5IJ/EtbUyZ6fS9C9jjQDORuHjJ+7EIJfbwbenYeto9EDSRzK++aLTVMICFWL5GSFbN92ToAEqqjyTsbsGPvF+1hNVZ+olXm28I+r2VkQIE8oA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6X5C8iiyie5c+H0xNzgV2k5OxRmd70FdYQimieF/nBc=; b=oaxGJrFr5Cf0H73XKt6gLirhRJ5D+ICgTyZP8KJGA/Bz5BA9c4liTKWd/fak49aRa0Zb1rH6/g8SDEaQ4yXSNyYb4UGAHN609JTM896tqJvN9WcqSv7jreWgiqSJGikNnsG8Qaocu7oaPpmQ3UJpSR43XUni0pWCwtvkU6lzcFk= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:46 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:46 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 07/31] staging: wfx: fix atomic accesses in wfx_tx_queue_empty() Date: Fri, 10 Sep 2021 18:04:40 +0200 Message-Id: <20210910160504.1794332-8-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:44 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4869edad-414c-44b2-232e-08d97474d960 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:813; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DpAl3jaT6JaVsb4Ikaz76qFCRn2NvFzAQNXspZjW34l6WVsN+zGZco1MI9NsZu0oPpyHd8xay8I5k2N/sODq87eEc0zRk86wtAM2a2Yg+b8ZOzEiy0ecJXkYl56sgBRagQxJGX7Q3mTtoTO5DvYsSjSzalrUa/a/qQdGxkWItYKOZlQLLcNvhjGAsBpcj9alvIADfMkrRS4vTO+vfLnHirFoob2aq8/JJmGcI+12k9eKnHk1/ZZkJtxJQv9Da7nEy+8d4+/AWGEoE2FnhkBcQ0a2Pu31CkpUs9XKXcAlbeEFDrMS1eoEFxM1KZd5revWLiR78X3V4jn4kXlY/7cY5CdSpR6ZWsZvC/VFGljCFZ9Ji9VOZu286BTP/TTfjVVtS7Jal/FakIHlmQ7eHBM6Yy013k3/1XXEpUks9powoD592SVdOEyFrqM7RzhJt+F4ielKGWhvt52Lv5nwd2iGntH7C5e/tICYdnZ9B8bz4r8XS8musXCAG80dxBhbJvv/LhAjXKLYWwGrDSRufiOB9T/kEcJs5l9HFnSixUAicfpsS0vCFOnYc6uNJzx3/gS/qb2cxVUW3FplelorP7043PrqncJh2sxW1E/snNOR6r3TPDCbL+QKYTMuw2cVOmX+nstRM8Zwo6iKCxuCWl3UaQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(4744005)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Mtov+hg56mHAk+ET5frwlfaJR?= =?utf-8?q?j9D+SwrfEYaDVJ/NwuEzpXpIBQTNfbJcZpFsLFFixbrF9r2Ui0LX/yVy?= =?utf-8?q?1C8suYeLXKwGxldE0og6vR18dp9qjF+BF8F4Du8/M4bMy6rg/dGuIxSj?= =?utf-8?q?35UlSy6LE+eZMU2CoUeskPluoYy9kQzCHhESpqidM09ZNF62WPetA/Cc?= =?utf-8?q?jemKOWOPx0wQWefFacY6xZdB0LVoQ+UAt6Y7NbuaQ5bMUJFSv9W4/r0h?= =?utf-8?q?0qjbD9YqrjMMTgdzPUodddhTJVRZWobn3RAGKn6LFkZt011xAkEoFOsR?= =?utf-8?q?V0zrBXcQLsjKXSAKqzcySaXqOv6yHUbUlLhvV6duLeZQzCHe1kvayG6K?= =?utf-8?q?R9TD5x8/cCvKJMq/RLVt4zDEs6WQCu5dTnhD7ZT93WCImQ2bGqO+GhqT?= =?utf-8?q?3wmqtQNvyolFAL/rV2jBa1WR4j9kz4a+5t22QBtJBipMuNGVsxBs4eAQ?= =?utf-8?q?SeskdDa6NaP3Vxmd77m/gsWWdAaSl+Xb5zjX7eZkjGYwBDFBkO7xh/QI?= =?utf-8?q?CePCGoi+ZjANyrkLiHuxtExtJpiu7FYauP2YiGsqgcpnQeA8AESsvhij?= =?utf-8?q?+35u9EOpBe9wxVxbXJDo2w9ReE83fqNL0DASPDZt0zpg7NQoIKxDrw3i?= =?utf-8?q?vGtuJsFBaLXrirqlmpNTo+vfD8gIq8fhSWNFruy032GCKK1hj9dEe9n4?= =?utf-8?q?+vYfZbQyuPlYFsk42QZi3kPQa+8TeGXkTMYlSkJOgYY2rWtF2//LC5k3?= =?utf-8?q?cIBe8vTXnx9mUYXZTjj4rMd/Vtb1QSjqeVNCj0eJH9A7mRV3TfA6nh05?= =?utf-8?q?knkYLMybvGTAGLoM6Stvi9Blu8ImM746MVihV+tpgfjEtSUxTEUJO1P0?= =?utf-8?q?apLqMkrsLtydFXV1WhZ8KMd23IRgqPmKf3qAwFuLByU6q2NjrjGbl5I8?= =?utf-8?q?DO2uyUoYzD6EXRpP4MRtyClKdCOyarVnFh2vUIRw74ESsuYbH5NnM84f?= =?utf-8?q?owJQu+yDjyue2Zwd8SYUnZbk9qpw8IkTPG3D4YqQshDfct8nQwSzVr8j?= =?utf-8?q?8svitLcij/pPOteUzoi/t2spK8zxviPwmqxixcSUmY8gINiuJy34HZQs?= =?utf-8?q?2CHzHlt3YJDEgOZDL+5MY0YBEN27OKr5D2nVScaFsEGggl1rx4249Lve?= =?utf-8?q?p3I0EJ9oAs0Fu39saqF0zyMNVohGw4XSN8rvY+PupGhjj9G2jHQvRoOe?= =?utf-8?q?2GKuosdZnk77pJvmYl5iXVHuNt5SuUYdDbi+SQGMEgzLY81Zwb/b69KZ?= =?utf-8?q?G7HLjDLZwN9DQAl1V8sAuSR2DL0kqttl1cRaatQ1grB9oCe6zabTzvKq?= =?utf-8?q?TLbAoUqu7eyuFdbxGJo92/Z7QTjdI1T4d/jq7Z0hYpSDgyCNJFYsF0qc?= =?utf-8?q?2aawlw0jAybdol5mqKpQEO43MhPPz1IHx5i+HbF?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4869edad-414c-44b2-232e-08d97474d960 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:46.4109 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: l/MeefDJBVoGTz/+KK9//duYOmUbPf9hI42bPpYynOHluLOcWAm6qlUVHfFPX04w3tkNBjmqhkVzR9sdw7IKOA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Checking if a skb_queue is empty is not an atomic operation. We should take some precautions to do it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c index 31c37f69c295..fa272c120f1c 100644 --- a/drivers/staging/wfx/queue.c +++ b/drivers/staging/wfx/queue.c @@ -86,7 +86,8 @@ void wfx_tx_queues_check_empty(struct wfx_vif *wvif) bool wfx_tx_queue_empty(struct wfx_vif *wvif, struct wfx_queue *queue) { - return skb_queue_empty(&queue->normal) && skb_queue_empty(&queue->cab); + return skb_queue_empty_lockless(&queue->normal) && + skb_queue_empty_lockless(&queue->cab); } static void __wfx_tx_queue_drop(struct wfx_vif *wvif, From patchwork Fri Sep 10 16:04:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509049 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DD6CC433F5 for ; Fri, 10 Sep 2021 16:07:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB6BB61207 for ; Fri, 10 Sep 2021 16:07:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231949AbhIJQI2 (ORCPT ); Fri, 10 Sep 2021 12:08:28 -0400 Received: from mail-mw2nam10on2056.outbound.protection.outlook.com ([40.107.94.56]:59105 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230020AbhIJQHj (ORCPT ); Fri, 10 Sep 2021 12:07:39 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V3vHf3ut3eefhxr7ydv28Z7S9jQ8FeLXfinXVIxGg2Og1x5bbW/gth/dl9qAyHh9uzAx/eTM3a7zowDqjEHkxKdh4VL5H97tDdpuDAdR7HXbIBMNNaDGCZJ/hWILn6KbQfYcAhita7qm7YHseuT+IodGMC5rngGQfvpK6h3jldqt//yQ5C2E0m9NywDAI2vc21CqViZAD47UET6G/PiG4BhS9kSb91+k4CKw26WZzT1PbzbfEWfNggIEV066aoVL8s6hzYXic1m4L93d7/tmcqVkJrL84UM7FGqimuCEHO4QBAzutcZzcSlsZe6NE4nRCTpZSQVmrtNl6fVZ3i1cZw== 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; bh=ukiiaXuHB68lNESJa7s+KPhr2UdHv8KEhL2rJ3/GeVg=; b=f5BaNKkAiTZ5UJUGdreFlvsi0zKbOk+4L5A3HgvwSG56xJ7whJYjg1wwIvUWX/KEJdDLGcDvTeT/0xCjad0/tfsrQqyjh61ItYPU7yv90omZKwrk7XprQRyz7dXx0eTzVMexsHlujbilLfP/DC46cwGChyroJxGnWpPl61zAbB4jDxBowcSccvRotNq9O3daYNVAfpcF4H+UNWyyPwuHhPSznmyAocyzPSulw84+A+ppD5o08c5k5JQyLNcen/My0o4XiwWqUWkNzsEN3YddYSNUEg9nlJz6kJNdOoHylVbbME//a+S8PDAWMQrgtyUl7EN6HZ7NlpbMRvcE8pD5nw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ukiiaXuHB68lNESJa7s+KPhr2UdHv8KEhL2rJ3/GeVg=; b=pmpmIs51LvxFh2xlhLXsBZ+WyB5j7pRXtFvuDhj5l34G4vvGHxsdkaUheCnj3yvZa1K0ajNXUOUESWybm2oRMdSkbycbNKv6BYy0f4hivZsxGKk+k61a2vFN+/CdHejtQ15FtYm95cHp5+kBLYb6tkSywOLw9MQs8TBkEE+0oZw= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:48 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:48 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 08/31] staging: wfx: take advantage of wfx_tx_queue_empty() Date: Fri, 10 Sep 2021 18:04:41 +0200 Message-Id: <20210910160504.1794332-9-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:47 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c446094d-4ac6-466f-f288-08d97474da9d X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:549; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0/ImssbpQMfV3VhWVOggxqv3oglZRa72FhtAh0gaCunjWYn90uT+JHzrTGC/IQOoSgOK8fW9CWclZDkSzJIj+DXk5Gf8g5L5tiVEcP/T46pNfWI6uz8xaXirmqkyi93zGsuiUaGfKsou3cdvUBO+C/CRWoAF5TuZGNmg4oYse6X0XIt/by4bn+0/DksjmsOIvXSQLDoTzqzwr+U0sY8r9U/EmgsSy56CDW+T4bGIv2S1PBX68Sth4sKOcgIdD9r+FISHxLF55UlHUXq1OSkXDmaMA8akcr0Q8I4o5sqb/mSFnE+Bor/cB34bDU3AlkWwk29rPI55hbnQgO5a/ustkkeK25jdbEnwaA9CEz873j+jLPu+z96oXicmnHLFWAzUSvbb4pL3rHgHySXhJBFyxchYOZF8NdCfV7WUZt7M0SEXGxHVSXZRuKRGdR8Vorzm48s0HTQXtIsyYASRZDSULP5c7L47CpfU2US1sMEoq/dEAAbmWGEvrI17NEU6pme88Tp7JKyZ78SXSSX504KffdRGXZIOu/ETJwDYECQkmjsrbiRo1MiMghRrOROfkhMze90U21kv3t/L3SmAF2MGA6CQpQvcFWb00jJ6cK2gwIo8fue6Qweq5FYcgJAieAEh0ia05QhDmWuOYtZujwmtAA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?DvyO4PqAx2zM5afKuVbazA/GS?= =?utf-8?q?LtPkmYt7+HUCR+s6pY18COWyxem07OxjDxeZ8z6J9yPztXAupMJEn9+P?= =?utf-8?q?Dlmmgn88f26+6NekzOIbLytmTJ3BXTkMGI7FKzaYbX8L5Wcz4fU7d9q1?= =?utf-8?q?pRZoA/E1yf/XB6NVsbVBJpP5VFmbuJjZUhUuNijggQWwapQCJyD+rEML?= =?utf-8?q?FVvrX3HjMzymSiZikmdb+LvOlAMlJIWyeAs4LhMXgLtd3if3W9uADQKm?= =?utf-8?q?VHopJsAY/5Jsv07mE8L/TMp4Oa+d5a/NhTdAap/LifXqQ3Cn3d+do0pG?= =?utf-8?q?DOFC5tE5Pi/TtHy8OZaD5NGhP1EaqcKFMrzqgsOqFVSO+O6glkgd29Q0?= =?utf-8?q?4PV2xZQHPHxRaKxrPx4SKMEWXYCOyv4vtDsN9wvGZIyWyNnqQSd8R4HD?= =?utf-8?q?kDHERo0Zl/JDfQ3MgZjF3uRrKyNkaX3bc6x0PMyfEIi8/sChIheiF0UW?= =?utf-8?q?jTWXALRrneYtPRlm+zx9OpD4Ua7Z01/LKeMDAbo8HRpXG7bIElkAq5rp?= =?utf-8?q?iNvtC2h29ALK0GsrqEbF30AR7UZIkQMMLnZwgicpziNae/1rtpG/qpKI?= =?utf-8?q?VM4KgPHIbQBqnWXjg5yiUhgpxZQARw6/LKnQPD5TSTG89fPp0M5Hcmf8?= =?utf-8?q?oyH6vtnMGr56Z9Jdw9yA43HCrDt4tFWFkb62120UXu675sw78jhMDmon?= =?utf-8?q?DB2RRhHNE8U106hZHsVa/+9Cwa8kBxNwqiXzg637vZ0awFdvyQSd9vsv?= =?utf-8?q?5fiCTzTV5GpSvpXmFVG/pbie+XaCJIo/+BgnAc6PC8Ku8bgqCmB5lBPT?= =?utf-8?q?gPwS4uit3cYm6HxUI77JWZnl4+Mdf/EBPI+oGYpEOHEv6DaqZINhRzmk?= =?utf-8?q?dH+xFgD5BBMGdgucyBC3In45zsVPv5Bx6D8CTvTexSq4DhTHgB/+wvPQ?= =?utf-8?q?aoNhfjNrTdbqa4iRcUUtTz2npXgZPhH14swnhXz1XxaYGZhh2N+77Shq?= =?utf-8?q?OLSetlr/n4BNWJPS87xvSzhwNMn+DJXUeUOWLoX5sapH2/F+bIopItmR?= =?utf-8?q?T+TjoFYAhDMd8z4YJ5BEUlHuABcs3HSbcewOBkAzz3RIvQj1OEOGj6H0?= =?utf-8?q?BX4+6fRUKrdwn0UNHXIgGn8QpHmA4LpE0X+iMgK+CQz1OAMZnq8X+nm8?= =?utf-8?q?mS8LELFztdlykSr46SVjV+RBZBhglVxSd87cIK6fn4cOPvxMwzcn5kKh?= =?utf-8?q?eco4pzs8w+arha0T5VEGw3id2zVEeJU/TLkXwOS6E9XLKjfKq36axmA8?= =?utf-8?q?qXQbmDlf5fhmNTGL+eAINmOFHN+lc7wUdnsznaJNfdHOG1lYTfx4L4fY?= =?utf-8?q?U3+EiTK4218bkoL5NtQeGdMyh06COnPBk/DkmBN+xjffVklGNdNk47LF?= =?utf-8?q?19c64vXP1rkJz0hHCPx02lrREFcitClm5H0nPml?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: c446094d-4ac6-466f-f288-08d97474da9d X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:48.4887 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: o4rGFY64e8izhFBGnmiWYdqkmmgkAh3c/CWpnImrecEfBJsehxOpsGnc3F+/zsVpVWSSemGEM/zn5kKi9qZc9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller wfx_tx_queues_check_empty() can be slightly simplified by calling wfx_tx_queue_empty(). Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/queue.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c index fa272c120f1c..0ab207237d9f 100644 --- a/drivers/staging/wfx/queue.c +++ b/drivers/staging/wfx/queue.c @@ -73,23 +73,22 @@ void wfx_tx_queues_init(struct wfx_vif *wvif) } } -void wfx_tx_queues_check_empty(struct wfx_vif *wvif) -{ - int i; - - for (i = 0; i < IEEE80211_NUM_ACS; ++i) { - WARN_ON(atomic_read(&wvif->tx_queue[i].pending_frames)); - WARN_ON(!skb_queue_empty_lockless(&wvif->tx_queue[i].normal)); - WARN_ON(!skb_queue_empty_lockless(&wvif->tx_queue[i].cab)); - } -} - bool wfx_tx_queue_empty(struct wfx_vif *wvif, struct wfx_queue *queue) { return skb_queue_empty_lockless(&queue->normal) && skb_queue_empty_lockless(&queue->cab); } +void wfx_tx_queues_check_empty(struct wfx_vif *wvif) +{ + int i; + + for (i = 0; i < IEEE80211_NUM_ACS; ++i) { + WARN_ON(atomic_read(&wvif->tx_queue[i].pending_frames)); + WARN_ON(!wfx_tx_queue_empty(wvif, &wvif->tx_queue[i])); + } +} + static void __wfx_tx_queue_drop(struct wfx_vif *wvif, struct sk_buff_head *skb_queue, struct sk_buff_head *dropped) From patchwork Fri Sep 10 16:04:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 097D3C433EF for ; Fri, 10 Sep 2021 16:07:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EAAB6611F2 for ; Fri, 10 Sep 2021 16:07:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231703AbhIJQIn (ORCPT ); Fri, 10 Sep 2021 12:08:43 -0400 Received: from mail-mw2nam10on2058.outbound.protection.outlook.com ([40.107.94.58]:8641 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229475AbhIJQHs (ORCPT ); Fri, 10 Sep 2021 12:07:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jJ044kyJpUUVW/BbOmEBVLy9Ca1dQXuVBY6Gwb+mWQ6ycfue2SDxcyo7/th/gCsl2p0M4H8xzf2z+pVjzmnHUTg3W3u55CdqKv4Y/s1s8YuJXxXdhM96g1aHmSJfX5wmmBKDl7W/9NHRSYkS4ha6L3Nj862nNR6i9RqYNAWhB5WZLPdsqtbBpDKoZ/PEV0mAg9FgY9w/Pu4na5zZkINsp1MCikIQqZ6MSqVfDZeORvqh99ah1iU5RDhfD4dRWWX/vgWzkD/XaceREdbS1uhwKQWFUnAzM4c9IQuvpE2tTFeHHdAktc28ot8nSfIpz4kNNh8tupn48yCB374UBpxZQQ== 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; bh=PwE+rPnDXMSmBPY9LXea+iU8XgpVXCpEq2os+Z20oiA=; b=ZPESr3ASVkvfnUu38+CJnPwPgRB+hMOc0ha3sqypUffM74/8FFgTmjQ3+MEYMiQcWckg4Zj/oh294/7J9VKJiAghv538SFX9jinMnm0JRKhHLVIqxPIDlqyIeNwkCFtRiR41aPeSW2W1GzuRfvbrdfIlL+64+vsZSwZw48A1THmwsKtoBQXyVa0nDw2lI248xbsl9Kgx0W/fNbiR/IHAe4h+MjZAFIiSyozf6+fHpaO6rjg7Xv8OlkrMP/pW1Ci42rmBe80b8Fy7V7mRWYJ0dQXhLHNVQGcPUJd/lh6jre6hKmIP2p7OXBKGATKSdvpN5tZ73CxJ+JjG9+Gc1s3Ypw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PwE+rPnDXMSmBPY9LXea+iU8XgpVXCpEq2os+Z20oiA=; b=aWiVF2erLJVCZLQ3JHmncJlZ4b8heGt7XPwRB1icrcuqwToXfKTsHZcPaQBziXeSZrtFUnVTk46dr8p6hkQf0/4MI+bB3UH4RfkWeHb9tzG25RiaExE1mVwTaE35jxHD9MbeO0PfjUmpxdqq/RuzG9kp5waQouh0HBPY1WDK3SE= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:50 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:50 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 09/31] staging: wfx: declare support for TDLS Date: Fri, 10 Sep 2021 18:04:42 +0200 Message-Id: <20210910160504.1794332-10-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:48 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d897f397-8955-481c-8c19-08d97474dbb6 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1051; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xku71NQHxxbs5AEyH1pYy+Voa6q6dv6rSm7/3EWCSABxgbiSLFid2JjtBPKsMD7nhDzvvgGykldA1meTmPRZuas/JlqtaLRdv/UWzorbIliwHM6++46xzXU/gLgzqB+dHQCStMWkGcL/3ttN9P1fKZ0mjXoNXWdQJiAyFv9t6Rsi7h/ljc5x51LUsh/PUEDuF3ydRaoymHlWLsthMU/rj3/TzgRcQhPXxvVw5aZO99De91arT7McuKTlorf3XDjrUzKJC4uc3F8Z0wr1U5uLSmr+B4ntsIE6FNQGqhrQ6ReWbIRyVE64XSN2VbYWnxlLNGopV8n3HG68F+SaeVzEitqMNIgKlVxlJmeRITTBRuRDMdsauC9tkj7tJ41/zJOGVC5vkgrzV6aIeJEyJYU5zsdo4KQX4JmectUZyRMWdYq9axmIRaTAFMKRQZyRlkUzNIuSbfwD/+I0zbQBbyAJZeA+rFZa+zhRLPmY8AWW4Nzu1tmVcgYPTi17zSj4uQPIBKbNGFn4XTrPhxhsA9udOq6Hhu+F1ANobw7Rjt40FdUFMS/Z8rZYKTyZ8gUw35E5zvAlSy2sbpYx8a8cwcadWCJfR5ueSUVS5dfcHxEzkMdK8KbMf1gp67YgdpN4EehomwnJqzXVoe2ridADh355qQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(8936002)(5660300002)(66946007)(4744005)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?6TiKN3KooE33IXWenec/2Q4rh?= =?utf-8?q?QkOG4p5BmHdIiSQf0qMjSgLr1/IXEwLWtAMHmq8gwrXTKC+XBwmNlbLr?= =?utf-8?q?SsOq81BtR8N9ltctfvTJk8ieR1l7R6U2cbqPR8jGFIZkrzyPqLeF3t3f?= =?utf-8?q?wgAYPqAYspL6YqsDu1Mr2LcY8pi2wNkiChCDKk0z8UdT/Y0/1y1YsE1J?= =?utf-8?q?y+Ufcv0zaDhSO88aEbCnvWXdXzTK9MnLWsYgjAMWuC/p4e1nSop1x/B8?= =?utf-8?q?k9jv72v9W198fmOFxdc++soUApKcctXX8pMY2A+xFwFSWI/X5L8aqtMR?= =?utf-8?q?7RZ+y+7GAtGgI+5PmHXQCCCZK6XQiSw5OQOoUB+c4jioLSkTxs9p7bZx?= =?utf-8?q?2c1SI35kZg43Ks+02jhIPn6Nk9uyjP6zFZdAS/UnEmnzJNquPZsLEWDg?= =?utf-8?q?kazlxnDe9iiJpSWRCQG1ygMroehZaOqXlm77UCNtGs53XqGkAYTFctNz?= =?utf-8?q?Hhqfm4FoKaoFqt890EJAOJkLbeFuhxv1Gu9/QOmD5IvN7+hnOH2o5i9+?= =?utf-8?q?XMqEEUa/kQrnlG9B2kcGmcQx6SDDiiubYlAtGqdGvXF3pudtoshS4moF?= =?utf-8?q?xpcL51KsaDFfKdtyKIs7VUZTZXukYaLatO8ifHNHsSjDMlr6E9gMEdg4?= =?utf-8?q?3LteSrIeGxkDPJAi76IVpBWtt/5M3bEcq77ssDTLdSj6OHYa7Y+HWRcO?= =?utf-8?q?BX4yoAWIsgIxhXTCppE7iNxA6xhpyQ9h3QtsnJuEQYlCAKt9Nqf1W2fq?= =?utf-8?q?W0T1Cp1m/2w6SsTjkvMBGOZuZ2HMhI0vQCfB8iJpk/P3ZJ4ZciTZTipU?= =?utf-8?q?9ZxwFxSXMAK1SHXCkNMfximNLUTVLPWnJnvb+uT9exIEKg7lmjW3Ah4Y?= =?utf-8?q?RoNMnVE36SRvhhOAggM0HdYsR0nYMuAD5mDnoxJ1f3b+CR5ebq5CzTiO?= =?utf-8?q?bhItDk1Lh7MBtrpLCjKq5zVj/l2mMGW+ftN62Uj2vOYR8zbtFy0dVfSU?= =?utf-8?q?VqXPjMRnp3k9voRmDptQUKqjwc66IRcdXsbS27SAbWNXjszDjAbTHfCi?= =?utf-8?q?A7+rlgpiW15RlmP/PdxDDHCfq/ByU/0+HXMDTAFaoszTKavbOC7Xcepj?= =?utf-8?q?sZSk/kmKoFfau1bdBJ7xJAVXaLuFuqx5xhXPgfwA3yLwFfH4et4tslea?= =?utf-8?q?J3efxpgbVhD9BC0kmmV7xpKbWn+tSwMS0wQnODWFcxGymyJyOFynBvty?= =?utf-8?q?Zh++C080xrhvkRhrny0+aoQJDEmZbh02DH00n4DWCMhpBY1CpFR9570a?= =?utf-8?q?6lylg663VbuFyFsuZAYsAZhXfKm6m9WoPpg87pIe5eHy5LKUnt+b9AlU?= =?utf-8?q?hxJa5RJQtN8pJ4eKiOBBr11y/gq7z9YeW72l0OUFcNSrea8dB3nkI6NF?= =?utf-8?q?Vch0wFzhMJVtP2jGvqs2rjKuVYYip2u7WSHOTza?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d897f397-8955-481c-8c19-08d97474dbb6 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:50.3056 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Co9NYFNWdvesRTyF372dSLuDs8VQzwjQI21t6lRj3uwjnVm7llDumh8q9ApgoF5xQxJx9uDq5gQLpKww/vz0Bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Since API 3.8, the device is able to support TDLS. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 4b9fdf99981b..0a9d02d1af2f 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -440,6 +440,9 @@ int wfx_probe(struct wfx_dev *wdev) wdev->hw->wiphy->n_addresses = ARRAY_SIZE(wdev->addresses); wdev->hw->wiphy->addresses = wdev->addresses; + if (!wfx_api_older_than(wdev, 3, 8)) + wdev->hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS; + err = ieee80211_register_hw(wdev->hw); if (err) goto err1; From patchwork Fri Sep 10 16:04:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509045 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25F9DC433F5 for ; Fri, 10 Sep 2021 16:08:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 072F361207 for ; Fri, 10 Sep 2021 16:08:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231319AbhIJQJR (ORCPT ); Fri, 10 Sep 2021 12:09:17 -0400 Received: from mail-mw2nam10on2082.outbound.protection.outlook.com ([40.107.94.82]:58752 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229682AbhIJQIF (ORCPT ); Fri, 10 Sep 2021 12:08:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MlAiNE2CCPS6dduMVvtj0Hg4brQKpkak5uhOs3FFJkJSe1ok7gvc2sG1hIlrsbrzGJlsGvZ/vitkL3PTTLMhWeveO0TspbNjrx/EoeY5yu8/bkiI04cPv2zlbDf3yBdvs33E5HnZgcm5tEdBwSKmGIBw8CsknahZhEAdvcUaJ5odlBSAIa56vfhGGsLCH7JhqkMw9i6HAmHkguhHD3nfgS9yTHpvkQIuQFYJ/Z9n+mwhv6K7tCLXRwWEorGwmoelfhSBzpJR2+/FxrgMvpn6GWy4CAWSBGb4qotv8XKlqmt1f9p5W9SBcwC36vvaxHuZxLKxZzH0ITF9/Ur+5ZnvIg== 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; bh=A18LMnOuxb9qak/i7j4FnpOPO3I3PNxrXWqfHesfWhU=; b=ke8laFruT92bwK7FCA7/yQjjkzMz3X+0h/QJYy1dgUInLrBEs4IjoJ0TLYNOY/zw2ci6ZWJVDYmcThdYx2u5qd3Ml8BgLgz62NfnV4HJtpmQqXEjdpFgiWXJ/FWsXjpoCIjnYsNP1YinVFS3WcHCJbZrY+4B5WTIDrueDahtvMdBrTkNH/dQ5umdXp772uEHHbBN7z53xxUY9O45SBhnNmusYamw1f3BVW7eqJMxmKWYEuigSGA7PbFplnwRoN2FD9/u3iy+anDcVSOXiAA/Yi/0XpQsslwvLBXLRlJSaovxZVGbFoFRoKYgWnaWiTUlIuiOtShu7mOHViXkyG6ZvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A18LMnOuxb9qak/i7j4FnpOPO3I3PNxrXWqfHesfWhU=; b=Iwy81M+5hC5ktpoqwunxLG/WtnFDpz+UYbwS9Mp51d6IMN5gDgLogKZT4LwkIWDDGZEXUB2eEoIdeZYijfllHtnYjRPHgggmh7k+hRIXLkoVL8/qu7XOO4Wlj3ApJt+TBoVxYcXYx+W19YNaP4TVf27Ios7npTWZqYXHMIdLfMw= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:52 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:52 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 10/31] staging: wfx: fix support for CSA Date: Fri, 10 Sep 2021 18:04:43 +0200 Message-Id: <20210910160504.1794332-11-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:50 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 439380e2-1337-47ad-63bb-08d97474dcbc X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LvJAr5BK2gItl7nu+rM3OgRyWPs2aJo8opXbKQMdSC4LbTcm0PNyUpQ76zBj6Fuuy+jhZAxO4Qt5tvhoWg/qNozu09TWsTU0Sqh+cDOz43jnXkvWUffZxXVc4PzqBgTSpPXMipp4o8zL+hAz4QuatQayOEII/kPw5Kja+IxHEs6awLOMe8eN1XCFX8xJslyeUUBASskRrL9VncR5D2HMk8NzrtHcN2qqe13hWCL92hewlg6xq0Psc4pSJg7e0SM6izzO13cF4D7UsgmUR1YvUNMFFrmiCM11oFQ3XWsIWdIAl+XWVhtrGiwLBACRsJG5cF4ETA5FrPOoS2dOxKetr/Y0vtNfTxWpyMznK+qogdkCCDb6bB5SVEBHi1533o8QrUhMsH+1ThBrhRwW6xAjk1cddRHmXehLMURNHg51HgNEBM3K5LtusDZirtqqInzH7rAk4WEgWXcLY6bHZybLzAjWbUl9XzCBpmNrB/Du9l2i5g+BflQHVXqP1e3YaKTuMM2z5iA1Qp0JXXw//ZHDasXydjgrmpsdBBd2U8X3xtpXywkqXprrhaEwnyAbo+Vs1ydr2NzWbrQjM+qTjuTmbAYLtsHcdJ9Y+eU8dIqlo/Y93jAbLeCKClI9BrxkP68a2oqKa0lzg5mD6sakRfEalg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?zm+FGlBiOHdCfTHPCJty797ac?= =?utf-8?q?fDWscissUDVUhZ0mJt4CrcaMNxmZoBsS/vtFNEU8U90RCr8RqG4QLi2s?= =?utf-8?q?6vaS8put0KnACoZLyyv8i7aRoPi1fxWv1M5CQCCiN+d4jgIHA/FISZdh?= =?utf-8?q?3tHW0y5KswPF/uK7X+t7f/yr7m1UKcNByBfUCUelQtN81QL4ipI6EHcD?= =?utf-8?q?SnSqdS33IvoTSuIXrlfiDGv6QbPGu/OEBuiIQvjqx3VcmcumrvcH6nRi?= =?utf-8?q?G23BIdiHuLJv1tpGaX2uOluVRUdlJtIOwVX1jXcKNTPOk5kuIsJPxCB4?= =?utf-8?q?H181mJv7s6k/WVExSKXEhwk3AgWqU3I4/oZtYfPp33RB5pcFcurQgDj2?= =?utf-8?q?8Z6J5RROdq2x9/P2pfqXdhLRdRVVWilZ1bOcgZgKMYvTNFEsbWYYbUe/?= =?utf-8?q?aK6Zqo3ezb2+nOL24XIeAHOXeLgnd19z8cZ+kDbc5qIunnPD1D4/xl3e?= =?utf-8?q?+105BAppMpPcFTYUJWrUvbqS1P2bZlvOwxOnqKjOckaKluPn7b7bbItW?= =?utf-8?q?11YhLMYBiayP0ofKAbktvaNlTKX7daLLc0Mwm/fS6gYkatgIMwh+VKqY?= =?utf-8?q?uqmaT1MVEZmyz+iIRErsMKxAAauL5CbwZ8yqzDmyMRVh3bn/oNGBlm7A?= =?utf-8?q?1LpddfjuXlV6eNfK3iOavIZLXScftZPmcoHNZA9RZrx9Vzqzz3tSY4qc?= =?utf-8?q?PEv8e2tpOIC3tdQUhu5+wBXkwn2eKxTAGs0f51ySosqKhueMn98Beh/O?= =?utf-8?q?u7RsESIn4NWfmWK/gA8MVvK8fWyjxYWBFuJ0xFexhn2BJRka6lRQ7ghL?= =?utf-8?q?heftolMN7dboedYn7rKRLbCImnRvorBkfiOrNxlB3h0goK0nOOSK8Zkq?= =?utf-8?q?OYsPMYvGLT5qdY9muTdwCJQVKvCCjqSyQisa/Vsp61oVoRS1Zapm7QZb?= =?utf-8?q?vkQmgYRESwlpVNQZ3EJVsCTWdCuGIYAkjXezSTv2ux9lbTnhnK2pdvAJ?= =?utf-8?q?91sOxdrdQlPcuui5ab9Qp0vrwuOReXkP5eqN+3bG7qO/Qc9qi2QB2sC1?= =?utf-8?q?Xn6QtksIp1ho0lAewpb8/AfG9iuMDQqCjdynAbKGX0Z3ARO3iqWsmX3Y?= =?utf-8?q?fY47SLOaitK9TbU7DVXrWW0TNZH0J4D0MPe1xUzBrMNe4T6EsNwBK7eu?= =?utf-8?q?FktevI4HB8NTjBcoJZAlp2rvpk6GwcNxnKKXw5vlHUpqQwRs3FAfFWjO?= =?utf-8?q?I7lQj6WTFzarzRwbbsDwfzHKJCve19aiCihllpWBf3EIS/FNUpC24c9F?= =?utf-8?q?kivMfhAfA5FecGk4crRNxdkzGjE81w3t1ZtPz9sT3bjT8n/+Cs4DDjm5?= =?utf-8?q?ZVuN9NdFSSLP5Bp8GKPJ1xsFb3TK44nywvSOpt274jpYV3bBmETDS7Rj?= =?utf-8?q?X62jgrgnNPS/Rkp/re7H4NhtgTAkEOJm4WghPQo?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 439380e2-1337-47ad-63bb-08d97474dcbc X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:52.0336 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6PrEpHI64pzkXRRkGRSF2gvT4tQ1+DQPFT0ttDrBt06ofXRMd1t30CWkO+2o7xs5mzY5Evb/m4/Kmb3qIK+n1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The WF200 is able to filter beacons. However, it uses a positive filter: any change to an IE not listed won't be reported. In current code, the changes in Channel Switch Announcement (CSA) are not reported to the host. Thus, it fixes the support for CSA in station mode. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 58446f78d648..464a67a9b41c 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -80,13 +80,18 @@ static void wfx_filter_beacon(struct wfx_vif *wvif, bool filter_beacon) .has_changed = 1, .no_longer = 1, .has_appeared = 1, + }, { + .ie_id = WLAN_EID_CHANNEL_SWITCH, + .has_changed = 1, + .no_longer = 1, + .has_appeared = 1, } }; if (!filter_beacon) { hif_beacon_filter_control(wvif, 0, 1); } else { - hif_set_beacon_filter_table(wvif, 3, filter_ies); + hif_set_beacon_filter_table(wvif, ARRAY_SIZE(filter_ies), filter_ies); hif_beacon_filter_control(wvif, HIF_BEACON_FILTER_ENABLE, 0); } } From patchwork Fri Sep 10 16:04:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509380 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23D33C4332F for ; Fri, 10 Sep 2021 16:08:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1090361207 for ; Fri, 10 Sep 2021 16:08:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233471AbhIJQJT (ORCPT ); Fri, 10 Sep 2021 12:09:19 -0400 Received: from mail-mw2nam10on2056.outbound.protection.outlook.com ([40.107.94.56]:59105 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230259AbhIJQIV (ORCPT ); Fri, 10 Sep 2021 12:08:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jj+KvVsjyXBTfPTVZ6cWqFxrAixWuhnC2j65TxnDpDB/MT7c6NNM68BUhAhL7tIvxm7Gz6NXiC2FeZlUyRLTWq1tdwoCr4NZtGWz0oEz8HsrRMlU4sLhKBIhkdd/40Zxe2WtZdss0KW/0llCT/oUgY36I95k38lgUmYpkMX18jIyNvpKm1BJtyB3n5pOUCKHvMp6rOmNjoN8Wu1CDw1rC3b3AM/a2p+k4EBVN+sGAFXyMYnVJH+BJY0vGDR4E2GjIihjRmq6EgxB7mDYW9x3rm5OEuxLiUSgOoCqyUuJSeYErIKpzokdWWYo4SiYz8zvTPoFm7fkxzlovw6kEfRyeA== 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; bh=irK1qzipT3QHIWJf6rEuMgUX9uURfiAS1g+yt6uFeLc=; b=TqbLDIG6rzYx5XHAanvjuc3rPZX2b1pdwgjI+OqB0f48v7mLN2WqLVn84AQh0sEFvQe3pNiWXrG6eNE1WyCrhEam+NYNEI5krej265i7NV389ao1XEGkBWIky/tzZ9u1TcsL/MafNy9NSWmwBdHfbMDdk2ZP/NtCY+MHPTZLS9XHgqXT6pkVSRAqabdR9LMqRKqNEsqxlehIc7tf2SwL35wESSK5dPunaWOsq4gnk87X3CK9N6Wi3ZOH20YlCgnofBzi6FLFSeRzcFbAxdsefrNErZXwv5sx8tyqmMy0ZNwcFYrPFdoPKJrvOwPwIBfx94d7v75ii2Frjj4YF2qF6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=irK1qzipT3QHIWJf6rEuMgUX9uURfiAS1g+yt6uFeLc=; b=TjTrz5CVjtnBhSe1q3IYAHYq7WmoQdbeUdUnlel0x3yAKvQLAoxdgoXcKowCiATvMj9nEZDp1ZAWbtejTMSFSYRiXD+cGzmN/uTWRnrYxfnn1h9K8Fi+5A72AubpjTDb+jND4ZEKjar2wJrI5+jqyAMUHoapdHHMNc/xdYtubFI= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:54 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:54 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 11/31] staging: wfx: relax the PDS existence constraint Date: Fri, 10 Sep 2021 18:04:44 +0200 Message-Id: <20210910160504.1794332-12-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2579bc4a-ef9d-4a39-7791-08d97474ddca X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2150; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6qJLRuUDGoLqK8fkPW3jrNPnyHfBD6B82R3LDP5T8oEbY5lYfzYx1vV6ske0gMP/3cblWG9iV+gbG4oUFiTnh5sWkm7uD55sb7248sQUEa6ijKKp6ePOWeGLgF+ISGy9GE+aQzN8dWaRKGhO/5VFirYztXGYK02QSC7b80JiDAvc4foIU1V7J01FLI1E4Ew536yfCzhlHxaiHA3bZZyOTRvwJ0jg6JpTMOI16mIYXBSd1DHdpsfbI78wXa7Y9AWUet5MGpc/sX+xhle7zkqOPrQfC3G7RDAuhnBSzBso6aeXTQ3NXQTFc5PnShD4CxK2VpWVI12ZgfbxsAdgLMiqYnnoUZTJi+dfhmbTawMR2DinWJ2rd4h9kDGjyzxreMaWm0yDbIBqCW8GuJVs5g1ItW55H8SWCP0QkETz3BhPT9pMAlgIFrbeDFyEV+wSK3Q42ig/VG1Z2UBEy3TpyRt07oooapv3JhCMrgGiBCvL62zBm6KAuZnRoyZTBU2UjzEbfxyraQ0UT+x9nRrVb6/f5Hd20J5rbAKnnkIekLSwwVrBIshCvvpMuXZ74AmMmj4VkKNiuilCErPCVkhAr4HshhTZaNTmpEadzodUlHN7yn3PGsFSxq4cUeiU8l2xPxtN+6SUl09Oolw9JJxvShogHw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?mEmYKLiqtGWx3mbDJVi83yCZa?= =?utf-8?q?auEvsjviCAJTB1qaS1Vnt8sanYxBvoJVHDtwQpB4fwD8fGYmw2IYDsMc?= =?utf-8?q?broruqOKG5Qb2VrZgsBENKRO+wTSSoJHQnEvL4u200tuFeVVZyjal7yl?= =?utf-8?q?7IpGvZ/gayG8nKJxQD+b24fbCplfUUMKoMSNJDSVc5n+dxys2JHNGyga?= =?utf-8?q?yV04H/+3DH0idz7oO5FKmhX1qcDYFcYUqE94r4cAubAGa3N4pnMKULpx?= =?utf-8?q?+SOOl7/4n1uqFnyRXknNdAAqe8w83uD2bjXd/pqQN8xDfvYemFE3rRMo?= =?utf-8?q?2a19KIag9gYZcDP9nFX9uEeRY0x5REcH/BvHqMr+2L/khiBbpRBTcf/A?= =?utf-8?q?HN7b6+X0IITei16lm9ykh1tT8i+TYeGRJQbjGLv94TiU5jlG80s2QbKU?= =?utf-8?q?T3eIFRHPTylwXIO2rHeQ0TDNZUEVFRzfv5DvXN8LSsoYLm1jfac/D3/a?= =?utf-8?q?FMEkZJ42Y184H0HDmOBVG0561KYZSrX9lmEIPd3IoabcdokVNhYyFldZ?= =?utf-8?q?pOyyvnuaDztXAwAqKbr/31VmnwR/CAQkxnd//hdLWz5E+2PTXnq7fp/a?= =?utf-8?q?P7omtCtedh2G7eHFgYpXZ6zHSDexS5Ggc+ah7XOJkw8ftuhqMq2EF7DV?= =?utf-8?q?nK3uC0gBWydaGaP1wc/++mnr2BmhiipLGloB/7pFJCnUNkO+XHPZqbvV?= =?utf-8?q?LF2I5DwX4Jw0rCmH3b9N6vbbu/Hz35xVOt0N4Hu3izM7sFX3FTWWwBSE?= =?utf-8?q?T9DVIfOQArvvXpxJENd/lNqF+BztVEaXrOCBSfy92Hq3VUw4zMmT2fsX?= =?utf-8?q?+Jc1aNiv3DWduSZOZ8uc9gATK6jIWGNXLSC+KwtsB+61I0v4TF2vutrW?= =?utf-8?q?YseLGV1IBThKkOSm4Uk8kbG4wqSBHlrGZGST2QKDn2hIRIVieb+dcQG6?= =?utf-8?q?Bj42NmRRCMPazufORYdDkA8fDoMwtieucDJTbAj0T/a0aqGFfij0dFMh?= =?utf-8?q?rxkCSl9XD+NIMkCCIYfdZkMRN2wotlsKNBWwayTL9IoxUcpb4Pl3PR4q?= =?utf-8?q?Wpf4+C55g0FKNSOFdJoP4/gWyWbhenie4gGFTmlkWnKUhX+LsqW9YT6r?= =?utf-8?q?qpgVNfnZXUXiN1Dj3YNXsg2Xtz/YRDK17FveTgtA2k+qf1wm8sg26z1a?= =?utf-8?q?zOw9933ZT+79RyBPf4pBNfLBfRQc+6fwA4VA6ZHvx8gKonYm5ta8la+s?= =?utf-8?q?CwhKuFxkPAcoC2fAHwehKiN50Giq1BS1zc7m94lJUpkc+sXJanGCtNeH?= =?utf-8?q?lyY3kuVHEfxw2GVpWWUe6b1C6TByFE3lXN4Y9oJazt2J5q029ySonp5f?= =?utf-8?q?c9BYrNDz22iPgeNytqCXg848N0pQ3/RARXdp2KlnR8kAQUhASbBUfkFR?= =?utf-8?q?xyR/gpqD+615xR3Pjz9Jz8PlpQN8JNp1qRkUq5R?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2579bc4a-ef9d-4a39-7791-08d97474ddca X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:53.9035 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KnuyreqUmevajPS8eNekTSpUaOH4nw0FFROJ0NuOmYdW+isAuJwmod4nC3BBRAdSliPn0zGFfrDCWqZuf296HA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The PDS file contains antenna parameters. The file is specific to each hardware design. Normally, the board designer should add a line in the of_device_id table with his own antenna parameters. Until, now the absence of PDS file is a hard fatal error. However, during the development, in most of the cases, an empty PDS file is sufficient to start WiFi communication. This patch keep an error, but allow the user to play with the device. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 0a9d02d1af2f..b790d8573de6 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -220,7 +220,7 @@ static int wfx_send_pdata_pds(struct wfx_dev *wdev) ret = request_firmware(&pds, wdev->pdata.file_pds, wdev->dev); if (ret) { - dev_err(wdev->dev, "can't load PDS file %s\n", + dev_err(wdev->dev, "can't load antenna parameters (PDS file %s). The device may be unstable.\n", wdev->pdata.file_pds); goto err1; } @@ -395,9 +395,7 @@ int wfx_probe(struct wfx_dev *wdev) dev_dbg(wdev->dev, "sending configuration file %s\n", wdev->pdata.file_pds); - err = wfx_send_pdata_pds(wdev); - if (err < 0) - goto err0; + wfx_send_pdata_pds(wdev); wdev->poll_irq = false; err = wdev->hwbus_ops->irq_subscribe(wdev->hwbus_priv); From patchwork Fri Sep 10 16:04:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509043 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCAA2C433EF for ; Fri, 10 Sep 2021 16:08:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A408D611F2 for ; Fri, 10 Sep 2021 16:08:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbhIJQJw (ORCPT ); Fri, 10 Sep 2021 12:09:52 -0400 Received: from mail-mw2nam10on2058.outbound.protection.outlook.com ([40.107.94.58]:8641 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229944AbhIJQIY (ORCPT ); Fri, 10 Sep 2021 12:08:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lw6rUajUkg/MTnwBBV6DhHax1zAkP0z0wmw64+maeIufo065MJuLgNNoBWF2uPVLnJtdsm8Qn4o8hdIlt3iK+dG2bSsItgfspfSL0O6HNZoY928UyhxMRnHx7o5X68UGKE3hoEiddNPBa/dJ3F29spYAjMRfIJIutRRYROezF/oTP+6LzEhvM/aHxF4RdXLtgFJaBEjqKqsBTQGxtv8nshNOMiT9GQ9EDaeTpxRAMcvyGm7n4gsPSBpBhPPuHr1eEnBt6g1r4+iTZiPpDs/UdPAi/Nm3DnZYI5AomqP4oWBzdUmMBQEZaxdFSuWm2x0eBXyy2vULVPq55iULKurICw== 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; bh=FwmAPHbajhF2+WsJKbgL8BGX7TdC1AgdDDz7sKWPBfE=; b=B70rt1J9PbXaHWF7UvA7PhmoKRw9DGfrlxw8JCuyIe8ko49Ka4vf8dgBOQyNj9fs7D+oNjz5k/fmdP4pXjZ6+Ta8vAjTkvIC/2SP1TWo2auHuIqxIfd0pNtieIawXgK92U99bPyPSJmsbXoHQzsznodsQspOHO3bQoyN7xyihhAbeCB5HAhxdowTVrqpqeYd1Yig/29Qhu3ZnhWQ9BXXhmXsyGaZUHBLPv8Mt0OE5M6kX/n6Qj7EldZdQblVzqS9t9ton3N/Z/UQ91G1OKwTuHuepI+RuBcbxWDkCDhvayp77GNxKplsV1gkYh65l1zlpJiOSOgZp01LJ8FC8Ke8CA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FwmAPHbajhF2+WsJKbgL8BGX7TdC1AgdDDz7sKWPBfE=; b=h4l0YHp7IfGFnuxPsWTWta2NcmctmMOpleq1+2UGkWbKZFrt6aZNqbGBk9FbLj/CN4pFi6hqjU2puHkZEbNqg8hyP7v4NudGmlXSD9xr9yxaP9lFIaAYf0F7MBmC1IhPxPToovbpg/SKayQGCOXrUr9o1U3hM4Se0pboF8xH9Gs= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:56 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:56 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 12/31] staging: wfx: simplify API coherency check Date: Fri, 10 Sep 2021 18:04:45 +0200 Message-Id: <20210910160504.1794332-13-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bf480852-6f7e-47d7-48d0-08d97474deed X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2958; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lIa0RLTpIDLQpUg4NzrHTkfR+o2S7r8Av3obw0DvXZaR6iK3Ix5KVL4q6RQDth5tBzo73Gy3U1wzoBs2LqvsVXiZIAiXxBfQrhRV7oInKF2d6htv7wCHvLShhcST12OSnN9VRquiE/BKyCOnsbeydtXDmnoyDp6bl9qSTBezpddgdLoSr/eqOLDj11op1+Nodltk0nEWtZusiX4dr/yoLZxYWuSVDKxNRaZ2tJ13UYAeqAM/GU3GfNdj8UN3r5n+ihGEpZrTRCwA3gp//MkIVqxRFEbov9tnQBhSqsNaKG+cwkYsSeNZGyiaRS4ZvKWHy57tZ/caCOhKHUMng/5/GN0iROKT5S0I9800H1fCmz2NKjWQ4lqZICLx8mwRnzzwiKWyLTJ9t9KnT92B1YICt3o4XL6B08R1wweK5xaZO4Fw7oSP4atLObwmwTEx+rSXcWWaxP7A3BCPdSwyDUeLdF/xlyYxkOAXCXTV4ik5DI/TaFoMVKt4cAx4v6OjtsgEQokBOMLGxBnhGO5r+mZpfE5lq5EzxDNlOziHc7i7ncP4Ih5lZJmHRL5lZtUAWO/XiyHQCKUmmfbsWb8DzItTEMJGRG8BJozuNd0l79EGxRL9r7NzznApYjafuQ8ULMueiPRrF/Rt/Io1nitS3n0u/g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Y9XNTO/JyDyUPnvnqhJvy6GG4?= =?utf-8?q?De784iQVcHyawNrb8UG7KNeYJvQf6PJY++8vsmUAIPwgu0nKV6IcKCeS?= =?utf-8?q?sO2mUoKPywjCDHJYEBQrsjJBIx95Q9ggy7b9/XvkDFbbu7dQ9RllXPEa?= =?utf-8?q?TvXCXl+97jWN/VxpHx1EAY2aJoPbYNJAcxhHwwgqxfu/OktU8xfELkM/?= =?utf-8?q?LMsBfnismpNA791P8dfQRH5vS/p0bKzkLqC7XNjEAwKbiBKMeaPlPGG1?= =?utf-8?q?nzAoKcaTM0hkgK9KnUy/6lHhKX7/EElS6rmqsz3Ol0Qp4xkWOEExb7Qh?= =?utf-8?q?G792YelOy+nrgtDHJU2AwFuDFvSMeOSSZi0zVzdnqUPij9UjXcfok3TD?= =?utf-8?q?RSJYVw4vT6Yqf9GtokAoQRi9AtVaJLqDwa+Om/ouF1iS+GHvwdt+45U1?= =?utf-8?q?HuszDBuu2iKJwcAP7qJFOSOfZm1PDWUmZP9N3gzeYU2zReGLopyXsmoR?= =?utf-8?q?VojqimORWPHFXd7K2zfjDTihUFkg0u9c/29MR3KQ/3b/8WFAjOu/LGA2?= =?utf-8?q?YGbZwlGAjeSUsuK6iAhF19eZSrIsSe7Zf8QohpVF6M4i53U/54x69Fll?= =?utf-8?q?6cDTxsOIS9izD3tWm1cvKwdHh5NyEsVjHCW+1b5gjn2dbrH7JUljitx8?= =?utf-8?q?nXyT3yIoxZDUznQcPfArSS9mmtVgveYKc0gV31zxgcf8xLTTzNlnqBzl?= =?utf-8?q?ELHMvsS5qU9nzoplO3CYAw2uevORsRl9VxW4jhlw0tVIqWIy8AbuJkuz?= =?utf-8?q?i1Z2ukR1jsaz4O6+sIt4PXHuFE0rGqS6X3ayw06lSNGaBhEEXu/KiaHd?= =?utf-8?q?ajX6r6Ev6MhDNjF5Xx8vNnlDDJZfjVxY68j0zVA867C+iqY2h1bTkoSY?= =?utf-8?q?9HI91rmbM9offCM2HatIf/6nBZlTncJCb+loQb+oDZcPVOUDfMM8PMEx?= =?utf-8?q?eQxfr3WTNJm4HfxHZkFRxLAUWKlIVrfoYYQU1uVM+GAsvnSeV9dl9Ifk?= =?utf-8?q?WEIBVmypxluXb0IBYIsI5C+Kw42wFQYjVokU6tx+m0PYIvfrOmQnCAlg?= =?utf-8?q?0nLwrZ5p0uMu1wctLz/77dyDlxkJwADVJESiuU1by2T+NeSF7lwHrhsY?= =?utf-8?q?eGEkleX+Wztnll9/t2OzXJTmxn8GJBauPg+KV0i/UbJdh3tLbsn6A2nB?= =?utf-8?q?Ovnm1k1HAGEPoZBj7tF3oKJzoUQ3CSHUqWMF0JzCmJK/4DT7J0+TxkrC?= =?utf-8?q?CMwi6FCCf+w8z7dNd8oO5Pq2PMtfgPx1FoJXKM1VFMGRC19QPQ8Fr3+N?= =?utf-8?q?+gr4m4DREexPvUJ4HWAbkv3aLEpQReYwVi9LTVtHxpyS1qs/G94DTTjh?= =?utf-8?q?1WODrzcg4V9SEx8DiXH6pXuGr/QbjSnDFPMtcXHfAIowxPPSlEXHOSSZ?= =?utf-8?q?hLI+GRdtOGFrOE4i/wQdqn+oGigzF5teVR1/NNV?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf480852-6f7e-47d7-48d0-08d97474deed X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:56.2502 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qb7512ayZSS4YqzFq3IZyMd9umjbVYV4U4sVMDSoYxojIW7pivoAPq6ZCSxKMEUJxwByXp0AI9dIh2DxezOpwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The 'channel' argument of hif_join() should never be NULL. hif_join() does not have the responsibility to recover bug of caller. A call to WARN() at the beginning of the function reminds this constraint to the developer. In current code, if the argument channel is NULL, memory leaks. The new code just emit a warning and does not give the illusion that it is supported (and indeed a Oops will probably raise a few lines below). Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index 14b7e047916e..6ffbae32028b 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx/hif_tx.c @@ -299,10 +299,9 @@ int hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf, WARN_ON(!conf->beacon_int); WARN_ON(!conf->basic_rates); + WARN_ON(!channel); WARN_ON(sizeof(body->ssid) < ssidlen); WARN(!conf->ibss_joined && !ssidlen, "joining an unknown BSS"); - if (WARN_ON(!channel)) - return -EINVAL; if (!hif) return -ENOMEM; body->infrastructure_bss_mode = !conf->ibss_joined; From patchwork Fri Sep 10 16:04:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509042 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A22BCC433EF for ; Fri, 10 Sep 2021 16:09:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B0706121F for ; Fri, 10 Sep 2021 16:09:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232443AbhIJQLA (ORCPT ); Fri, 10 Sep 2021 12:11:00 -0400 Received: from mail-mw2nam10on2043.outbound.protection.outlook.com ([40.107.94.43]:53728 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233046AbhIJQI7 (ORCPT ); Fri, 10 Sep 2021 12:08:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OduPl0D7kMXbdJNNRfoYkm8I0e78mQPuoww36fjIex7NcBvBRXLx8t/rbwDHfCOz9bsIh5oF34Yw5RUukkDmBBL/AC8sJWPiCOTyoIqaxP58PgxBy76W+p9u/BGg9M5as9zwJox3yVqmDAlm2wsu+YvbD8TBihsapK9vPFh8B9qkWhII3vZOHlBD2VzaKMs5+C62G8feokPjb67wBoaBgB+x2sRpn5vHJmpgYyM0N5cSsWr+hwQ0Uq//KqOwoqi0aL3nAl5OWWY8H4mLPZNQV86zmaC7ia1Dd+GC8+ccZFZVaapLcN+m2zvRtmdsDZUc6dcXNmM7B0gtnUzEBBMvTQ== 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; bh=/9CXAv3pbajm4uAipmOpsP1Jb6a/7Ntio8z4lp4096o=; b=iCMG8iXmaPPyifJ5fOR3+7tmoMYcjdYoi0CWlxSEEt10njdyPJNhXrYRFhruExC5cZoiKzJPKe3ZXh+Kt+/uoplG8kNlWmgBUu0Z8QvRHiQj/JA7C2xo6Kj1MIyVjERZTm0C0N5uCDl9ruWDO5CoUS2wHa297wdxoiiYBrcslSpXnk5dZ6F7nn7hpAl11HkvTftCfc+LmqPCYb4qp/Jhm3LG+61yv4O5vognr50sdJouBwC6ieO18GQJGON+14ikMOPaOp6Uuta4yy0WEkJfx1IauZiAkShTIMiFGog99vfp+KAL0wQ9z1aiHbeNzu6ma+hTtmHF1oP03jLY/ROXUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/9CXAv3pbajm4uAipmOpsP1Jb6a/7Ntio8z4lp4096o=; b=TkVO/Xu36YfGD3xiMiSSBgoti6EWClWniTGyRQIA4zT7ymN/465gWIlOSJct8v9bLR6UHADnwn7kDAbcgFKhFe7R2Ck2FE2K+Pm9y98VEvoj1zX2zAH0lRYt68pczRceUC0yVmXSwmbXadbVSTV+n5898MbZQrrB6nO0h1I/mVw= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:58 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:58 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 13/31] staging: wfx: update with API 3.8 Date: Fri, 10 Sep 2021 18:04:46 +0200 Message-Id: <20210910160504.1794332-14-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 50c2cdf2-b644-469b-4a16-08d97474e049 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:206; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RbW0swkWQhz8XvMFt6AWVkgobhs0a/pIkVVU0zJjoqmA00kLciw0G0+6ktUDM7v101pcOQW2HsgmXn2UVaHCTOWcIzCzYngZMo7iFbn+6WHbjB9WZASlJE6Qc4UBlDByH5XxGu3ca6x44w1Hex9V/wUlE5Fitp5my1+AJUuB+faftgT24+DP20WBgcdet7tUPguohMKHDiMuA6mEUSmfR3icoKsf7JFJu3gjvPZFFZ9+w/zbjn5X9JcJg0wisBYh/bI1uQZqAx9cEryZz5vNQdh38jq0DR95qA9iQYC/WPHY7jMuNJ2rBMnMvDaX3KHjwC2sKQlnLjfbkKZNb3U6f9Tb0rXxv62M+YVB+N8K2HAU59aEmOY3CzOBr9F2bGNQFLE8fn5ozFhirgEW7dEOUtQ25WszxH2dTIbuhGy8dlO+R4pN2VHsaXB0nq1S9HTHrLejghP1oQW7SOYNOJDsIlP6DCNVZEJFhgqOD+9HqKG/EDmjcTTU5j92LTLNPDRUjduY+1nIsy3Ja8V1lPEiUGuE3OneselBgB46GW0/oyW05eBjMhRZ8dKY8a/vl8BbIZn97LqxxukLqVoFTNEkApon0Ysg0dC+/AvDQps290gOZN0KvQ1p3YSlHChhMnKtZ+Uf4f8L/oe1bEuOQiXIAg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sdKJaK9B7NU8D6lxvJU5PQUN2?= =?utf-8?q?UeBa+oKl1Q7D5FoDaaX8IRb5ClfMCCG14rxq6ID7lOsDh2AJyswTdiCh?= =?utf-8?q?wIASpgVsmU/0gdlxYNNp0RqoxU08Mn+h78Ip65XLeg5iYT4ztXn8MEKS?= =?utf-8?q?qyoMW1Dzyto0jBFnJsoCHnevtzoqbUYHQsCtrzgoxSCNkyVGsXJvnw1X?= =?utf-8?q?XV2lappfut9LCHIPIM1YC0xLoRQsScZH4chsft5ISqx+MjFNoAN2wBgJ?= =?utf-8?q?/hBJloZybBHzt3WSkBfdVwE8o7afgjseMjSghuaa7ddeqSppl3LyL1jr?= =?utf-8?q?rsGiqtqPYRD7ts8TPS0+byfrjvcnttMg5286Oa5HNvFLoVCMKlG1jfnj?= =?utf-8?q?saFwcQKx/xjH5kSRBeHGIqVqPvmD/Au1ILULak3ZOaRr7Fn6OG0AnqSM?= =?utf-8?q?w0aAFT1ZFq2Px52GvUfliC4uyCDHhOfyh3OvZN9AfkJfEWxYq+cj37a3?= =?utf-8?q?xsK2fSuYiHo+4gz3QHkO1r2g4CqHcgJyWuznJh+K8qnXf9NBmHhoHkYu?= =?utf-8?q?c30kDrwf7yRoQR8abNLC0sC1iTcnPUxg4RLEpFazF33ReIwOU8vzMR7/?= =?utf-8?q?Xq7xw4tPG6Zumj5Uwkdui6k66VTBlWhRGDxXuDAx0r1QKurGS+nahtYb?= =?utf-8?q?lB5EgfrDbqzMiCjkaEKvvz9K42wb9mfSDHVeFc+X0lIrKiDDNX7ENyOs?= =?utf-8?q?orLY7Sxr848uY+MedZgl3Q3qZKxgy+i6rhWilfeBR3tkxmM5mAS45kib?= =?utf-8?q?OGEj7Yp//4XjIh0yIX41lqJ2+Ibdx+e10A/ei63zIqWsGDVqF2Ar5ZOe?= =?utf-8?q?mTwlnrdaJrW0v8Z+rcK4Kfu+Of6vvNoV0vbOeR1MCKgoGvuJp6i1P2N+?= =?utf-8?q?Ilb6ylRzU7TVFDxHKMnyiQVrd13XAQosSQivCO8RF8DVc92e84yCNWD+?= =?utf-8?q?twPQftpVRn2LxEJJYYthG9OLfaHSk+peUciHYVWMeOleAl1oyBsLh32l?= =?utf-8?q?NxZYEzbBHbn2ff/9P51qO/jk1yqX/au1JbTE3iHooO10x4+TJXmpENFE?= =?utf-8?q?aLw1RJqqYMzU5WqJsaJZ9VBnorQyGpC+GSpMZdS+Qkvc0o3M2IebMRAb?= =?utf-8?q?InalN2qVw4glVSooOR00ho5d9iSb42GdbcRvvCDKRWnVO6kQW+MwQWtm?= =?utf-8?q?c+yBG5B9SxVL64gs54PQ4TonlqKN2Gn6lmkeXX6YtafgfqGSqu6rR+be?= =?utf-8?q?dlBvc/csKMXNSRFxduzNzJpxfTTd9aEOKidxPDVTHnXnMM65LV4uTCPw?= =?utf-8?q?53ciFs7C4Nn0uDfFqJyGaRDWgDMN3cKbbPlgYDvxdHiJjF8nrnutjCoS?= =?utf-8?q?nDu7vGJeX+p+FmQghy1FLyrBqhWO3RIQffWS9rfCva4FsBgS4Vd3R0e0?= =?utf-8?q?qeYa2L6nbsi7gYz20gI78ibfld1TzXcQsabpkeR?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50c2cdf2-b644-469b-4a16-08d97474e049 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:58.0302 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: v6vN7u1VwW5z8iKgpYGBugIggVEyywR3oGLUQcHtd2y4md/+bGjggGYa8xBlOz5KXn9bPWGYUuBIFdeX85vwXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller API 3.8 introduces new statistic counters. These changes are backward compatible. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 3 +++ drivers/staging/wfx/hif_api_mib.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/debug.c b/drivers/staging/wfx/debug.c index eedada78c25f..e67ca0d818ba 100644 --- a/drivers/staging/wfx/debug.c +++ b/drivers/staging/wfx/debug.c @@ -109,6 +109,9 @@ static int wfx_counters_show(struct seq_file *seq, void *v) PUT_COUNTER(rx_beacon); PUT_COUNTER(miss_beacon); + PUT_COUNTER(rx_dtim); + PUT_COUNTER(rx_dtim_aid0_clr); + PUT_COUNTER(rx_dtim_aid0_set); #undef PUT_COUNTER diff --git a/drivers/staging/wfx/hif_api_mib.h b/drivers/staging/wfx/hif_api_mib.h index ace924720ce6..b2dc47c314cc 100644 --- a/drivers/staging/wfx/hif_api_mib.h +++ b/drivers/staging/wfx/hif_api_mib.h @@ -158,7 +158,10 @@ struct hif_mib_extended_count_table { __le32 count_rx_bipmic_errors; __le32 count_rx_beacon; __le32 count_miss_beacon; - __le32 reserved[15]; + __le32 count_rx_dtim; + __le32 count_rx_dtim_aid0_clr; + __le32 count_rx_dtim_aid0_set; + __le32 reserved[12]; } __packed; struct hif_mib_count_table { From patchwork Fri Sep 10 16:04:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07D2AC4332F for ; Fri, 10 Sep 2021 16:10:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E3E0661221 for ; Fri, 10 Sep 2021 16:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231714AbhIJQLL (ORCPT ); Fri, 10 Sep 2021 12:11:11 -0400 Received: from mail-mw2nam10on2082.outbound.protection.outlook.com ([40.107.94.82]:58752 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229907AbhIJQJC (ORCPT ); Fri, 10 Sep 2021 12:09:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BRdiBPUklVd1jToTtFlqIGhuCa+h5YkxA1vmVZDdUIDrKVE6p/ZuY8Yf8Tkmg7I9w8ZgLCRR69y/uyYAs4958Hul6kdKPJ8myePevTQ7ozU87d2e6ds04B+nezlIkiBqaBBUtrJj6n5xlvlDu2BkAZ7TVm9i/SW4YSR5Hgst+yIkXnG0e97gMsAAjmOkkPjmOCWd8QQvEHYCodqvzD5otoCLUa8n/L6/UHlKbjA5uo314rEgEK+wEk9OkYlRmpOpk+M/n5jQ4wA7zX1jynHI+6D4e8gQVDWCHLnwGlji1NVgHTVOn46UNDRpU3NM27cIurzjA7vlDAPui6evPczVeg== 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; bh=ASE4rAagVGXa5deMw5+RxN7XsAlkN46v5/lzPTuDMuc=; b=K8U64UoLXvj1ac+Co4mxj7VShsDKiKyK5sD6A4oybqi6qvCu5FWDIq9RGtoOy/2HQjN40fOplie+GYd3C0PnaVNBC0rP1dRec7tpBQD9sCfuy7oMgtznMNGT8NwuzRZ7UQZRqeVdPphNJs4KDh2IPIK8IgBgUfeNMt3EBf/FIJsS/xBGC6ubPiN0gd84QORPPlhyZKNQmwDmXRW8OQWdw8/RrsPv8QTK95wml5QPC/v2ajlgEOZfo6gF5EaBNamN/elXyGlbkV+TFP2f15zyJtW+/9YghE4oeExM+OhuFpPbcAW0RNKPoEv6MLvHBAr5y2IPLmu3h82CeDXpyhsSnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ASE4rAagVGXa5deMw5+RxN7XsAlkN46v5/lzPTuDMuc=; b=o8g/yrYmRBcNMMh0ZtxfhbQ4Srt+5pJ4CooILanKooLhVL5d50S6gOFqyj4aOa4FNtJPUDsnGIwOT5jb+wbK1EG/fXCCnEw8fjkmG93FdgT6leK5HMf1pykB7EUhLPssNNu8kdwYULh5yIMnWncyCRzWRLWdOvteLzIQzYxOCVw= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:06:00 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:00 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 14/31] staging: wfx: uniformize counter names Date: Fri, 10 Sep 2021 18:04:47 +0200 Message-Id: <20210910160504.1794332-15-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ec5d45af-97c7-415c-c969-08d97474e164 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1923; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0u8oYv2028EhiOWhDYXb6X/y0Z1YDiki8TNWacMTarEVejiY26k9t5l9QkuLrM0zMQszp3pxGrz/joIEwhhsN8V4Q0NMEVyAM1X5Tj/iWL6WcqgZErdiEMkiEeitQ2k4rLXOk2IqH99l07pMVbhJu2cILyW7zbCyXSMqiW4xXi+BbMFpxmq0ZPi41K08QTJRn70Q4mLqjnP5ZHD3wyLFnl/yOQ5rkjLs06/02MHrnvztQblBETedGkM2eEe3+SrYqugKLOnjL7hS30q6PT2yHz7sJafxUGe7ohAtyvUSuMJYelQnsrhj6S+gVld6havV2Uap238UdnHRnxnJrkfmKLHkZm7v6t8KwAhKgGtlSTdj832dBY2U0tHQkzNoCil5fuZDv9Ct9audscFhRehbj3pBIYzX1er929U06j1nrlJaL3BtBxgdFOxR8fe0mtlAPcw5YmVnR64UcP+9v9GdjLVz+szIj6fLU+4ViCn6FGMWgQc7CLBZGeAqTRpH765eaCUE6ASawVIxse21bCdwJk+KmWKWL1VFxs3N+/dJTSyHSVscbBGi56nrWYtr3672vvWr/6HYZcd9S7sc7LHsw/eH0nY91QzoU5rVWPeAJvnTSV/WA/RIM+ggGJxtfYSlxftIU6E9CepZmyVVq0ct+A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?M41k7LxBM/G3KxnStRlzx13Gc?= =?utf-8?q?tzeee5o41meJyciYAWGoSQ9Xq2WC5zfb7iyYj8iqdZmMRQ4lx9dY1RU2?= =?utf-8?q?zGzAVHp+8BvXjHAbgZONMsPic7awlhCOY2Apvnj+7KKSBmufQjuoFiMM?= =?utf-8?q?uewlZ/FThhqvcjAMUbWg+fyPrz6teuxDKrBvcgf83mFjDHdzX1jOPYTZ?= =?utf-8?q?TxeFSWBr7SGrijLLcOMM+W/408DiLAL+d2cY74RfRJxmfg1s0qz4PFNx?= =?utf-8?q?p3JF638Cwktp/EuLYd+UAnDUaeyFDlx4btuDrZOBgdMnUJKeclOSjC9r?= =?utf-8?q?4gyxbXo/NWXxdXhhgKrRWC8Ja/5kCCvIPqIgjj9IyYCHAV+t9mzx9FNN?= =?utf-8?q?ujjRK9ULJokdF53dpls8PELJoLETK25s6v3jmjxm5ABtpfap9qYUhnK7?= =?utf-8?q?32JVV8yDJIAmDpr8YOwTTZHm7ohH/pSVlngNYruIHF/ODcGHfQ4ATQpu?= =?utf-8?q?Dw8/87ypLqI3x6SfncR0v+MWAGd64MEyneZn+bPeXFpJIXFnKEL2MEsq?= =?utf-8?q?lP6G6JNS/m6Ul2TQk2Ldm4Hz+oUKdVCrOUxLpJslyIBB8YTc6DCjyl4S?= =?utf-8?q?ID03KZ4shcyvqmqXKH5G+iJ0wiouN5hzZ3/zgUyM9VumDY0b2jKnXxqg?= =?utf-8?q?izD3YNfGN4Xf/vN4mg4AkAV35Yrq6Kv7177iMif68CvsJpLb1QIInxjY?= =?utf-8?q?ZZKVCRyFaaomj4aGU0XXr2K/x5DCcQdzF2d2YbZEi9BbcnKj5JfOqCKd?= =?utf-8?q?M/tlEoWLPNV+GLYNWHjl1ibDy4W4FYbxZgMOSQDxXWjcPIaGlCrPNTMY?= =?utf-8?q?+0BUCRx2zZYaA/V0YPMY7PvgeRsW+aCrtPVffuVzsrC/2l/FehcmcBbm?= =?utf-8?q?FHpGPjkN7RXAC6bvQz2DWrSh0QT6rbTp9NtO2236fFQLnbs2S8RMGfIW?= =?utf-8?q?JdAWagsguek7xcir+Njr8aeYBcSCjdfFKskFmjVcq6GVGtusGPZ0e1tR?= =?utf-8?q?y2kqX0/vV6bOSePXTMK38x96Ox33PlKacgJV52MKWs7m06sMRZd9CBaW?= =?utf-8?q?RFVhyXVnGVEw0xIepYNU7g3/Vbjgx+gd71FTHWVpp+nCIwhwNk1FB09V?= =?utf-8?q?VbDZ3G1zRNfScZfxn+JVS3VoYij87mVBbA8BIPZYbxTD2ZZMBLTYuuoh?= =?utf-8?q?xgHSmaNKd3UezkjVtod2x9FBcHiXu7uxo5KVbakZkvSyQuwyvWMbCpQw?= =?utf-8?q?vtwlzUw5wpgvuYnwx6b6vpgFEc1GqViplV9XmlFvOMblZtZ5nS2dOdAz?= =?utf-8?q?Tv+F2SEQGF1lM/4WPHgegYyV33RcdDwsaPBcX5V508XcZS2Djke22BKo?= =?utf-8?q?X21STM5P8mZIi82jvWpxgxdjSwwqp/K4c+pgH9SgHtZaW+nNvy2AqeI0?= =?utf-8?q?M9L3UTFFGL2al/lxog3D1ZDf0VhwmKXTZkwRDBu?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec5d45af-97c7-415c-c969-08d97474e164 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:59.8881 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Qd7YDW3dz1Ztw7Uq5Teq8sIG1WqXIr3r7udm91SO1K3MQcl08axGy7zXqN3Z3QSvfLMHO6+ooZkv5YNPnauXtQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The device provide some internal statistic counters. However, the names of counter were not very meaningful. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/debug.c | 45 ++++++++--------- drivers/staging/wfx/hif_api_mib.h | 82 +++++++++++++++---------------- 2 files changed, 64 insertions(+), 63 deletions(-) diff --git a/drivers/staging/wfx/debug.c b/drivers/staging/wfx/debug.c index e67ca0d818ba..16c3f55f1a3d 100644 --- a/drivers/staging/wfx/debug.c +++ b/drivers/staging/wfx/debug.c @@ -82,36 +82,37 @@ static int wfx_counters_show(struct seq_file *seq, void *v) le32_to_cpu(counters[0].count_##name), \ le32_to_cpu(counters[1].count_##name)) - PUT_COUNTER(tx_packets); - PUT_COUNTER(tx_multicast_frames); + PUT_COUNTER(tx_frames); + PUT_COUNTER(tx_frames_multicast); PUT_COUNTER(tx_frames_success); - PUT_COUNTER(tx_frame_failures); PUT_COUNTER(tx_frames_retried); PUT_COUNTER(tx_frames_multi_retried); + PUT_COUNTER(tx_frames_failed); + PUT_COUNTER(ack_failed); PUT_COUNTER(rts_success); - PUT_COUNTER(rts_failures); - PUT_COUNTER(ack_failures); + PUT_COUNTER(rts_failed); - PUT_COUNTER(rx_packets); + PUT_COUNTER(rx_frames); + PUT_COUNTER(rx_frames_multicast); PUT_COUNTER(rx_frames_success); - PUT_COUNTER(rx_packet_errors); - PUT_COUNTER(plcp_errors); - PUT_COUNTER(fcs_errors); - PUT_COUNTER(rx_decryption_failures); - PUT_COUNTER(rx_mic_failures); - PUT_COUNTER(rx_no_key_failures); - PUT_COUNTER(rx_frame_duplicates); - PUT_COUNTER(rx_multicast_frames); - PUT_COUNTER(rx_cmacicv_errors); - PUT_COUNTER(rx_cmac_replays); - PUT_COUNTER(rx_mgmt_ccmp_replays); + PUT_COUNTER(rx_frames_failed); + PUT_COUNTER(drop_plcp); + PUT_COUNTER(drop_fcs); + PUT_COUNTER(drop_no_key); + PUT_COUNTER(drop_decryption); + PUT_COUNTER(drop_tkip_mic); + PUT_COUNTER(drop_bip_mic); + PUT_COUNTER(drop_cmac_icv); + PUT_COUNTER(drop_cmac_replay); + PUT_COUNTER(drop_ccmp_replay); + PUT_COUNTER(drop_duplicate); - PUT_COUNTER(rx_beacon); - PUT_COUNTER(miss_beacon); - PUT_COUNTER(rx_dtim); - PUT_COUNTER(rx_dtim_aid0_clr); - PUT_COUNTER(rx_dtim_aid0_set); + PUT_COUNTER(rx_bcn_miss); + PUT_COUNTER(rx_bcn_success); + PUT_COUNTER(rx_bcn_dtim); + PUT_COUNTER(rx_bcn_dtim_aid0_clr); + PUT_COUNTER(rx_bcn_dtim_aid0_set); #undef PUT_COUNTER diff --git a/drivers/staging/wfx/hif_api_mib.h b/drivers/staging/wfx/hif_api_mib.h index b2dc47c314cc..2a741a37a90c 100644 --- a/drivers/staging/wfx/hif_api_mib.h +++ b/drivers/staging/wfx/hif_api_mib.h @@ -133,61 +133,61 @@ struct hif_mib_bcn_filter_enable { } __packed; struct hif_mib_extended_count_table { - __le32 count_plcp_errors; - __le32 count_fcs_errors; - __le32 count_tx_packets; - __le32 count_rx_packets; - __le32 count_rx_packet_errors; - __le32 count_rx_decryption_failures; - __le32 count_rx_mic_failures; - __le32 count_rx_no_key_failures; - __le32 count_tx_multicast_frames; + __le32 count_drop_plcp; + __le32 count_drop_fcs; + __le32 count_tx_frames; + __le32 count_rx_frames; + __le32 count_rx_frames_failed; + __le32 count_drop_decryption; + __le32 count_drop_tkip_mic; + __le32 count_drop_no_key; + __le32 count_tx_frames_multicast; __le32 count_tx_frames_success; - __le32 count_tx_frame_failures; + __le32 count_tx_frames_failed; __le32 count_tx_frames_retried; __le32 count_tx_frames_multi_retried; - __le32 count_rx_frame_duplicates; + __le32 count_drop_duplicate; __le32 count_rts_success; - __le32 count_rts_failures; - __le32 count_ack_failures; - __le32 count_rx_multicast_frames; + __le32 count_rts_failed; + __le32 count_ack_failed; + __le32 count_rx_frames_multicast; __le32 count_rx_frames_success; - __le32 count_rx_cmacicv_errors; - __le32 count_rx_cmac_replays; - __le32 count_rx_mgmt_ccmp_replays; - __le32 count_rx_bipmic_errors; - __le32 count_rx_beacon; - __le32 count_miss_beacon; - __le32 count_rx_dtim; - __le32 count_rx_dtim_aid0_clr; - __le32 count_rx_dtim_aid0_set; + __le32 count_drop_cmac_icv; + __le32 count_drop_cmac_replay; + __le32 count_drop_ccmp_replay; + __le32 count_drop_bip_mic; + __le32 count_rx_bcn_success; + __le32 count_rx_bcn_miss; + __le32 count_rx_bcn_dtim; + __le32 count_rx_bcn_dtim_aid0_clr; + __le32 count_rx_bcn_dtim_aid0_set; __le32 reserved[12]; } __packed; struct hif_mib_count_table { - __le32 count_plcp_errors; - __le32 count_fcs_errors; - __le32 count_tx_packets; - __le32 count_rx_packets; - __le32 count_rx_packet_errors; - __le32 count_rx_decryption_failures; - __le32 count_rx_mic_failures; - __le32 count_rx_no_key_failures; - __le32 count_tx_multicast_frames; + __le32 count_drop_plcp; + __le32 count_drop_fcs; + __le32 count_tx_frames; + __le32 count_rx_frames; + __le32 count_rx_frames_failed; + __le32 count_drop_decryption; + __le32 count_drop_tkip_mic; + __le32 count_drop_no_key; + __le32 count_tx_frames_multicast; __le32 count_tx_frames_success; - __le32 count_tx_frame_failures; + __le32 count_tx_frames_failed; __le32 count_tx_frames_retried; __le32 count_tx_frames_multi_retried; - __le32 count_rx_frame_duplicates; + __le32 count_drop_duplicate; __le32 count_rts_success; - __le32 count_rts_failures; - __le32 count_ack_failures; - __le32 count_rx_multicast_frames; + __le32 count_rts_failed; + __le32 count_ack_failed; + __le32 count_rx_frames_multicast; __le32 count_rx_frames_success; - __le32 count_rx_cmacicv_errors; - __le32 count_rx_cmac_replays; - __le32 count_rx_mgmt_ccmp_replays; - __le32 count_rx_bipmic_errors; + __le32 count_drop_cmac_icv; + __le32 count_drop_cmac_replay; + __le32 count_drop_ccmp_replay; + __le32 count_drop_bip_mic; } __packed; struct hif_mib_mac_address { From patchwork Fri Sep 10 16:04:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509375 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 822C2C433F5 for ; Fri, 10 Sep 2021 16:10:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7167E6121D for ; Fri, 10 Sep 2021 16:10:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231580AbhIJQLP (ORCPT ); Fri, 10 Sep 2021 12:11:15 -0400 Received: from mail-mw2nam10on2056.outbound.protection.outlook.com ([40.107.94.56]:59105 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233332AbhIJQJP (ORCPT ); Fri, 10 Sep 2021 12:09:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iOme+4a6sHhU6Atl19NARD7dL++YNJvvQYiJL+7grUYLIdx/3QLkMo8t8vgbKdmQiSjD5QL12zyr0gqiJnnG7dfa4/lWJSQjUyFoZd25DlfaQVO+maGvI6mCJyybLRn+5wiXkQXXE/NsGtvAKPjdwJnePsMT/Ck6TLSTmuagNIs60GkxtV7oZMb9wLOJ+nSSNhhyCltZgQiGndYWJk4edMJavchHl1Yf+Aautnt7I/c84hlh/b89Ycj7EGinxPmIGFZ5FSHWSit6tti0/OY7c0RZ2lg2RyMgmEJlKe0ZMcBAtA37FQlIGg0sCnqM3ItV5/yiIApjV5NaXwfYqPrvlw== 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; bh=RWqshuUJt4MwYDZxaRfz3PfeusUa7v9Ig5zzMvV5bCw=; b=Vsk6hOIKB9hzwmTIZpsL2rMt0mSfuCuRrlheSq1znTWsa6Oa1u03YKWMtNlczIt3Lf/fzzQpFEieBlTp6P67E/arrSd0wTS+Ndiyz2MIwc+k6T2bb6DgjEY9/wZiJBXEh68zKH3lljbKNakcgJALdEUNQEVG6QZJTN/JwY03JVr9FPoQpboG1/2zZbwSSd47dprUoC3XIthrKC8b2JStt+oOWbLRBYIWzzMPQEI6NOWMe2frbdJunQxtgsbJMp/0i+0hTdufuCHNsnC1B0c1far4a2cSBtlDnRyp9p26B37QQot2gAiZOvz8nSzIygR1wrkO9Mc0dRQ5kWeq+pILGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RWqshuUJt4MwYDZxaRfz3PfeusUa7v9Ig5zzMvV5bCw=; b=Sr8xAEbV5jK8AY/0fSVHC8HhPgWqVQIFKL/WtUIHDPO/2QOl1tqJCPKKIyJZRiMRWn5KPrGKnPcyGtMma1NW/T93moLZIvqZ+/Uqog0K/nUWGBi43ZpOSIWKI8SQz24gTSC09IhdiIF2Xn4nXcAULp9ovpLcds/5VAh/SFJP1oc= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:06:01 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:01 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 15/31] staging: wfx: fix misleading 'rate_id' usage Date: Fri, 10 Sep 2021 18:04:48 +0200 Message-Id: <20210910160504.1794332-16-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:00 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d1a9a9d9-61a4-4a61-339c-08d97474e278 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3044; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 29itTLI6GgbOtsD/NXoYXM09PhwnOZqSFTWPsGoIu57dKbzOX+v4a0OhcVvQX0jiZB8dSvCZ3GZrJIX8MR6EfRU517bH/OZdJ+bvIansF5o2ksdBlwgsFwADMUMfE3WWgPsEPuq3j2ph4fnbZhuJG7wvYNtIGVsCzI+a6eJMC5/DoSvSn80MpuOMcFdQrFll2rDvOBvaUdaFhkIsza6RlfcaI7dsO5aKIvDMlk4XgZUSNhZBdHqAJnh2RkHXMVMs+dS0rakW87WKRwI0CUDau4EyIKRxAgjIu3NJXRye5s/kSExKvP8BTqyrki0ZtPCvYRkC+gSqyKnQ3ueC955qLiGEkGl+i2EcVc11+Aa8VOOWElGfRLNbEUnSmz5GW8bBD3RPT/I2LjCnvN/VCEA2yJTENcsX/Tyzyb9feE+lvjVldVHZEA7s1tHxd+GDRuZd6q1zeDPcYccgqLQiQq4lBW1rDeHLyHblSo3DlG0rAGp+2JVbpvoACuD5srAnYJUYIi4KFWk2x5w0lYxPEEFhSwbkC+RYu6AyjMXER+TlHvLiYMLPrYKMIZHTJI34joPi7OLW7nd508pbOd2fBl6W25aD/YkMCb2Djfr9BPe0oV3/9vvpbZSr1qIkcSrJBf8cY1KaRVXnpDMZkgg/VRcPzg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NxzZhJxg5hEwDIg3RLN3ajgpj?= =?utf-8?q?UHSfZmgYPk1XSYpqIjR9F0YxWKIPOuq6jiplsqcv2lbcckR0Ef/j0Pwf?= =?utf-8?q?0qDmxoZnEWZU+z5hazckIbO/gEwr1P97BIk6qwjJmiyBaHwLof+nBoS9?= =?utf-8?q?8rTYsK+IZ29VVaz/5ds0VklW/BEPn4knPIdO+GQdLxV1TdgR7Ez/0H+C?= =?utf-8?q?IBRv5+djWxGvmg1Q7/6fBlTelHfK38nIOcwMLGXtXJEx6FKWd+/GOpgp?= =?utf-8?q?7eGHGE3VH15v7PdS45rB5RYEQJXT+6iqGjb9J1kDwz/rz6xW4hcqa549?= =?utf-8?q?E4+awAVux1q42ddzWICx/Mjj/b4uo5RcfAIBZXvwRrWB5cBwYqflSKWU?= =?utf-8?q?/Oay1R0/Tk30dsGt64lgObBkTPIY4r58GpVkdgyPu4uO4t3O1kjoHOfk?= =?utf-8?q?dsO2VaZgkCP5wUIxLXgrWFNcg6yVimXWtW5Vx+wpoX7TsfMUo9O6jtfK?= =?utf-8?q?I0jKx3MDvaOfY4BtFeP7kLhC6hg4u9RjXSmWApUFjFKfybcMRbS82ZeM?= =?utf-8?q?t88nCwE2wpb5hx/IOESrablCi/6v9lPeOrFTlo5pmV4o6caQBGormGSW?= =?utf-8?q?6B36Md2WJgwW+uXiYdYUPoPKUlFXwLoyojj8IjqxP12T7XqwH/FDJNJy?= =?utf-8?q?JQ+8nDb/y2Yy72KUQfHLGi8sFnYfbqgP2sjQk9gRIqMARP/hd1yeMfdm?= =?utf-8?q?RI8ZCqsG1qvygSMKhtVg+4JcQiL6ZgVfagENdQuZjO8TpYvH9XOoPUbu?= =?utf-8?q?v97Lu+KgnJCbWoe/cBHYoZSy8EN0AinyvoylP/B2nLO7+FgWcpCtJ18R?= =?utf-8?q?1A0BtpsCEeftmV1dKXVJI1knxZFWpnrWCdLuagbIh6eLXSuNW/fBSVpg?= =?utf-8?q?xstLsRzkSy7Bp1jaXVtMC3XkUKxprBb8nxhvzwnDcXgHEiL0k4w6nFcv?= =?utf-8?q?O6OsuJWESZ4pz0rX6v3LAxvjBdIf+91WcfYQadvOyDtqd5DkKQxXRCsi?= =?utf-8?q?ehjk1YizZonqDyK9kisisyfRceV5EQsB9BvvBivEEBce/i1nKVLLlZQR?= =?utf-8?q?BezCVaf/J6ylWEsJ3XSjOd62IZUW5owEneaKAn2ttoKT43tVx9sBR/de?= =?utf-8?q?bMIaZZXghi6okTcNEuG4MgBjgZgCd5UjxfKTDN+G3zoK51Vh80nbyWQs?= =?utf-8?q?scRA3eOHBlkHNFAmpnpOewOHAMh7sEyT8pMHLldGKxLWQVRDBJJvBsNB?= =?utf-8?q?+f5CMR7hEVP32LD2bh0/x/bjWMn68PHxILDdwMxHGQ1m0vRcBqJc8evk?= =?utf-8?q?RcSRdYzSLxm58ibO/CfJCaaGTRsMMm2X51CIkkez8CXSnogPf4qKScCn?= =?utf-8?q?MX2FndNpCxiXHyw+Y5pttJ5EHt+xFnymwOmIz675wolIh/O4aMUwpLqs?= =?utf-8?q?br4bp35kl/yJXDmzf7w14Cmdu3EufJryITuCkrF?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1a9a9d9-61a4-4a61-339c-08d97474e278 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:01.6791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Aow5JgABJdvunVLqda3t9vgHabx8CiMait8OKd4hDgXPxf6Ll1qFsUuDbLz2JavUhkU1lMf94ocIkS4E1T7ZQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The driver sometime use the term 'rate_id' to identify a retry policy (which is in fact a series of rate IDs). This is misleading. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index 77fb104efdec..caeaf836147f 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -285,15 +285,14 @@ static void wfx_tx_fixup_rates(struct ieee80211_tx_rate *rates) rates[i].flags &= ~IEEE80211_TX_RC_SHORT_GI; } -static u8 wfx_tx_get_rate_id(struct wfx_vif *wvif, - struct ieee80211_tx_info *tx_info) +static u8 wfx_tx_get_retry_policy_id(struct wfx_vif *wvif, + struct ieee80211_tx_info *tx_info) { bool tx_policy_renew = false; - u8 rate_id; + u8 ret; - rate_id = wfx_tx_policy_get(wvif, - tx_info->driver_rates, &tx_policy_renew); - if (rate_id == HIF_TX_RETRY_POLICY_INVALID) + ret = wfx_tx_policy_get(wvif, tx_info->driver_rates, &tx_policy_renew); + if (ret == HIF_TX_RETRY_POLICY_INVALID) dev_warn(wvif->wdev->dev, "unable to get a valid Tx policy"); if (tx_policy_renew) { @@ -301,7 +300,7 @@ static u8 wfx_tx_get_rate_id(struct wfx_vif *wvif, if (!schedule_work(&wvif->tx_policy_upload_work)) wfx_tx_unlock(wvif->wdev); } - return rate_id; + return ret; } static int wfx_tx_get_frame_format(struct ieee80211_tx_info *tx_info) @@ -382,7 +381,7 @@ static int wfx_tx_inner(struct wfx_vif *wvif, struct ieee80211_sta *sta, req->peer_sta_id = wfx_tx_get_link_id(wvif, sta, hdr); // Queue index are inverted between firmware and Linux req->queue_id = 3 - queue_id; - req->retry_policy_index = wfx_tx_get_rate_id(wvif, tx_info); + req->retry_policy_index = wfx_tx_get_retry_policy_id(wvif, tx_info); req->frame_format = wfx_tx_get_frame_format(tx_info); if (tx_info->driver_rates[0].flags & IEEE80211_TX_RC_SHORT_GI) req->short_gi = 1; From patchwork Fri Sep 10 16:04:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42723C433F5 for ; Fri, 10 Sep 2021 16:10:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2BF216121F for ; Fri, 10 Sep 2021 16:10:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231838AbhIJQLs (ORCPT ); Fri, 10 Sep 2021 12:11:48 -0400 Received: from mail-mw2nam10on2058.outbound.protection.outlook.com ([40.107.94.58]:8641 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229629AbhIJQJt (ORCPT ); Fri, 10 Sep 2021 12:09:49 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ga4zDLewJ4yneXwyYasFU9I09KHx5NY7gx7RGX0u2CbZlBDmieFVU6gZevvoorBUak4mElMQMb/8884eAuN8fZFHGfKrgtbIlsfE4qfldzyZPhwkUQzl4+eoK8ehYDHymWhfz9uDCC8FmR+Vu5lDzkjEvmcFBDb+OYshWpMjiTn1lMhOrdguA2dXi92tUo8bYXru1ZFv7mOC1+HS9HhywXG3eJUsBd/rndyryLbSYpxw6O4cCGLxR9V/OlvtMBq7l+T2Qcr9qflrgCRy47+Dj+qiFYH9drnid1Sh4di2Xx4JM6Crtw+lw/TZjFxv51h3hOkq53KEnY9McQwq3pgS/w== 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; bh=dzwEfQZKRI3oV247NU8V2xMOFhCemH5anBJ8Bdc6bfM=; b=F6hWnlSh3wgafy/iPuft07GSKf3JEhUqBl18T2ZdP0g34UQs1261DiRE68Viu/Xqlbn4eC59MJgqQuBcLuT6v9Usg+tLfj7zHji4S52rhAyP7QC+0O2CX7u6vxJ5G7rSgIywIpRTyLN3dvrRh29HBxNJ7AfrnfdfJwVcPVgY3IiijOpgmnquxmpYvDcSbtABAnYIhydXvcb9wEPhoLpQZBKZ7Li4UbgPHhv71l2HSYEW5e5sTSBimKymCREKm22UBm9zKzyDUStoos85yZ19pDIjwDM8Wl0IQENgMZhXLCJy21lB5f+tqKXdHJ/KkTJO8oA6gYPFxRnFyHUJtQqEdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dzwEfQZKRI3oV247NU8V2xMOFhCemH5anBJ8Bdc6bfM=; b=Ds/to1ajkKS+0mJJTzfzCfZH3Fy8Op86R9pT9La03nY6Zjth1vmFbPTiAqpV6Hsrrc/eHPOYt63k8SCppoPbvc19sUY68FwlbhH0ImkPP2RiMuUrhP2V3Bk8HvcvaVZBizTuGfvC1BAGjBqfsK1dyoFLZiCTh6mTDKZQ2WKq76s= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:06:03 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:03 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 16/31] staging: wfx: declare variables at beginning of functions Date: Fri, 10 Sep 2021 18:04:49 +0200 Message-Id: <20210910160504.1794332-17-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 00fd91c0-192a-4e39-9589-08d97474e386 X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cFT1rwuZ8ngpnPpHFcwAUZ487NKAQ12L2WzNqBuV7v/VWMZLqh0W0TXVDXzNdgUqPtFZkp+tTP0fGukzPvPAFO/WMMWzSXKpEHsdHyOht6Z/DaZG3zGygwqW9nThcFPgTMjrUQbn99ydot607eGtWG8mnF01qHdvShAgF5AhaUNLaId/fn8I3mrj48DUu7qs8mn7ltaz6jWn7m0b9fjy25CAsXLKqHIISkthHTDXsFOd+UsBD2S3o24WC0yzRn2HFm2KfAU+ikGZeOiuZkIknkipOu33UBRGHRNCwJ1K+K95wKSER9KE7SrWVNCYT/zValApPeS49PgrlJSx+ieHkA8FT1vbXIDwM5+o24DztBXxMbe4z4LLTKgvC8oS3Ysd60KDsmJ5BXMH1vF3dVCxA3j8yl130Q2iI+rrQPu9vvpCBwiN5uH1MYO6576YJUVLRRFrqGUgQLNsFiFt68F29L84v4lOU4GvIZklswdEldMztJuMymz06V9LLsGcJ26x4i64NeZJ0d54uqkhlYaBVgQbZSdoFAg8jHbKWxVOVWLLVfJ8imz5lHVNgsbniwAfckh6ZV5Gxxduy3oIpKx4N00CvWXBmseeXC4MZ4FJhWUAjHsCgpcfWhOcjLwsELHQJu4zvvvlp2W6LdH0XIYcdg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?2cemBhdcEY/Ct8Rpgn4XpVyyl?= =?utf-8?q?uKAYFrTSKmslxfbLH8rQlvrZtvpmUc8oUmsBmg3t5NDN7KAZZ/OUTTwZ?= =?utf-8?q?vmQVGLLPCprd7auNeJlbsLchFBulJ1RosqBvhGzNuCGp/r16q715Z3zE?= =?utf-8?q?QRd8aUQmClJCvUqfjvi2h0hQbTSTMSPjfw0rgARFyD0IvboH0L6u2hFY?= =?utf-8?q?X7tQCOLfNV1WiGhEdPnxwqt18n6sxo8NH2ta+UtG2EC/lewQ2/Flul5W?= =?utf-8?q?KccJvNI7fqNNtF45IvlbdwMfYcYgmqdQp37tK9ZA/yOgYE4v6s+NQHdq?= =?utf-8?q?J+nRkj3bBAAwCc4q6u2J0OUaIxmFZKCYrPIWqOwB+crGp+BNugQlg4IP?= =?utf-8?q?En8Jfzvk3ptzkzMP3DhUhcPvDFlpWV2hMkzyOsSf13ruyMx7/EGli5tc?= =?utf-8?q?VSZ9XeIM6lgWanaTADDJW8AsgW6aY39/pQzR0CGpcyDIHX0b0mYxbd/n?= =?utf-8?q?LcHjreWL/qh2gAtTf6R+hRwMiFzm5qqeKWB8vxRCbtNbaksjNNUsNHNa?= =?utf-8?q?EjOCCAtFvpHf4Y3PlDmSrIJlZ3ULt9z75Eq3na+gdAEaBnu/Nhd+XliC?= =?utf-8?q?n7T9XFg15AijGpBz2H2syUpUG/BFH+b+FIs3031EgpQFvF/WM+zgacXh?= =?utf-8?q?GTGTcBbaDMOZ05o40XLsN/54Tnr/gpqGN/ki5uQgI+R85fJSZkpO3drg?= =?utf-8?q?DFBs9Onnc38tbpWokc2jvAu/Wf8F6Ue9FUSMVf6kVVXI9E89QmwHtqr3?= =?utf-8?q?qqgF/OQPznswQM+eM8lSpYCbKE2pY7FGNyEnQMmOyzYvOFwFnUu/rVvE?= =?utf-8?q?QPqg02cDFOEH2B7DA7FGhXqx0EyBGBy30McJX1Saq4tuqGqrWKQ++oDb?= =?utf-8?q?YL+/Hmj/OazR15vt1ILu4vcf92+CTN9gPoljCQcmMD9kwYaohIV+uzBA?= =?utf-8?q?OF0fcG+PxRQHGx6BvtXN3mUNSLLIn6QFiz+qbmstAzq1wkvkjZ90ZUIa?= =?utf-8?q?W6r2EwCdjUvqIQrhQzR/a59z5yzXCGC5aic6OdtnTygO58PSfOmFS5/U?= =?utf-8?q?UYYzIqERNfsNx9Ub04ZX4y5af7q8/c51hcj7vHTGLgCqAnbHEY/zXJkz?= =?utf-8?q?kFL74rbMC9TSrPGNOC4Zix8IARqzZ89WL6gBxfnsVczTeGzmvh98t4Dq?= =?utf-8?q?DCu2sZpbw3JUrBB9BRmSmgX/vvSEpbyN4OzCoUjbi3G2bxWLxNejHkDl?= =?utf-8?q?NIXa7AtbHPQyixQ4Vnc3SLnaSKjWmvdy7y/i3aetHQ7A7gPcwipMjAlc?= =?utf-8?q?gmecUmHwj9TzN+VdIGpRl+CBm7hqE1SsnBhkwpXc66Dv9DxpsZGh2adX?= =?utf-8?q?12k8gCDBwFvUnPqFWwrF0ePCYfdflutc5tvqaya+JEmd56XRGrUu8Qya?= =?utf-8?q?/rqYEcxErtBjhGQNHMN37ClE/XqBgKwvF+J/I4N?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00fd91c0-192a-4e39-9589-08d97474e386 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:03.4700 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wmnr0bXXNhBOGZWEfdONLTk8SjSXkD1S4cQdSwIPYPkGD6H3DDcMuo3Q8toa4O2RdTfRq89gz1Q0PdCEUVwyew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller For better code, we prefer to declare all the local variables at beginning of the functions. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index caeaf836147f..00c305f192bb 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -108,6 +108,7 @@ static int wfx_tx_policy_get(struct wfx_vif *wvif, int idx; struct tx_policy_cache *cache = &wvif->tx_policy_cache; struct tx_policy wanted; + struct tx_policy *entry; wfx_tx_policy_build(wvif, &wanted, rates); @@ -121,11 +122,10 @@ static int wfx_tx_policy_get(struct wfx_vif *wvif, if (idx >= 0) { *renew = false; } else { - struct tx_policy *entry; - *renew = true; - /* If policy is not found create a new one - * using the oldest entry in "free" list + /* If policy is not found create a new one using the oldest + * entry in "free" list */ + *renew = true; entry = list_entry(cache->free.prev, struct tx_policy, link); memcpy(entry->rates, wanted.rates, sizeof(entry->rates)); entry->uploaded = false; From patchwork Fri Sep 10 16:04:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509050 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67E9DC433F5 for ; Fri, 10 Sep 2021 16:07:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 365306120E for ; Fri, 10 Sep 2021 16:07:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229970AbhIJQIP (ORCPT ); Fri, 10 Sep 2021 12:08:15 -0400 Received: from mail-dm6nam08on2067.outbound.protection.outlook.com ([40.107.102.67]:47841 "EHLO NAM04-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231781AbhIJQHR (ORCPT ); Fri, 10 Sep 2021 12:07:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XUJYlF9ab3logoViUHlIgmc+n7OvggGLKOWdzIUFvSlCSHjORSlqalFaxFkwE7Y1mtp6yuxNBmGGge3snSMEbUSO26LEPVMR2pGuY5MzXQoTNLAQcaKVqauFfXljNzh1xJmgTnnZtMSxayD5bLwFsq1uZcRUMuxUPIsuBAhoBJ2nOFmdS96iOMyW8sfSQqIlpCjT4NXXHacFCsRcIuWo+Eemw2B0VL6rNug5h6K9mRlvXP10Te06fz0juqZtAjDuC1rpVgRhcDcyCB5Gh/ghdmSDz7E/Y5LVvM9juHqDExPi89X9WNZmpfHZEo6s5ppPv38f7yRuHoj5tyk41MU04g== 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; bh=62Px7Pc9Wfa37Yp8kwwCsox0dv9QXvJNMbI8fHPQiLQ=; b=JSt3/884O+HAPVpZmk02cDBf+dkX8cJpaVYQA13Xg9+AsSHpDQR6cUULVj69V73i8i751A5lIULzfwZZI8bazPmUJaUu8Spxz0FtN0WKagjPiIQVRwbtTpWcTPWrgfIUXXssxiXuK6iJ5jUT20d8sOcvFp96jMwPeZV47JGQsYArD5X1sWQ+i5GT8Kg8M5H+9oHdOCnXsY80DwqH0x8hU9Zsbc0ZC+DvRQjg0vlp9wx8yp/wvRnf52Z1bExhZQnUs5FTcW2458gaOhJewnGIvdqzvh6XT/1WHEaLAeKl7suTFY/fcL8t6qZ1Wd1UZBruDAXKN/GvyhZylnErR+vt/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=62Px7Pc9Wfa37Yp8kwwCsox0dv9QXvJNMbI8fHPQiLQ=; b=bbE79FzZKiQLuCoIz6/GQ1F1ws6s5mi/6qA+bmjIwsjqGzE6w4qm8YWgFRLRkWGyrbJxhG9Dm0ZvM1hhAeUTErfe4+baZedykafh6q4J53qpcW23Z51NNyV0aJZdLwQ2siS7TI5u94cVBsiM/wb2q7GS4DC9zjMKXhJTEdep69E= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA0PR11MB4592.namprd11.prod.outlook.com (2603:10b6:806:98::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:06:05 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:05 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 17/31] staging: wfx: simplify hif_join() Date: Fri, 10 Sep 2021 18:04:50 +0200 Message-Id: <20210910160504.1794332-18-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 87b87beb-d28b-4297-8f1d-08d97474e497 X-MS-TrafficTypeDiagnostic: SA0PR11MB4592: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WC+xBuLWmtV6j0Q2lSSjm7WrPIFyM5w1NOVsx9RKwpfUzDEX8doIQrzdsYEOzOm10qMsyXGhVFNj/cra3hcO8FS6Gr5F4om20PKheCzghtDe1OEVBkO/HWexa+khIY7ZqW8AZh1mNS8ps0rOw/2cTeFoDyY4vsGPthUaIdBVAspX8pGVva/DVg3JTb72pG5A8NE9FZ2IShkWAwmQwxzQA2X9ay7T/r8iMzLCZkd+FjddiNCl+s7Bg0f4oUaesgeKnpyqgfAjdQzE+iIr8dT/bqPSDsVgNpoGyOMTJBhWLWfZUuJsM4PzsiKXsnLfabLgVl/eQjEgrF6gU+J4D59o+0HMvLF9XT6ll0TPNg7pixMnJqkIn8aPyxWQIGLrZkDetUQrxfedG6VkYua6bLFiC8EJ/6rifPjKHKc2hIU+rpkEiplLMpolD0Mxn56ebs2tIVXjfhwIawWgcAPNTcorDsDe2d6yueDKD/TvT1JpnjktBm5IQGJoq1YabK3i/gspNTWi35Kl/XULXPneFvkxFOrYUZ0rz70J4fTatBuZ2fGfTMUbowAp01gXvZnrOeI8g970Xp9t02HGcYDdRlFHvlyKrmOnTAgbFWsj1J7jZYO4i5vFzt/5FLyIzJa2xrBsoM7yYAI/DoNgeDGw856tTg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(2906002)(66556008)(6666004)(66476007)(316002)(66946007)(83380400001)(8676002)(8936002)(36756003)(86362001)(6486002)(107886003)(4744005)(7696005)(52116002)(54906003)(2616005)(5660300002)(4326008)(38100700002)(1076003)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?fyUZRIZLxHBuT7QLRiyCz1QuE?= =?utf-8?q?SJadjHY/m66o5IB5BKPlt5CtU+KXgdNiZTTspSkZVegCZnwY87N7iPIB?= =?utf-8?q?DmyJOLVq89lRDq1KHMlgrc9E9sIR7yRr11D0vgB575gAPg/Ky1qT7Omc?= =?utf-8?q?aSMLq6cIqmHHZ2BeGx6BNWMnaUfIaVpEYqK2C2H4aB9bq0QM0Vxr/f8m?= =?utf-8?q?RnZyO/nw+oQxX5Gr+Q8ER5LaCIeexZDhAbw6KlJYYMx2E6+zPW/hiu7t?= =?utf-8?q?UbGZVpZYkZS0D9Q8l6JHvzGm6QfBDdy5ktYL+GhpT71n3HzdCV9GDsS0?= =?utf-8?q?MvAzqx/yh8rDNZcxo0ZbajQ3lD3uV7JnKCNX4yAYtNfkwPv/h9V1YkIn?= =?utf-8?q?8mCTpj2OgRZy99IAllWilnqzvxJ0kJBAUmysTp4M08pcnSe8WAOas9lM?= =?utf-8?q?GYQthxRWm9i45u/AODOqWIulfHq2bUeAyGpTAnCk/1jkgPwtftJ7OOS4?= =?utf-8?q?D6iUy+TEhxZvKM/xEF4Depjn/DS/ljROpNMmqfGlhRMGIzaiy9unGURm?= =?utf-8?q?GzzKZuhFnwq5Da6BYyALupdjLJcOuuiBtLAmr5kL90W3gjfWTUUE9VPD?= =?utf-8?q?NzHO6rZrFOxjiMthRRFRBFAf9IcBhJDv8v+E71OQKve4KRVSeJQA7KDe?= =?utf-8?q?Loa0i2zEUKHpVvd6B4v4ixv232wjTN72PDkTQY6ipF7slDkMgMQY5zS1?= =?utf-8?q?UfM1JXv3zznrLiNjSwjJLIagMVmVZJxFXaIf/MPHyEWnN5TLI2GycoBO?= =?utf-8?q?Ljwtrwq2dpiWucdxF0dNdzXxWKXEDz7Rl0VOlOwHuOzZ+/xWIseaS6wO?= =?utf-8?q?pXW6MTFL6RedLdw9T6ObV29RUjC1F8aROqd8qyBSZaHMdKHE+ODVc/fa?= =?utf-8?q?Wdgvwg5jBNWFV0hO9bxAl5sP3yC2aUs3h3LjA0u/q+ZAz+bdcZ/35h42?= =?utf-8?q?hRO3E8sQCz1gPJrZs320GeUDwahNhF8nQFtDqKgD/DD+L7TFXcwyFXxR?= =?utf-8?q?NS01SpEdM8e5ANCylYvHhgdyAMSo7rurHYi9N4U7T+FCVN/brMJuzaOs?= =?utf-8?q?ni88GaG/13jDrVDr+bvNgrqAIy70kDxVjy37CHrfSdLlbhgwpfwu9twm?= =?utf-8?q?Cc5aOl9q+lKJLr2pqr3GjMXAM3YoN3lRLrCQzRDmOxY/+FgSlJ4B6RAf?= =?utf-8?q?SHzvpOQqTssi46mW0fEbIA7B9ngtnz4UPJmXPEQpBokq7OxI82fAOYMu?= =?utf-8?q?SRhyLL4RfeHZG8ZxMnZhhzxz/szTQ+PTGnu7eqf3dPcZCALyLz3asPY4?= =?utf-8?q?PmL7HPrAb7rpF/t4cseOyQKhlFflMS64Eu0UPvc7ETZ08QapkDqs5Ynd?= =?utf-8?q?57DvYQVsSc5HVIsb9mupYk0NhEXfBQw//djUWfEivi6lGKNtjQ+oOlYq?= =?utf-8?q?Pz18vt5Q77kOvkYe306zXF7LeBQ1sZyCBDqvqJk?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87b87beb-d28b-4297-8f1d-08d97474e497 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:05.2110 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QTYzA2fyPMwj0kcQJIDMt7l/6duCn4IGQQhSkcdrCCKMs4TG39xB/IYlRvpx/Y3DZmQBSgcI+BVOq745jUgwEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4592 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The new code is smaller. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index 6ffbae32028b..aea0ed55edc6 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx/hif_tx.c @@ -306,10 +306,7 @@ int hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf, return -ENOMEM; body->infrastructure_bss_mode = !conf->ibss_joined; body->short_preamble = conf->use_short_preamble; - if (channel->flags & IEEE80211_CHAN_NO_IR) - body->probe_for_join = 0; - else - body->probe_for_join = 1; + body->probe_for_join = !(channel->flags & IEEE80211_CHAN_NO_IR); body->channel_number = channel->hw_value; body->beacon_interval = cpu_to_le32(conf->beacon_int); body->basic_rate_set = From patchwork Fri Sep 10 16:04:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509047 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAAAFC433F5 for ; Fri, 10 Sep 2021 16:07:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 92F21611F2 for ; Fri, 10 Sep 2021 16:07:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229485AbhIJQIp (ORCPT ); Fri, 10 Sep 2021 12:08:45 -0400 Received: from mail-co1nam11on2063.outbound.protection.outlook.com ([40.107.220.63]:2016 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229477AbhIJQHx (ORCPT ); Fri, 10 Sep 2021 12:07:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Icf1AXE3DlHc/1pQeEd1GP4m4XcXYHEoiN8K9IijZz9ZrQP9dA+BS7lpmu7JXeu/bF+vckCObKBnujQw679mttFC5zJYzLQaQ7aThCfukrrm7K0ghq1SUaT19hPcUe7kNelum+HwF0ftxteWDT5COsSX4nGdwvejKntrq7jtFsyqx7EvrVoFQ7SvFJ8pi4rkWpUJK5MDAMKglcdLD5jijxwNvsT6DyNhXUk1OtXhBY7m+Oh2UcW98fJeLo2gksrcD0TI6y8nTa4I4GOovZHlIfaLrldubwl12/xQxPKdX+hokXI963CsdQV/gOO9U8WzvzHHjZjuZo4f4ywYYQj0oQ== 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; bh=D2RF/Y6vM+Lj63470xCmRdZGPoY4c0kiDfF+JTD4zDA=; b=aNh6eV3UlKxpOssD/6lfX66jnwUpfkM5crp/yjEdfv6c1tZnsOwLlYbll3bGPcz8IPwTOsbYBzXK0s0Rsh/VBqSTecyKhTeimw/H7SYb6jIU/N5mDHWdiP6lZi9kw8f++oWb2vnvAnPu7pC8IOQAxQekWZRnYEc7obXRf8+LbrOOFZsbKVWcfnnvKJl6o2DaYnmQdhbuSJNWIF1A8TpyWn7cf8iTekEh2wIgWHKMk+AnbxPKnV2mLa3Lh2R7zt88RK3pKvD/0zsVWihB4+RYK33NRQqqJx7moNHlgsy+hFCYnW3UiS7JHmhNvIAZ+RB6j3luYSrisZhFv1qS9FpxQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D2RF/Y6vM+Lj63470xCmRdZGPoY4c0kiDfF+JTD4zDA=; b=md+pdWCvXTbadGJaANDVSL8V74RFPUx9KuBDvIlGKnylTpCit8fIN034o6oBaykZMHFHjjlF/m8lHOSsIYR7G8il5AuNYnnj6ZVuPAV1O8yyclsmwks5ca6gw8TIY+FZhdEDjkOfdRhuI7H1qJ1Qjdo3+RUqES9OkYvmZceqK+M= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA0PR11MB4592.namprd11.prod.outlook.com (2603:10b6:806:98::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:06:07 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:07 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 18/31] staging: wfx: reorder function for slightly better eye candy Date: Fri, 10 Sep 2021 18:04:51 +0200 Message-Id: <20210910160504.1794332-19-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ea30b75f-3db9-434e-50f5-08d97474e59e X-MS-TrafficTypeDiagnostic: SA0PR11MB4592: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:483; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M604ZMDTbZzQoR4+okgpQpHe9Z/r18qV3bvyOcwvQHPNpqLTaG3itl6wbIUTJ0ricgOYDy18KiAUVFGT+ZYgKpIeUiqi8WjM+QQ37i+7UcKGzhpkUWpO9wRdAzIME2c5CRQRQzts5l60YtwJ6RWILivlk18OuSR8/cfFD2jvJa/R6OXEtVkmP7eeetk97vBg6DVuUH+bmJJk9tzwS3+AN3QE0kK25yPTBtM2i+KfSZRM37XujBklufRd1zOIne89XO/9Do7J16ef6xGTSI0lNknKaCNgO19I5XkzZumL0rNRFp+MFbDOxyOyzeBoa/rcdSmYlvnWwU0/I7NAH/WbVqxucl9NWLn5pdXWD3cnKYTkEsvMySHO86/RwJfxQQFGNala4ZTGr7xzFGK1w9i43mvCBGUO4iBF5jp3uQe+c9AHzEUhrfQmoicv7E9EK2/SfYGhiQ3NaAN+Z+4Y5cCU2o2lL61pRQ7259Cnvy98eiMhw98+YNPdvd81IzSas7C9KdZBbDA5eQt0mTFi6clPa4NiUeXCHLIIg6ae6FaoU62t8A/9VW4i081EC8fsYS18YHvUlhT8rWOZAvNa0fytF12+GRgfTIIsH9z0KZMBwAKADgwYv4NQw1QBCMQQJAMlkO7wu7b8awagOYXBuLpT/w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(2906002)(66556008)(6666004)(66476007)(316002)(66946007)(83380400001)(8676002)(8936002)(36756003)(86362001)(6486002)(107886003)(7696005)(52116002)(54906003)(2616005)(5660300002)(4326008)(38100700002)(1076003)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?4dS2U36TcbkrMj6PNUfLPhnKJ?= =?utf-8?q?0zUkNTGo7bT2Fyo8HSqqG9DKXjHHP20HrbUyN0Mu9mAuIMxbdfEMhcKM?= =?utf-8?q?DMDLcwgjxGs8sKwIo86oyOniwMfyEivud9Q0WCSR8pj3KCRxCmpprASs?= =?utf-8?q?iMGAf6mwkcKZHMA7/b62rxCYw/L/hE8e7xHCk8quHJHhdSqX6usQD5we?= =?utf-8?q?qkx2VtSrJsHm5NRudcVwsxKsGAEiJWgIar7lmaU8Y3ruHFpc63N0iVYq?= =?utf-8?q?YMqTGBY6Xk5IR64xRePzI2ic4z1MmQF+H6kUdD9cUNNaRNpeMR3+kUMV?= =?utf-8?q?fe4QcPGrcwFu/1NLKwYjILwSqkzIrNur8Agwf6s2ZtEXKkth6BMvq2dB?= =?utf-8?q?lfJxFceTRZgF4uSLb3Wl4ZsIiY/POuiyLYMBjbtPLksNX0FbrPwHWN64?= =?utf-8?q?IY3F/cdusvk9yZXJH9hKjvln3YRLwK/QvOFYcHZueANN+DvhLVpBNtbn?= =?utf-8?q?hSPKBhD60mAqBh7wbYbo9Jiig8iJTF72bG6K4jhkydnWLKKHL8/zdBk3?= =?utf-8?q?/wP0ra0AeKoDQPMGPigTphNBW2jXoS9n+vvbznERZEGC5fW8CgsLvWsR?= =?utf-8?q?dj5QWaymBPBF1e2Bl2moGqbHWeh7KQgxvRbBFGNcfbG+tQfZZ1DIYI2c?= =?utf-8?q?zj4LZ4fk1Lw54bZyA7NyjvWhzUDM7dY2m6TfhGXoVWg0FWT94EgKTSWM?= =?utf-8?q?k6wXWc5aJCjck+nIpIQEjaJvogQLPK7PT65XXedrCc4NIKZTC1wqR2bT?= =?utf-8?q?SmBNmx0Iw0N7vJ9ptlPS9HQgVjZQ4YAG27ExTDjdv+X/+ZOVeeNnIj/f?= =?utf-8?q?/BulsvhIL8W90N5h/kzZ9NMlGJd8ocNyLx8Lg1fApOywZrKyCTgKBQUr?= =?utf-8?q?klMEjDPJm0+yqmhpODh+K3whZO1b0SuGUgSnNgo6+ckYXqJpCatyJK43?= =?utf-8?q?vlvxJERPaHGjCT2YMmFNOuEEHoGF08SkBe6W73ZjikY3Bhw2YD8I3d/u?= =?utf-8?q?GWfRbAn7q4vgHfmRFxbs4a4MnQ/fv09ctg/yzbrXsW+SeIaR6DCZk5A/?= =?utf-8?q?iytY4YYNulddQaEac2Hj37IzHQzKJSAfdzErBHmroArDPxs0HxoBL81g?= =?utf-8?q?FXVftzhnPFN2y++prUL2nrkOptUOzuGHfj2boZFaC61k/w7ipQK8ynJl?= =?utf-8?q?J8lHlu6n5Rr1Z34yWu9ICprR3b/04Tt7nB8u9BtcFviQtLbRkFu74/mZ?= =?utf-8?q?YZ8MA9cW2zblImGz7HLnlCBME7D+uPMf9BdnKEEVsOyU57SN07NhNY2+?= =?utf-8?q?+NC9gYSx+fuwBfMdpoXYU0pI9cnjcbLhUxhF/4liIgh2QCOmCrymIaVC?= =?utf-8?q?1pQATR1eM0uGcxFMJeplGq9iPsnLgh5PyAyQhzQpbw4veGy29QsKJXmA?= =?utf-8?q?gXEQnMOeHEdFI+S9JA/z2ItyvMjQnjeJPHMNz7G?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea30b75f-3db9-434e-50f5-08d97474e59e X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:06.9410 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3uWbEVRdG2UCksarqFQLQsPVZ9dQDfy9uunTP1Pzl0GviYKzyOj2utlh2cZTtz/jWFG3xe0lr/OtwWbRqwuZ+A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4592 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller For a code more eye candy, group all the unconditional assignments together. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index 00c305f192bb..77d69ed73e28 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -376,15 +376,15 @@ static int wfx_tx_inner(struct wfx_vif *wvif, struct ieee80211_sta *sta, req->packet_id |= queue_id << 28; req->fc_offset = offset; - if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM) - req->after_dtim = 1; - req->peer_sta_id = wfx_tx_get_link_id(wvif, sta, hdr); // Queue index are inverted between firmware and Linux req->queue_id = 3 - queue_id; + req->peer_sta_id = wfx_tx_get_link_id(wvif, sta, hdr); req->retry_policy_index = wfx_tx_get_retry_policy_id(wvif, tx_info); req->frame_format = wfx_tx_get_frame_format(tx_info); if (tx_info->driver_rates[0].flags & IEEE80211_TX_RC_SHORT_GI) req->short_gi = 1; + if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM) + req->after_dtim = 1; // Auxiliary operations wfx_tx_queues_put(wvif, skb); From patchwork Fri Sep 10 16:04:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4B63C433EF for ; Fri, 10 Sep 2021 16:07:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8345161205 for ; Fri, 10 Sep 2021 16:07:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231384AbhIJQIU (ORCPT ); Fri, 10 Sep 2021 12:08:20 -0400 Received: from mail-mw2nam10on2058.outbound.protection.outlook.com ([40.107.94.58]:51435 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229901AbhIJQHW (ORCPT ); Fri, 10 Sep 2021 12:07:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JXk0l/+cbK916rKzDkPUUijyaxw3eiUQBG96pZj2TU0PcGcbXvZeT2YV2pR48lXXcdEPuD6gOsCTjwaltB/EY93CXkyToKOXJnPsZfrJlOnDLfOgMrlRXkcgwCOPMBWjDHuGhBAGUW/YNMmKbxrcfPI47CoYlUOZIXkngUdtBBaSU7yHgkeEcEexpz2QlVYXGi3P3lNW4j1BWrSC5e8e5z0REnBe0waSNn32SjoypHDC+8/Oii4HGCmu8q8KdeX+lRnB3nK+HuC0huE5lX1srMi/w5eQ6UojLL7lQP0z8GYDjaZR5K6KmmtuOirNSCJK5UkOSuvbNWBSDZyhisLu3Q== 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; bh=ccofu5gYFbkh8sj5fL3C1VHu04LwhvufW1ukyBAA7xQ=; b=fiiiRQUN5IyNweGlUK6U62eQ7yVLjJDeLE8//wYBxpMCBY12SkE3I8IcPXTaPZ4UTBJH5xkWkNuubZUHUGy0J70Ub3Yy1Z40nKnUtewIVcjX/n6zdGTneHlNiZnY0pOhUjnNq792AslS5eCaN3PYVwnhirL2ELA1Jptn3eJDPrzILZh/kR3RfC5BOmDAt+BM0nbQkO4+RrzuDBVopIF7fFkBUD2SWcubsACkEolUptABWg3MPHhgcU4iCIo94NVV3JW9lLiUO++nCN4irzCxz6E926n+b3OOm8xKxDSvTotVztrUahxl6USo6uWPYzJDQjhzC6nec1QOqVxkzk6jSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ccofu5gYFbkh8sj5fL3C1VHu04LwhvufW1ukyBAA7xQ=; b=CE+zTZxBtATmFgffkCWM4nckwxpwnVjnZAwG5Q2qKBcCdl10iFnoIRmb1wR2EyLEWLqSRIM3ABD8u7nIryk46bNy859zTwo4xqcQ10V5ocXELglU87z4LGF1kewAi35nHD4xlosSnx6LMXmbGyQNMd+aKNBEfVPNWg8JwUP66vw= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:09 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:08 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 19/31] staging: wfx: fix error names Date: Fri, 10 Sep 2021 18:04:52 +0200 Message-Id: <20210910160504.1794332-20-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a973e416-3393-460c-0d21-08d97474e6b9 X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2657; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cye2JE0XjrzFDPf4s+ehb4NLROUvFLx3YpCg7Egf/6C6bGvsxyfXh3x/d4T91DuDp2HWkIu6I1Sh5zOyrFEjn8qOkmwzdtDYzR2+ofV/LO3QGciDeGDowBixCuI8nV9RGsYF/SC7dIvIFwLeq0jqw5lbyiFvxIzp+hQXKz6hf+CVhhS2ns1LFSCkOe7LnnUH3y5olg81HL51Y/gs+iuPSkLTMRJeyUD1XyihfL14LEQftweBKXS077Ip+jg+I1uiFnxuk6qNeg2Iyd3QsfpAkgQU+5fYpgjohCOqyjJpcGcZ5BnKjU/ytWDuIeUKjIGZk4lDwGAs4kjrys61RVIyEB3MzRkkzsIAzSTvrj0/p9s9lenr6QgodOohKI/6ePztGdPfY55e+7uIELOfLHNVT7R34uUjaSyi9NW0Spscp6A2/BK91s/S3wJet0esfc69W+3QHO1Tu3AUKtgtj5Pj//80J5SGwXNrIDvjnko5aTfkm5KI+U7s5CCBsjg/hHexHTu7TuAwDpa0FMxlKHqIEJw0MXIMpCXgY3iaoQl8jXmU9i3wiHQcc18lo6Vier5N0QbfLpBx50e+iola+OBVvWUHyVHh5Yvx28J2bXgQsT2FSUIYXiEAegL9nOcIBbg01Wg2NXc+LzX3R2cb21wZIQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(66574015)(7696005)(4326008)(508600001)(8676002)(4744005)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(2906002)(1076003)(107886003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qTnFzVtwbxbF87rDVchWeE68O?= =?utf-8?q?ysw0pAGH9R0XIpmrZ6uToZYmQXDUnx+meSy2tL9+kg0eTljPdx8qplt6?= =?utf-8?q?T/ONHdbz5VnLVBhjD7b+KnCmi2MR56shoWfehUXl3h9Ra/oWPxsvADdZ?= =?utf-8?q?SgAURwunVrp+KlsEtnnhy8npmJMi9iqa4I0jpyfHSOKoAJsztqaJrztu?= =?utf-8?q?peXgHz5RqdPfwM6XmUSsJse1jPD8Sj/g+GqIs8f7K9MdvVg3LHSSMPe3?= =?utf-8?q?BIvaZijxE5M+GRyDLeT1AJw8z28+tn+28hFtYIzeqzCsdrCmaEAhbw4C?= =?utf-8?q?nQtg1kzcvYw6gH5G+Hj0lYhetFBov1/t8jxjaxnTqIcZmiNhJ7TNfpO0?= =?utf-8?q?TTjhXrSFACAHoTQmS+5S+krU/SNRsLziESkf4Nh3RUg/RX7NH4rS+tfF?= =?utf-8?q?NU3YUd5vt6lY+VfdVWRFW5Sk1qxXzkhNqJoKjkl95UGgCTdL2/o7TXfH?= =?utf-8?q?N07wCqeAmK3r4LbjpgTWxrGzGjQeX9moaov1qVHMH0OS19ebTgY2xSO9?= =?utf-8?q?rcAmQgfKDsW+aU/uZ5SeMmPKIFrdRndMJCzz7Iv8XYTT2uBGDF5gwgha?= =?utf-8?q?iMqufy2si5GDhgimcPOfLLUm7K0yu3CbX4EjKTlBV/OSdNRq08C0aijg?= =?utf-8?q?iMuqiLWk3qJO3e1dDLE9UwNgwpFba9DYyp13T0uFX6emNFjAwIVo+PP+?= =?utf-8?q?kMWRMHENAfnui77H4INfzu6eGt1ewIGrTirA2o+4n3Kz4DwOeV7bsNEc?= =?utf-8?q?++GhI3H3cawRMvJI4o3HtueJpWRni+EpvUSJQgJh3KZH8zhJe1Ku4bhj?= =?utf-8?q?ba1zf3weTD9N1H0Z+2hgmt1myl3PmozEi6+lIdagIBxIMtyeUTUpRS0p?= =?utf-8?q?MezO/oapTzIS/YUXjHhAsJZHIG4DpZU2ocQsjgmCeOCbWkYSxXgG7EKa?= =?utf-8?q?cjYoes+GFmDY9ZDJXkoB/QxUcAnTL65Vf/Mkkz4t9iaRdSz76Jb/eFnm?= =?utf-8?q?xu5Sj5TkfZCQ5CEab11mdHotdxbzXtMedwWvGPbJfAfLQ75RY+3JanmW?= =?utf-8?q?dymeqL6dHYDXZsMRt1dCYtDClHaK9gsYdeasDNZphtdNwkLMjuV597Qk?= =?utf-8?q?I4EQcwKWJzdlEaDe9WQcxo439KBBpZ+gEXW8qNOB7zSimamQgRu45IFb?= =?utf-8?q?atBQLgawtNrtKdZA3KlJC3Jxk0jKgUiRIhQcfjF5JGPoFDdwhdEDACNe?= =?utf-8?q?10VfCHsIYFlliKPwyXH2oIE2L8eQM085UIfINqwd6i3lX1eulmFva2ly?= =?utf-8?q?W4FGAKNnpzBUOw7eRBtYwLYLxBYw0fjOT7JeVoU7O5eonXKq8uD3ApHU?= =?utf-8?q?07RSgpQaQqU/k3Ac/m0MZUunLQt/LkyleWTu6lC2yOVo1sF1pK9Eqy1a?= =?utf-8?q?cLVAul0qcYSAqPlBxJxJ3qWZDp1iG9q20DKI83U?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: a973e416-3393-460c-0d21-08d97474e6b9 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:08.8039 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: k8LOvPSxMsTYPBoRnPk/IJu3R4sDUMYMDCkj3VQ2Jxszukfpj6cS3dpejCAUOfznVXAkCgFSn9LJr9GiCRzyzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller ENOTSUP is an alias of EOPNOTSUPP. However, EOPNOTSUPP is preferred. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 464a67a9b41c..13cb22cf41d7 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -673,7 +673,7 @@ int wfx_ampdu_action(struct ieee80211_hw *hw, return 0; default: // Leave the firmware doing its business for tx aggregation - return -ENOTSUPP; + return -EOPNOTSUPP; } } From patchwork Fri Sep 10 16:04:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509384 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAFBCC433EF for ; Fri, 10 Sep 2021 16:07:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A36B961207 for ; Fri, 10 Sep 2021 16:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbhIJQIX (ORCPT ); Fri, 10 Sep 2021 12:08:23 -0400 Received: from mail-mw2nam10on2088.outbound.protection.outlook.com ([40.107.94.88]:56865 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231580AbhIJQHc (ORCPT ); Fri, 10 Sep 2021 12:07:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XaYD0hZGUnMFLbF3VbM+xr0wc9nDuf4gW/Ln0SQJrtkiejH7e+JlhK4foKE+ljqwIqj6UD6n0vMcNsf2CJz7/+ulsiLkyJIzbsY3hVmNiGOvD+XveRjgcbhsKsiAZFV23ZOFZDmhWGqJsLf+nFL+ZNZwPeYfOoZi4hP8AcFXfkDiG3vTL489g+9xGx/4eyEBuc6XgrKCmtVZF/N5WfQAuSIfGpowsPm+UW7kFO5/nWzlIiMeDiiIvcp6vmCKPbeAPzh7qfzr6iY0TpH7ucGUFsTfJdAqkgyBF/HtUPw1r9As431JUKH2WiCdjka90vL3B7m3X8ULl0X9Kcz2JIe5+g== 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; bh=zepjhr/9IN2TlKMACudigtOtb0JfVXPJtJXaDzy1Q/o=; b=hyv5+bJvyFc0fBvTfCNn18r7d/W7yaFklW5yTZg6GyK1kQ4YdCK2stqce8b53WqA/6flFA+MTOn4XozkE+pc3WkrCGvHW/EWiCEYghuM/eegrmyWYVGL/5N1ePCm9Wip1EWm6MyFB+Hgu45z2yszfPjP+2baF2NLv1WIslDAjlQ8Y9A9A3pVNt65hryPZsug+r8//7Ac/D0psuwRyyI2lXhUEnbrDCEjbJQ6j1+WDKKaSriDCc6YWUql+0g+FNjnw4Znogi2wjVeZMiY92jzsnElsX7SPvSkVbuM9uUbi6PP2sqawE3YZfp4FU9b2G4LFyEBOiS5vPOVj5+MsdzbxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zepjhr/9IN2TlKMACudigtOtb0JfVXPJtJXaDzy1Q/o=; b=nrBsZn+XOqfFx6w1AMXwVXHnFOjaZbdlb+w25iccdUQCurnH1Pvb9BznX/1Swctw4jM67wAhJj0w3WuEd0rpv1s2eouR/ty6sT6KRzvkfvfbD522YY9xct2fYmI8tCSmuYfgHjSo2VMWEhx4OR0X0oyvr/9xdMKlDolngQtZDCQ= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:10 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:10 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 20/31] staging: wfx: apply naming rules in hif_tx_mib.c Date: Fri, 10 Sep 2021 18:04:53 +0200 Message-Id: <20210910160504.1794332-21-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:09 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7f43ec7-29a1-404b-c562-08d97474e7cc X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q+4EO0+UqcX3/JECXAZYDOVHHWJsXqy2wSZmZshWmMQJlSqBE5sydhtKfxZ5YEPpvgm5jZ0l2X3Etrnxw02MBeluSwU3MTvp4Xw/Oy3sE4lSSx6nYNdtgKJlxRlIWsAzSKuzobUKmLprzhsgSu8xsa7fKznM+MOAu+y4LfJYKxKhuQV9hlTzGPjfoAUd4H+Jkv04s45EXns0T5MtiPDnnyNMCgWlwYgyB6VDF2xtih0u9cVX2UbmzcqJAv7ynU7JVZZeloyVdn61iHV+GxR9CsMPSbrWhSz1WqK7nuKbtBBlg4rKwSgfLzqkT0xPcBPbudgwXU13Mk1mEkeRjvq1HrdJaEKVypyu/ivnOxR4vuCoqL8vYHoB84XZmu2ItAfxvE5B7vT98r/W8zdudIOw6qVqN5fPUg7knBTpMAzrlgbezCy1WNMq2R1g1xakyeHmFeA5HFr3C8TxKLtXYDEfXWikSD3/dR7zphH+oqemheidOCgDzEmk1s2ouybVt4rCHDD777h5YmgDrsyzZOZHVf6sXukAhC0Daw6n+vSDxP0pPMPkvrVXMp8BF79oZv1B70u/chyAKhopu/VF219LYY6aJRhaHh05jc1CkNQz5LXxPoGh4u83UI8O4IEFm3UYJHuYPsF296BH2QLicc0qqA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(7696005)(4326008)(508600001)(8676002)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(2906002)(1076003)(107886003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?meuoKhdrwfq1jqgrvQjA9HWcE?= =?utf-8?q?ywWtU7XmjxNDnIvBoD8DUHge96BePAZsL0LXNVk2odmDFoW3IjVUX7G/?= =?utf-8?q?YfWKz3G4d/U5gfAFjIo8K7ZqcjiJzH2BsZ4gsNJwraOi22qtZtpgQlAl?= =?utf-8?q?UunuO5B46FdVV7ZiYGQC7AdmBsEz10tpyn5zJK0lUf7PzyprrEXN5hjn?= =?utf-8?q?lU7iufR6yJB5DwyFly+hQKL/XYCZX4iQEbdoA7FLSBK2CKLvMO6RUIh8?= =?utf-8?q?ETRDOj3Q+NZyH2Lg5yMeYPVzfiJh3xKTxNscRiM9x/I2rKu7SaQXKeZW?= =?utf-8?q?FHI5+BvVjN6h1nwWs8V06hA8llVkWpnH3Cri397aJ1oaupzIDwa+Sy/d?= =?utf-8?q?J2VfcD/uA4D6mDCz+sBUGK5u6flGpPzGrcwTCt0NY1egZKoQV872Vl33?= =?utf-8?q?Aa69kddjFsaxW5V8M1IlxWfpS2OguQlb6AnnMnITGMSRQjQXTolZx1Nw?= =?utf-8?q?hZwREyZxA2+Ztn0f02lsmENw5iGiYUuXumNwddyP3XpE8F8FUqJZZG+X?= =?utf-8?q?4Wn6Da1IhxRg/VBsJeyBb1ah6unkctXA+odZaTu4oZUM3ZlMb9yZ+AvM?= =?utf-8?q?BZHVS/0Dg4WAi3RyGAiO4XCD3Tc7itmj9w06/A0EKa7sEGJL10eDWZAC?= =?utf-8?q?tEPdFs6iL0okMlEunDyjsc2Maaso4QkrS7Ywu3aqSNNB8W9xSXRZ+/7C?= =?utf-8?q?lyYu66NOEHmk/4Be0sf/hdusG6Lv9FY2/Rqi754oQYiaTyKQGrX2n93W?= =?utf-8?q?xyDu9snrzdKRCrrIP3A6iTdvvYJgACviN4hVokPdEO+d8dcm+6qiGexc?= =?utf-8?q?EsKD2Q8jhiu1Gk8IogAZ9UInKOn/X9dU6dUgehKkvDuB0LDCsM84onii?= =?utf-8?q?7AV9bC7zgPwAga22SZZGBMNW/TJSlNEI9K2Rz/VJk4UgbG6ULqxOi5Mi?= =?utf-8?q?EuNTadttJnt18L04fGOoIhETkEq0iScyBcAkpFUPsUazSVtx4yyjcEYX?= =?utf-8?q?5Oz+80UsfDxTnZm8enPSCSybVddE01Ob0xKenNlf83daAi2N7iAZz4+x?= =?utf-8?q?meFHYmYsQYWPw+d6AJ3favfjpw2+FeCdoWLMojeOZmp86CVELfKMPbBF?= =?utf-8?q?OI7jf3jzkHOOFP+qtHM5cF0lIKCiyBtQcvuBSsRWtHEUNA70QGGiUEHJ?= =?utf-8?q?hMF5dvoY7wjNuBVX0ph4METj1OvX3s1HmD/72OvQOwh89LSj6Ve/DIgx?= =?utf-8?q?3qe28Z3OwyhUJWeTM8vIRiDd2DT/H6ajIC9YfKlQ1tR3UpY0F85/vXLM?= =?utf-8?q?QuKnFU0VQrQHWrWjIT1sOc8yO98HZVkRIuEn18HhoenWZAaztwXrzFcL?= =?utf-8?q?7T5HCfPEcmLW5i3+r23Nw9w89A1JKwjZ9R/H/jyI07aWI246in8CdnXL?= =?utf-8?q?6kE9fNKSzuD4pOse2OgxvG5Vri36KLdcQVnPaEc?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7f43ec7-29a1-404b-c562-08d97474e7cc X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:10.7398 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 69VeO6tneFC7hRdbeInNxrE0uPTZYVsKQQGpZcmJRRD9bfcXBGNc9oH7lKZQ/dvYx0sXWTP1ZVR9PVoNreLQeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller All the functions of hif_tx_mib.c format data to be sent to the hardware. In this file, the struct to be sent is always named 'arg'. Also applies this rule to hif_set_macaddr(). Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx_mib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wfx/hif_tx_mib.c b/drivers/staging/wfx/hif_tx_mib.c index 1926cf1b62be..1900b7fafd9e 100644 --- a/drivers/staging/wfx/hif_tx_mib.c +++ b/drivers/staging/wfx/hif_tx_mib.c @@ -81,12 +81,12 @@ int hif_get_counters_table(struct wfx_dev *wdev, int vif_id, int hif_set_macaddr(struct wfx_vif *wvif, u8 *mac) { - struct hif_mib_mac_address msg = { }; + struct hif_mib_mac_address arg = { }; if (mac) - ether_addr_copy(msg.mac_addr, mac); + ether_addr_copy(arg.mac_addr, mac); return hif_write_mib(wvif->wdev, wvif->id, HIF_MIB_ID_DOT11_MAC_ADDRESS, - &msg, sizeof(msg)); + &arg, sizeof(arg)); } int hif_set_rx_filter(struct wfx_vif *wvif, From patchwork Fri Sep 10 16:04:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509382 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18780C433EF for ; Fri, 10 Sep 2021 16:07:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 04ECF611F2 for ; Fri, 10 Sep 2021 16:07:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbhIJQI7 (ORCPT ); Fri, 10 Sep 2021 12:08:59 -0400 Received: from mail-mw2nam10on2054.outbound.protection.outlook.com ([40.107.94.54]:20975 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229976AbhIJQIC (ORCPT ); Fri, 10 Sep 2021 12:08:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hSW9K4ZFO2+1n2Q/uQ09HkyMFR5qtGP098HD5eQhjhwFe1FnEr/Mrg9pjbtPdou7Ba5bh9eKDPxomTIwAEXKOvg/r+IQ5rpVIMYsEc8m05Wl44qcpaNytk6tWMPl53eQTsTVqdQv3O2QYX0S4h+vxQR5c+KqLS2JiZkoRjiBZxAcwaNDQxlYwxgaQ0z7bZmzTlAqbR2j/OHc1P7yaAP8etxVCrPgA7y2SUFmgwJ8DmQ5CycjZg1D9M8AXxzD5xvF5oTmG5cMlLY2Fu2bj2Y6nMO5m58HFXOECnMirY/h8OQpGLAkCWG1AolpNxsj4GbQYgXAW9jTb6JOW10vYFlRHA== 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; bh=HcjC0x4GRAxwfKkA5UMWXqZtFAOXbrjpXeRYZIftO60=; b=LDgSks/eQaLgc9PH2W5WZX9K4HTkhgE7PYNxIaQTAemgas5dhrcGesshQekvZ1Fa9XRn3WaeuzNIPwiJb2k/IOhKN4yg0tuDt+IM6/mS07Mgf1EkBxPikMcJy44tat1nj4bXqWUP2VvhkGHTWr41fD2lt7iAMagaYoxaFR65Iehy5pW8KpgEbn1qB4amq5H7a7Y2On+4hb36ySOHB2I+xQu5WPyMHnepJaiPPItNsYv1T8PEgcSOLPKhEoZQMZd+RR+bX+U3MySgm1wJUK1M7QVGHsk24vODwvOeBLoVJ46BXaxaIjoH/pKYDNFpVeNX9ee97S6Z4/1lGeGIvcpYIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HcjC0x4GRAxwfKkA5UMWXqZtFAOXbrjpXeRYZIftO60=; b=WjZ/5DFoEt9XSoXJnpV8huwcgqtK/ITV7UhdMZb6jXnsf+uUgPnp5EoQDPddDnkAhY5LxThhjuIwWmNp/w15KF1iMUKsBGiePPrSZH4+3jKMZCijYpC8Tz1Jv2KrZe+FHTHTCGnFswA8Q4CwrjQimEtjNr5Yj6TZlmZL0H6ANcI= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:12 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:12 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 21/31] staging: wfx: remove unused definition Date: Fri, 10 Sep 2021 18:04:54 +0200 Message-Id: <20210910160504.1794332-22-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c51a0f47-e0a8-4b26-70e4-08d97474e91a X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /pcpGlRDFgP5HE63fEUfYE3cjExHAvisG2f6DVJJdt4uhT9ef2N2r2+JPoX46KR3E0oyqC7jYdlqGQ8qiualZ42hyhTclx/PIz+MGRragju80hHThFTeZ6kzJRfcpTee4UeaUFy4nls2IsAwpdoR7k3UFrOxkSjwW3hvfGKcEGYGJkFMzA8sWiVCuEzGR2o8lNs1eF0HqJwnt+N3GzzbMbbH3z2ClgB5jPXsd5k2V/KE51vKt19qXeoQSHQ79EskYgPb7CSY7e3v+7avbYzTdU4zZkcje8d3l47RC3dpgit8Qs+VzTCUw2UeEIMgNzQIj7vqu/RsZN01yhofZ30Z6yO2kFiooQbslj0s7HfxceGDBTmNYyews3y7nvvkPGQUO5qPiQvzCPXdYf2EBx9a6TEOMP7tB630ZNNYvS5jkcKOkjMig1JUDm7NR63oc5uyoQOVsF6fsT+Y/sggD+Ad+8zjkXfgdgfknuBn5h7NQpELixecly+HItMmrWshAHXqUFPkjwzUEKdx8lLd0mwjnk6LprwvDguh+SBT4P9Kjxbg7huu6tk1GBXJmJtSKJqeBw8ybEprhnJEVUdLc3s+ZdSxnfdVlPqyOoGTfauDu/Xj0mshfsRPKw3gNHMLaJ6qmEmfIdX6N3WVnOec0qgGuA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(7696005)(4326008)(508600001)(8676002)(4744005)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(2906002)(1076003)(107886003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?UcbTsEnebssr23kGBn1MMD4wG?= =?utf-8?q?en06/zUW0tVpXZomAVUs4/YD1qP5kV4bT4FACFAv10vGBZ+ELRS8adUM?= =?utf-8?q?aOIjlTazG9TD9i945hJtFFAPe6z6F2qR19m5aT+zgMYsYkosy8mGmFD8?= =?utf-8?q?8exv4ogBFfZ0sD9pmgALMnJVXfvEwAR7Q/xkMlhXq5YBNpt7rMZhfb8p?= =?utf-8?q?PVkZTiWEZ+lcqWD7oeoeQTUwTvVgqdDNYVn34ff+qIyhV4/Vtxr6EKsz?= =?utf-8?q?auZQkwcWIv9jjkBEpW7K5fhN3ikKfjm8GDuLgh8qcaSuHecVcrMWttzb?= =?utf-8?q?r4a//d7f+Pk2K9QaDcLSjot0hYgXDb464F1sk3CWiaRyuajno6Mf+Pwm?= =?utf-8?q?mxX8H8KsZ7gWGaKao1J+RmBPELPua8Kj8xf5URaaUJVsRUcB4qW8PuHh?= =?utf-8?q?3FZthKpTLrkokgLOw7ppMDkUZWBg/9zI63+3PAOFys7vjTTOR2b5yWdF?= =?utf-8?q?5d2pFdX56uKlZBlrvQAFKns1Dl0FVmWoQoaY1MBRTHix6lT0N6OQMWEy?= =?utf-8?q?7mG0y+mmm3sfR8HLEqfhYmp5eHZ1PycReviyF2/Q499Dj8V5WHsY+sYb?= =?utf-8?q?9/2wkC9t/QRQPkMszOOSg4ldb5gOQfQSN0Xlv9SQ8oIYyraySCNAafAs?= =?utf-8?q?TQBZgYLORIRVg85RnEW9r11mfX0kmSb4yb4FH4qfmKuZLjaXOe9G5Xwi?= =?utf-8?q?PSkxNDasHG9LnXBKSPs/L8KyjxiP4WBrUgqdf022/nfU8C40ZgdM92XM?= =?utf-8?q?lPGOYuBJnwwuSyWR7hu6lCpRhTb7BbQnGgnWeF9mfIzlmUWK6lSMHJxD?= =?utf-8?q?OB2oErrrwwfMcpdSBXhkZDkuFH1Q68cx17xjHZ4Rws7k9X0t+i1su8Tk?= =?utf-8?q?7E+m5Z9H5K/nrsJxCXrZu3/yChmVEbzT4tHkfJDwViGTnPbdzBK+WN1L?= =?utf-8?q?jxDrNbGORsFmLHYaF1dDaXjUaBoF1fBUNhYLYQuAWNGGAdUNcu9uii4O?= =?utf-8?q?zfElvuJkcYPZ8bFWPnL0T3XSzou47iyKgYALhMZiNFt9msprzzphAxw+?= =?utf-8?q?i/lqhPwQZv/c2ZPY0wTMxip+VsQn4LmNai4H9onghwKX2Qu4xIJtPCZ9?= =?utf-8?q?9jBC04/sKPId4+CsGM54Bm9NWXHP4Z41g+fsRKznpN45CMFem+6bHVzh?= =?utf-8?q?mlcw0nW6mcPneVxHb+WJXhg4ZUiQsOZxgB1/wO/U9zjL/WPOXHlHVcSk?= =?utf-8?q?Vs4u/4IaFYjqe8yzzChmYwjOnYyTZO2VWaRjTW4gRLrvtcNjGpu9bLrb?= =?utf-8?q?9Z7HUxZxRoNpmrl/8mC1Pm4P+nBbSGcz5fhhxljA8v2wQAnj2xSLuRr0?= =?utf-8?q?bzf0c8okV6/mAoclkMNTMaXbL2HZbL1kmeBqpLuu6fZs/J3LS9ujAS76?= =?utf-8?q?68QYA/weEbJcqQ71l8V2E/buQig0HykdLSoLcst?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: c51a0f47-e0a8-4b26-70e4-08d97474e91a X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:12.7866 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: s1gzUtAqmR9xkUTgQWerU5Bcfb2Wu0FXDsIh75mcZG0plTRbHAGOx6CL6SRZl8yU/LmzYfnprKt1W5Z6ylhhxA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The enum hif_fw_type is never used in the driver. Drop it. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_api_general.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/wfx/hif_api_general.h b/drivers/staging/wfx/hif_api_general.h index 24188945718d..77030cecf134 100644 --- a/drivers/staging/wfx/hif_api_general.h +++ b/drivers/staging/wfx/hif_api_general.h @@ -113,12 +113,6 @@ enum hif_api_rate_index { API_RATE_NUM_ENTRIES = 22 }; -enum hif_fw_type { - HIF_FW_TYPE_ETF = 0x0, - HIF_FW_TYPE_WFM = 0x1, - HIF_FW_TYPE_WSM = 0x2 -}; - struct hif_ind_startup { // As the others, this struct is interpreted as little endian by the // device. However, this struct is also used by the driver. We prefer to From patchwork Fri Sep 10 16:04:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509046 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF94FC433FE for ; Fri, 10 Sep 2021 16:08:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 951FA61205 for ; Fri, 10 Sep 2021 16:08:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233209AbhIJQJM (ORCPT ); Fri, 10 Sep 2021 12:09:12 -0400 Received: from mail-mw2nam10on2058.outbound.protection.outlook.com ([40.107.94.58]:51435 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230010AbhIJQIQ (ORCPT ); Fri, 10 Sep 2021 12:08:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dSq7hpQcsEwT0n7VgGC1GbPIXzirulYpvS7JoIF1S8iW8atmuGZYW6XfuOWwx7JFOBWKfxwTasUVWeP2Fd6xDNtQtCBzRa2z7iQGEGSm6+SdBXsrm64g/zDATOaJG4vBw5XpBOlJffyRxOjJthCeSS9EDgQqsb9C6GNz2EsB+INK7UNzOWwZBu34z0Uh/IPqADciKTdWrFFODwm4QoFaH3kNlHVtSqu5W/hyoam8agzRuuLaLFXaoNPNErdV+EUI5Dw2Mua9jqi1z8qBCdEWusDljpbctnhcRd79GGOccAeP8jh0aRGCD/6lcTRuAI4dIsdAyx6M1DDXdoUTXbdqHA== 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; bh=bDkjZof4E6J1md+k828W5KwU9LtaDDRXypasdbyr1bo=; b=jLdGk0AJDq77llqS7a/TBjNdllPyz9qfRomY/e8MXOFZx3RyDZZ8dy4ylJurtq3Q3V5tiI/8MFV3NA3XRIea3wq3QnoOHf/ADjCeZRj2RK6rNQETQtDkfatdKA8kuBM3pHazT1PL2l75HonE+buGpSysDbHHL4KPF9Uzibs8obAb+4LTas146b4X3GA+ItxpCHiy5EaOCHUvIYRHHR1DBVuADmEet0wlbZmyI9mgXbFcWU6MzkVWhCFfr1n7rghCMuS1I0AySk9ynFspoePtXXJ7fGzNoylRJGOt6kTZdqCb44Ivu0EiYwrQIzx3SSKj1pV2PRsxLJnVEgBzdKw5MA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bDkjZof4E6J1md+k828W5KwU9LtaDDRXypasdbyr1bo=; b=gsLrxpUHFqg2CrYApSab9nFuEtCAmmLYnO2xuEB1O+voI3reLf2wZbdUk/LT3Uk3aNAzBs7sTZmjQiVjuaNk0jsEKKzW895jkaGTmenUnyv1HKPeiQtoipMED6e8fd9dfVMbIe8uODBkOeFKuNctAWnZnYsKJiTFULcVJlcum94= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:14 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:14 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 22/31] staging: wfx: remove useless debug statement Date: Fri, 10 Sep 2021 18:04:55 +0200 Message-Id: <20210910160504.1794332-23-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f5bfbb32-33ef-4e3d-77ea-08d97474ea25 X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cKsiSgGAELKwg1S4iwg+VTRbu8RsSJRqFH6ZNP/0uV4b49k/yjlNkjSqCJnJ27cVX2ra3N1VK93hjWLYt25FlhYlTZRgpxrxJjO9BPmmuCmfhGNG9wPhPLsYfgxpp1iMiq9lVtCJfwiCo0qlQPD73XDEYqZSJF9aUgLvfsif2cw/8cHPtXf5RG6nkpZTPuy4WD5p+YtZffCW49NV6QvXzhaPSpgOckcZUcgvmfSE9eNJz8U5Ip5+vfjHrOkzdNNjf/li7CuzOKBHLaiWk5oSoBijCi2q8sHT0XuwGvnz+wjE6WzTJB3WnY+M3eED23I8fvyVSMfiddBVIoQax6xEcoF9628Zu1U4tII+ZKLgrPdR5Y+ub0sVI3Ml41ZMbm/3KOnPDOIBbavwcH2/7Y8upZuJOKlDKtLBT8AEbG+J9pU9wVROGKxazv2iFY1NaQq8rvtHecIhKqYdZA5h0ir/VWqhN4RTJrJnCAJD/mMhitY3YZw7o4UOeAj115n51z18ESaaTDyaQI0bH5DINxCbMq+dhN6Qj6obwqPw7p0b43z8w29qAoUuVqpRCdUDphxLxtYJOzP7ZZaHYoyQHiJ5ccvLMEVf2aZwWB9AUuNlDpYaUndpvoz0d7qpKjmaAAWaRgAJ3/Hxj2Z4NQrvweVrYg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(66574015)(7696005)(4326008)(508600001)(8676002)(4744005)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(2906002)(1076003)(107886003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?HZnU2iX/my+1e9NNuDexEgu7x?= =?utf-8?q?pl0vM3zTXtXl5UAGg+YoDmT9+aHTzo2n/bjXOw4ouCqbhVsNVnAXUDoG?= =?utf-8?q?OvrcHdToNU9upWGhjhGtwgTrdqk5hi6RtD6m4k5MQfLRruWgVo6Ed+z+?= =?utf-8?q?K3rixY822/rp4AXkP17YtB2RwQKLiieMYv57i4gDUo2zfWY9jwrcbh0G?= =?utf-8?q?FxKKeJYr1R8ibYVUhJLmQx3woZxELWSMksoCYOn1eNcJX8yLt3kV/bC4?= =?utf-8?q?GSdomBN6LPKqZc8ilSSYlg25XRrusXEnNYga07Fbnz3MaXyn8L5+8cQA?= =?utf-8?q?tQnZlS2EzER+zM3E8B01kZ7LP1eFlLhUddB3W6Yg2SzG6oD23hDkvYHQ?= =?utf-8?q?48Hw2f5DCGFdgYsKA8hcBGGXf2qDvB4Jyq9RcH/6mIQDNQPbomBvvJAQ?= =?utf-8?q?VoI3p1gpdD8M7r+86U6BxUt1/PGi1kAr9D7zjwGTI5VFVNOLd9gTbVwj?= =?utf-8?q?XWDOdL3Buhp88zkxls5ZfPswmXJWEQ5qPpiukx/kw8QgBU20tNAVVb3V?= =?utf-8?q?HyfS6isv7jzojsJghxG/OxFh2yX5ztGivIQPXO5cH0wbJjPry3P2TKmH?= =?utf-8?q?Wty7dX/ljQ1R43iEMn+oE30IhPRfJ4l/MynPBK7F79z4Vmeoqr7Dij6a?= =?utf-8?q?MGY2sx1tgBg2c0Vx8LbDz8R/oLCDX3YkfdcWtLw1lBhj9MBxXwAYpK4J?= =?utf-8?q?YURRJ45Wj9rg6sVmDEJGrUoTEDRRxpvJ/6eggHaIMGb55SVMBNif0Yu5?= =?utf-8?q?56HRi5VMDCvV/fser6X5BM7heHdxwjQr+TKaxIGQ+N76pQxhlCRlvbUO?= =?utf-8?q?KWKKJK3Xf/mMNviac+4uwJIpQm9fYL553LeZrHV5r5N8bBprvRynR6n2?= =?utf-8?q?s+p+HGjJaNM774gTK4ODkiui81tYdTR8mwS6RsooVDUILfpsKm76Adwb?= =?utf-8?q?fWRx9cnZLv+VRl4PRMqCYLpaAqrGtJm9GeZzn9puUGXoEyCfsj5+ES+T?= =?utf-8?q?QfMZZhAwnEaF8dvKEOzCiK/3mP9/oca9s5fo7n0yqvDWuGGRmLij7wzs?= =?utf-8?q?l6oerqctD+qY3Pr44e+0rUFIYAAPFzmRG5zmUnkWAxLr3tGZ+VW1Z9aI?= =?utf-8?q?6IVhnM/lYo8xtsj49k642b8KjyAeYVl79BjYY3FE7zNxInIg8oJjBlPd?= =?utf-8?q?3krgXDHUeVeY4buWtA2bbYJR+4KHqobSa+gE+LY0xTDfGZaLAZ/3gows?= =?utf-8?q?joHwTkAho1M3u9wPLQak2BnXyKUaykM2aVjKnQ6ogMM2apsCxBuialBj?= =?utf-8?q?3nL5PgdDZUIOR+ciynMMFzINwxw9QpLK/lGzdZXStqwkDdmvKa2REmt2?= =?utf-8?q?tk0mAnkzapZ9CvyBuboJSCb5tCam9BvmUHTi2Zy/Adc2Xox0Zy1hYrKO?= =?utf-8?q?0XsNeUm/DXbb5ZRa/zXAlORHv3CiWDU56bvB3Xh?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5bfbb32-33ef-4e3d-77ea-08d97474ea25 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:14.5486 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AynfuWgmioOHnIMmoQwP4rWJRDXednZhVNZxu31ki0LA/gofcovRxAPsmW0olG48qV8VqpidWtQ2S8E4rlFaOA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller In the early age, it was unexpected to access a VIF that did not exist. With current code, this happens frequently. Having a trace associated on this event brings absolutely no informations. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/wfx.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h index 56f1e4bb0b57..a8efa25a38ac 100644 --- a/drivers/staging/wfx/wfx.h +++ b/drivers/staging/wfx/wfx.h @@ -99,11 +99,8 @@ static inline struct wfx_vif *wdev_to_wvif(struct wfx_dev *wdev, int vif_id) return NULL; } vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif)); - if (!wdev->vif[vif_id]) { - dev_dbg(wdev->dev, "requesting non-allocated vif: %d\n", - vif_id); + if (!wdev->vif[vif_id]) return NULL; - } return (struct wfx_vif *) wdev->vif[vif_id]->drv_priv; } From patchwork Fri Sep 10 16:04:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509379 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF3E9C433FE for ; Fri, 10 Sep 2021 16:08:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC09961207 for ; Fri, 10 Sep 2021 16:08:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233565AbhIJQJY (ORCPT ); Fri, 10 Sep 2021 12:09:24 -0400 Received: from mail-mw2nam10on2088.outbound.protection.outlook.com ([40.107.94.88]:56865 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230317AbhIJQIV (ORCPT ); Fri, 10 Sep 2021 12:08:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kcf22SSCj054J68B9fJaVxu2hM2NtS0C2IpAlQD/8mSflIHUqdcPORNduziJHIVIPy/5D088ApkqGVgbH16SODvGG3Vrc0VCzrd3qpPmPHyW6ZVNQGRDWQlJgp7xYOZQ7eD86WgSj8EIdGM96LIKt1wK0O8E87VeX2wjDOWudsJexerhqF5sVSOU2TTxgQ6B4XYrq99kB4h/kVXWN9P6wJFbeJ8+0kSdCouKpSA7TIaZDC84IW3aPufOpyiqAsNgY1JocrpZktBt0EuAq7qL7T47w2tNwUVMc/n/JMGaThimPJU/S9nhqjnfhJ6KgMSW3Mlkh3KgKast5cee+yCMTw== 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; bh=rtRjvSlyXDToLuWg9t+Q5N9m2nkpKJd5T4sJtezrxTw=; b=DEv6OuTlUP2ZKUUtYSF/xxkljIM32w5WSe7o3sH2y8pSbMSGkc+odyN9CwKKAS47krlrYeOwGQS6+K6J1zcQjiX/JzirGk2g1o5InUR/GGE91Ds3lqwA0dxK2ExLfNU4hbt/JvRK91vOWhzn7cdFJiZpvVIgrg3EpTsDJgy+YV+gKS0UsNeO62o2q/Jrz6wUjv8boqFWQplO8YOmSGBbF/mOZpdzhABTrlyg3C57nw1P0b5YxtEHPYVzOrqfJIjgs40GWkC/7BFlFehkkFxh0jw/nwvbtmlhm0Gn6H1IzlLafg0YvlrMtpvUfcJGeS6wU4/wFSRmPcsXvDMSJSItsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rtRjvSlyXDToLuWg9t+Q5N9m2nkpKJd5T4sJtezrxTw=; b=Pw0Ebq8SSX9c8ATNeCmEvIkioaN6VSJmQyiVedZenuhPdGRzDK022n2lqTVAtVoVExLp3m4yDUKAksncSFsMWZjszqcWma+AMmS+Bcl9IQqvgIShPaDKk0EX7V+dmehLANnt6Bqlk26EJspXvPrEhEYJuqw82v7RWTZxTvc1QSo= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:16 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:16 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 23/31] staging: wfx: fix space after cast operator Date: Fri, 10 Sep 2021 18:04:56 +0200 Message-Id: <20210910160504.1794332-24-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 345e72c0-4416-4dd6-da6e-08d97474eb67 X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1284; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KBBGZ1EH4CN5/zXikZkQIGb0Xq/Vqg/3ZCcORbl/VTbS+k5xxqxZgGfmoSz52KEm7gy+hDhHLsf2hnOQ8YUnTnfmftY2ZXiSy9wqqOQM6uXAKjgLLJ9GFS9GTYN+L+VtUwDWSvjVrCMnqjooJ2jXsPDg9SEGd33akQKByBX9Q2+FRDPFkQWBSpbVYoKUcN7OEmG9ti7emTKuVgmmK+Tb2p8N43KtPBWO2w/GaoUrIlY910w9110oEp0KXFgngHqFt8tIhRCEb56nxnkzF+wRQ2zm00Y7TSG0XYhf7ESfupL0tAe3Ao41DBXTmPaT7azHDoZYuc/btaxV3pxsWwVnKZAfxjexrQ2bf0MquSSS5MATjS4zLVZY9w4L8ZwuSXCf+8eyiUfKuVJqjR4oEMwcsOvN8VnHMLny+cGmrYgvirZLs19idz+d0qcyIGu3DXa3SCSnMw9RcY0lD4A4cKiIhl64AvggP+U0cyQJZI44jora+Cj1MfI8HusUpoaGxaVV/At9lfIqU5crkzCT9P/zvemq3n1fDvHEnqRfKNh+kfFeU7DJQtewpCpEKaIR4+ZeTxH/Q06A0+r51VV4HY6BGaUEPBc02Hv5c7N6oFBiUSJyHE3GGINy5rXZGGgvMfItdV6E0kY24zm2wk3NJMwtgQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(66574015)(7696005)(4326008)(508600001)(8676002)(4744005)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(2906002)(1076003)(107886003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?MEbH9Fnwmmp4L23bOqlX86OJ0?= =?utf-8?q?bUX8kOeLsnkaBGqwg9n58IfoyZCd2YPUFcFrGjGEB9R7Dfw9VlVP2iFa?= =?utf-8?q?BM61+JPJbP6ns+WfSNsZsK3sDTesmI3jH73qz6nC1PVaxe+xeHMvxrMo?= =?utf-8?q?8tyGqNtZjPG/AQ7KHvq4tNPqFv4VKHin2pneKy8X+aLIKWKADudBehkV?= =?utf-8?q?MStXsrh0nVT4Wz4HuIxzz02C59YkVgkVyR6lqaeBmUQykK+9wWBrbVEL?= =?utf-8?q?VO5sx2kBMFaiitcIP+hrYDTTvi0o8B5oVs2gl8F9oPC7eOPdZp+QJvRf?= =?utf-8?q?F4kB4aTW1Fa9IFqpKPjipfU/3GMQfqW59rCLw886wBlCj3y9GVYNRzfe?= =?utf-8?q?e2sNFbxDV3FqHWIU/tG9Fo8B5vRzoAWkIo6vPr76/uHpdLF6L2GwOGkW?= =?utf-8?q?1OuGYkVltOL52zGehvUe8V97MFrRWZHG5mZy+qU0XK8JnX6zKKel852P?= =?utf-8?q?+d7Hxk64kK9NN8sRFgiusJ3X6QYRGZ7UibWvpAbm/N0CVz4sfmqlQoQm?= =?utf-8?q?ERHBpZjoQ0VJeRqMPDa9xTOEIE+GQKWo/nqu9d8twhWbeEDNkbk2RO5M?= =?utf-8?q?J9Udam3lYsD3HGg12Wp1iJHCg9FwPfbNugD8JG6N2nhlTuJx+7SKKIBb?= =?utf-8?q?LS9l1rsaboffvWdRYBTDFoOBki8GwlIBYbknC3IOd938HCcqAIyYfRta?= =?utf-8?q?GysVdhGxePa4bkHwFNJYlAc0qh4oLTmXOfmibf9Kcctb6vBzPoA9WIvW?= =?utf-8?q?qkBfozdmHFZ/hdMG16KcQsPIl0ogDsJejuMzDVqfIyn4icpPqD4JJvZS?= =?utf-8?q?2foiOhnEMuWvE4K30ykQ68XLzUKH1DfVp/8TM92YuN/wYUkxKkRb62UH?= =?utf-8?q?yOo2pOqlMFQVTICakf3GcpqMpgzMqXzrEObp/fb5CI4hpWZS/AxWMO4f?= =?utf-8?q?f3j+99vrDbbAdHItI9a3SKGcRYLZox+OrwJosIq1AgoUtDja+HUM6Fas?= =?utf-8?q?UPg+hxggACVPBNgyPzPwH1NRH2MjU6zb2gtmesrnVbEX1aDmypD8lWMW?= =?utf-8?q?T1GztYVe8E/31sFAH42GkOkqvw8hE22O2Sw1QxnV1w02OgY455ecyjpD?= =?utf-8?q?WJ9jZJRokbBSAOSeWhfGUkd26FV5HMFqzjacjGlAAwnUbJZSI57bZENe?= =?utf-8?q?wCFUZlQ7QF8jlukr/rcLgnfI5k41KGLSLOs0vpMeKzOt4KRNx69++KLO?= =?utf-8?q?YngJYfvfq6k0MqOluUHM0cII01qyUNXASwLOLNKwphJEShMILc/psIRV?= =?utf-8?q?1ql/wt2BaMGGA5YDMjoERE4Yq0UfZzEDMVM5w5pnN6YmyBceEMOk7FJ2?= =?utf-8?q?tRc671H6Q2R+HG3G5yqnWj8wmiSQoOLJZcjeP8b0qtVJSFxRdoi4CKwy?= =?utf-8?q?meDa6lU9yQcNE3hEJCp6aDd+EMJ9S+KI95YxH6S?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 345e72c0-4416-4dd6-da6e-08d97474eb67 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:16.6614 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LdK9cOmFPGRDKSJaTRCJYCm01fDGMUx7M/klzpWFX9JCWqYRIpid8VnYyN/EH3cVX0y/fTGzdK44f75ZdJZQQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller checkpatch.pl reports that cast operators should not been followed by a space. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/wfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h index a8efa25a38ac..9749602f6cdc 100644 --- a/drivers/staging/wfx/wfx.h +++ b/drivers/staging/wfx/wfx.h @@ -101,7 +101,7 @@ static inline struct wfx_vif *wdev_to_wvif(struct wfx_dev *wdev, int vif_id) vif_id = array_index_nospec(vif_id, ARRAY_SIZE(wdev->vif)); if (!wdev->vif[vif_id]) return NULL; - return (struct wfx_vif *) wdev->vif[vif_id]->drv_priv; + return (struct wfx_vif *)wdev->vif[vif_id]->drv_priv; } static inline struct wfx_vif *wvif_iterate(struct wfx_dev *wdev, From patchwork Fri Sep 10 16:04:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509378 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 569C5C433EF for ; Fri, 10 Sep 2021 16:09:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3C5A461216 for ; Fri, 10 Sep 2021 16:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232137AbhIJQKp (ORCPT ); Fri, 10 Sep 2021 12:10:45 -0400 Received: from mail-mw2nam10on2054.outbound.protection.outlook.com ([40.107.94.54]:20975 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229507AbhIJQIu (ORCPT ); Fri, 10 Sep 2021 12:08:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DrQBluqFkwe6E/l+3goLCelp9PBiyyFqgUh/mdbvz5ia3S7X2ifNXGy1HdoVqPY0rOHoOgS94VCWuvnJ2dVducid5Jsv3YkqXNe6CbXd0xcvrxPmQaEQ1q147yJN23dno9jVQkzzgb+P96/u2noGFOmY5Fi/URoSSS4IJ7QceDWeIEywZ1M+UbYABNgRGB7VH2OO0wxCHnUmYyhX1zvWaYWHBXETSrXqiyzjCzAhAP+etQxPf8FY1BeahwhQsHRI+G2pEQEL9vA14VsehCmY8fRsHfq/LWSUvWWDAH2HuY5r+2rq6RU0A8bidGRfq/eUqOSrUXTewOXJn2Q2Ylp30g== 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; bh=nbVeG5rDy0ysh5pJbelCDEv+6+WiFHvMnmdMkr5uXwk=; b=kQeZQDFOQdCjJL77W+Zdo4Xi5yC9Tf/H+rDAgk48eBqs0b8OqHrF5DPuUzXwRoEYlBGSzzqvfZZUfFm1yAhB1Xq4M42bclisJ2RS00LI/W1Q2bBp0QMKHMSXhKmNfzUSsEL3wGiDI/sxn4m9+6xncdd6582l3/WYTAas16U5QNUW+OJR8jP01Fy9gFn9cWncMGeDx2XItdgWTpbX5FV4dTbdbNAiCw/KkeLkxdNEecxDewy2RLHmzZojiRkaJk1p90aFLSvmvabCfKvhUWLH/BF/R+9r6eLFrxGkFzgK3j+EsBPbcCL7XhToQt10R2iGvxxtFHtRCwaOX6ABIB0DnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nbVeG5rDy0ysh5pJbelCDEv+6+WiFHvMnmdMkr5uXwk=; b=IUIRjoOvW6OmoHQ+0mQ0hS9Mp7IQLkSXM6Y4zZIDZBggO73d2WgZqp3AYEhCQ6E1CD0DrsMhQ4pnjmlC/ThkIde3pR5bkbB55zs6K2B7ube6nqpIpGz7SBIqvfEz+Ybwq/jxrQp8slmI/1RC29Cs2lWq8PSsYGETmrcDipMAurk= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:18 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:18 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 24/31] staging: wfx: remove references to WFxxx in comments Date: Fri, 10 Sep 2021 18:04:57 +0200 Message-Id: <20210910160504.1794332-25-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df4a3661-ff9a-47f1-f734-08d97474ec71 X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TSE1OoCUpy6grfIssn4stxg8zqOLkl6GMVkjtI6fnugV1M9eg66IL9hclBfVX2hARxmsMtBmxEr3VJb3JxlWFv4HZrxTRtUqdxBuxbbsyN8qjzCuMK6bllpV9CxFXA8VA580LaDAnOsBhJ958+VLmvKPs0BHrNDSuJnK6L9fZ9SLyysYp0KcCiHeqROkd4Ty5RdA648JW6HtOoEst5/bcf64HJJzd7byLFG3Mo05LXCbaC2nB2dheixhIKi/nqb8zuc448ATI91fulxHtyw3SzslCL0/ITWbQjowNqcmm1P3QpX4uUekuQd8zM6WdosHAdLKr5p29k6lIXljfTDLlNQp/XH0y1uy1I8+G5n/ULWvcUwETelHwlZCRv45D0T71Vo9mL+BG6ih5s2u/WFYT1VxR00Vpwag+0Q0NSi1w0HxQCDtAVnITiOn9TUEWflN0lgc9gAdR9rvcY8Uu8MyJ8mD4hJpwwtm12e74uvkkRleseFq896jvoC9iJ9Mz3DxjlHqfk4/KTV6sxlhmOn18c7TTIvWgNartadVI3nTgCtwcezBcKP8XBgyatrLPyeI8t+GWpDfbz5/a8qI9sfTX5gN47rYFB7WgvBkEi1nKDTuFmeSflBrE9WpZjVg5noHeY8kPl5QX4yhKVBmLmX/Kg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(66574015)(7696005)(4326008)(508600001)(8676002)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(30864003)(2906002)(1076003)(107886003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?yZ2VuE9FKhFywgKTldN0mJBMT?= =?utf-8?q?ftBgZHA6yO8YeIxdDOqmAlJDEXmym7fHbez7dXvC47rGb7YRCnRM0/qv?= =?utf-8?q?1KSVtDO+bluGi9s4X0RmgiIH+8SedSmMqF3cPfwTvPJACnw+beHDDAOb?= =?utf-8?q?aB8IpR8xDGPGUUDzbtOt+zlcs1BgS0VZuQ3MijjNA5ygr+ZYEjy04d+d?= =?utf-8?q?ehtzL7sm41fXcASZoWRXiDm6l6QzZRahbCUSoNwhICSGM5L00kt2z2vp?= =?utf-8?q?moJ9R7YqcTPlg5llWy9eTPjy1H2864MXFtuOFHT0RkqQ42vVvy35Wm/p?= =?utf-8?q?XXabl0h4zyL5X4FB6iHZ97X8FiocxqF7dzm5wl/grYyuGzoknZXupD2N?= =?utf-8?q?FUAcxUWdjfTVEfsM24RUKxc2Vhdw4Ct2z5Ggg1LU+rwoHDFfTwNbZl/S?= =?utf-8?q?/0K/w/n+oLBkvIxGw+W6KvMPVnZBhFWzIG/xeb5zX/bg97n4BUu9+Zwe?= =?utf-8?q?mMYgILSZD0Fdm1sDYAPjkZPVN4c3ltR6WgwGO1WHg66XkF+G0/tcdq0s?= =?utf-8?q?DVYJB8eWw6AYFyobixVkGnq/XVy5xtFOhSMo3vMriCEaXvdivgPMG6z3?= =?utf-8?q?qIXZDYn6o7478HBawbfCtcxZ172ykgE9AGtMB34x3mlHJNPGBGfOK4dd?= =?utf-8?q?A9IOXro/Tf3Am6zdKjp6j9EE5gPj8aSn3jFNjPAiXqbyF77To0JG12MC?= =?utf-8?q?bM7DQFCsSHUgJJYoF+TVj2T/r0pvNyI4dYl8EVylg0mF14LMxUVcdx8O?= =?utf-8?q?CltCz+vnqZgQvVyVedz70bBGZ6LSayKf0K7bO1pH9xSOl5vY9uWqAaaJ?= =?utf-8?q?HEC/8VLiXJvgz9GJdL6xA1ArYk2MKyqJX6dOWK7AcWuCd9gzkbk5zn2e?= =?utf-8?q?AjD4wHWVQftw42q2xKelOMlsvaOnbMMPcEtzTwVk8blNUIAzj3U50gq6?= =?utf-8?q?nnvtxPgSXVtBpci4OteRgnMqE5h3mFazu6VnNOZCNgQcTDT+O82jlFXX?= =?utf-8?q?RTm+9ys6CXHU+mRaKIrOhRMsWJ8xGOXmYpP4Q30bPvWDkQ9CnGmA7ylt?= =?utf-8?q?LxMAS7sDM/RBE4GBl0wvw1uLt06KSnnyJg8sZoYrrsl2jlfqUGaYKiIC?= =?utf-8?q?rQID+mdYqSQMBPhh7ouMYsEyM30g7NoWty7megdxVcJTywFt07sHo65B?= =?utf-8?q?XMuuV0TeMAA4beEWL4mEPGr7sxyZx5FSH3tYv0nARAXXkdYPNZgfWzY9?= =?utf-8?q?11+Z0+3d+piUhhuL4fYDIAaTt0G8Rodl5ksQVCSkPKTdxi+NmUl8wH8e?= =?utf-8?q?6YxnwDCvTMcfXEJ/m6O6R3rae28lgbOvrbxSULKkS2/wNLEMtypzLyw8?= =?utf-8?q?iq6wRsE6UeFyIcXG+UTFjHN2BVYsKyTR+4NPLvA+eB46IO3ybg87T6Gb?= =?utf-8?q?6yYRvIfgnhMRemIJLy3qn9NgrKagiSC/kt8E1nG?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: df4a3661-ff9a-47f1-f734-08d97474ec71 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:18.5063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wTAYKAKyqlzGLl9OkAHOgBdFScjcDA0oYUdXKz16Xh39e8eUkOJVd14Z9u9dovMPpmtYrtrs80buieb450N69Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The WF200 is the only representative of the WFxxx series and the development of any successor is not expected. So, for clarity, replace occurrences of "WFxxx" with "WF200". Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 4 ++-- drivers/staging/wfx/bus_spi.c | 6 +++--- drivers/staging/wfx/data_tx.c | 4 ++-- drivers/staging/wfx/fwio.c | 4 ++-- drivers/staging/wfx/hif_api_cmd.h | 2 +- drivers/staging/wfx/hif_api_general.h | 2 +- drivers/staging/wfx/hif_api_mib.h | 2 +- drivers/staging/wfx/hif_rx.c | 3 +-- drivers/staging/wfx/hif_rx.h | 3 +-- drivers/staging/wfx/hif_tx.c | 12 +++++------- drivers/staging/wfx/hif_tx.h | 4 ++-- drivers/staging/wfx/hif_tx_mib.c | 2 +- drivers/staging/wfx/hif_tx_mib.h | 2 +- drivers/staging/wfx/main.c | 2 +- drivers/staging/wfx/sta.c | 4 +--- drivers/staging/wfx/sta.h | 2 +- drivers/staging/wfx/wfx.h | 2 +- 17 files changed, 27 insertions(+), 33 deletions(-) diff --git a/drivers/staging/wfx/bh.c b/drivers/staging/wfx/bh.c index ed53d0b45592..78fa81d82517 100644 --- a/drivers/staging/wfx/bh.c +++ b/drivers/staging/wfx/bh.c @@ -72,7 +72,7 @@ static int rx_helper(struct wfx_dev *wdev, size_t read_len, int *is_cnf) int piggyback = 0; WARN(read_len > round_down(0xFFF, 2) * sizeof(u16), - "%s: request exceed WFx capability", __func__); + "%s: request exceed the chip capability", __func__); // Add 2 to take into account piggyback size alloc_len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, read_len + 2); @@ -181,7 +181,7 @@ static void tx_helper(struct wfx_dev *wdev, struct hif_msg *hif) data = hif; WARN(len > wdev->hw_caps.size_inp_ch_buf, - "%s: request exceed WFx capability: %zu > %d\n", __func__, + "%s: request exceed the chip capability: %zu > %d\n", __func__, len, wdev->hw_caps.size_inp_ch_buf); len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, len); ret = wfx_data_write(wdev, data, len); diff --git a/drivers/staging/wfx/bus_spi.c b/drivers/staging/wfx/bus_spi.c index a99125d1a30d..759e085048c3 100644 --- a/drivers/staging/wfx/bus_spi.c +++ b/drivers/staging/wfx/bus_spi.c @@ -39,9 +39,9 @@ struct wfx_spi_priv { }; /* - * WFx chip read data 16bits at time and place them directly into (little - * endian) CPU register. So, chip expect byte order like "B1 B0 B3 B2" (while - * LE is "B0 B1 B2 B3" and BE is "B3 B2 B1 B0") + * The chip reads 16bits of data at time and place them directly into (little + * endian) CPU register. So, the chip expects bytes order to be "B1 B0 B3 B2" + * (while LE is "B0 B1 B2 B3" and BE is "B3 B2 B1 B0") * * A little endian host with bits_per_word == 16 should do the right job * natively. The code below to support big endian host and commonly used SPI diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index 77d69ed73e28..f141ab50f4fd 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -31,8 +31,8 @@ static int wfx_get_hw_rate(struct wfx_dev *wdev, } return rate->idx + 14; } - // WFx only support 2GHz, else band information should be retrieved - // from ieee80211_tx_info + // The device only support 2GHz, else band information should be + // retrieved from ieee80211_tx_info band = wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]; if (rate->idx >= band->n_bitrates) { WARN(1, "wrong rate->idx value: %d", rate->idx); diff --git a/drivers/staging/wfx/fwio.c b/drivers/staging/wfx/fwio.c index 1b8aec02d169..7b91ac615f4a 100644 --- a/drivers/staging/wfx/fwio.c +++ b/drivers/staging/wfx/fwio.c @@ -207,8 +207,8 @@ static int upload_firmware(struct wfx_dev *wdev, const u8 *data, size_t len) if (ret < 0) return ret; - // WFx seems to not support writing 0 in this register during - // first loop + // The device seems to not support writing 0 in this register + // during first loop offs += DNLD_BLOCK_SIZE; ret = sram_reg_write(wdev, WFX_DCA_PUT, offs); if (ret < 0) diff --git a/drivers/staging/wfx/hif_api_cmd.h b/drivers/staging/wfx/hif_api_cmd.h index 58c9bb036011..553dc45142f2 100644 --- a/drivers/staging/wfx/hif_api_cmd.h +++ b/drivers/staging/wfx/hif_api_cmd.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: Apache-2.0 */ /* - * WFx hardware interface definitions + * WF200 hardware interface definitions * * Copyright (c) 2018-2020, Silicon Laboratories Inc. */ diff --git a/drivers/staging/wfx/hif_api_general.h b/drivers/staging/wfx/hif_api_general.h index 77030cecf134..714e1dd808e6 100644 --- a/drivers/staging/wfx/hif_api_general.h +++ b/drivers/staging/wfx/hif_api_general.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: Apache-2.0 */ /* - * WFx hardware interface definitions + * WF200 hardware interface definitions * * Copyright (c) 2018-2020, Silicon Laboratories Inc. */ diff --git a/drivers/staging/wfx/hif_api_mib.h b/drivers/staging/wfx/hif_api_mib.h index 2a741a37a90c..b76f19224b5a 100644 --- a/drivers/staging/wfx/hif_api_mib.h +++ b/drivers/staging/wfx/hif_api_mib.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: Apache-2.0 */ /* - * WFx hardware interface definitions + * WF200 hardware interface definitions * * Copyright (c) 2018-2020, Silicon Laboratories Inc. */ diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index a60c4a4ba935..fcfd5ccc9f01 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx/hif_rx.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Implementation of chip-to-host event (aka indications) of WFxxx Split Mac - * (WSM) API. + * Handling of the chip-to-host events (aka indications) of the hardware API. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/hif_rx.h b/drivers/staging/wfx/hif_rx.h index f07c10c8c6bd..96543b81fa77 100644 --- a/drivers/staging/wfx/hif_rx.h +++ b/drivers/staging/wfx/hif_rx.h @@ -1,7 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Implementation of chip-to-host event (aka indications) of WFxxx Split Mac - * (WSM) API. + * Handling of the chip-to-host events (aka indications) of the hardware API. * * Copyright (c) 2017-2019, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index aea0ed55edc6..97da82b5441f 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx/hif_tx.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Implementation of host-to-chip commands (aka request/confirmation) of WFxxx - * Split Mac (WSM) API. + * Implementation of the host-to-chip commands (aka request/confirmation) of the + * hardware API. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson @@ -28,7 +28,7 @@ static void wfx_fill_header(struct hif_msg *hif, int if_id, if (if_id == -1) if_id = 2; - WARN(cmd > 0x3f, "invalid WSM command %#.2x", cmd); + WARN(cmd > 0x3f, "invalid hardware command %#.2x", cmd); WARN(size > 0xFFF, "requested buffer is too large: %zu bytes", size); WARN(if_id > 0x3, "invalid interface ID %d", if_id); @@ -108,12 +108,10 @@ int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, mib_sep = "/"; } if (ret < 0) - dev_err(wdev->dev, - "WSM request %s%s%s (%#.2x) on vif %d returned error %d\n", + dev_err(wdev->dev, "hardware request %s%s%s (%#.2x) on vif %d returned error %d\n", get_hif_name(cmd), mib_sep, mib_name, cmd, vif, ret); if (ret > 0) - dev_warn(wdev->dev, - "WSM request %s%s%s (%#.2x) on vif %d returned status %d\n", + dev_warn(wdev->dev, "hardware request %s%s%s (%#.2x) on vif %d returned status %d\n", get_hif_name(cmd), mib_sep, mib_name, cmd, vif, ret); return ret; diff --git a/drivers/staging/wfx/hif_tx.h b/drivers/staging/wfx/hif_tx.h index 46eed6cfa247..e57eabdcfa77 100644 --- a/drivers/staging/wfx/hif_tx.h +++ b/drivers/staging/wfx/hif_tx.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Implementation of host-to-chip commands (aka request/confirmation) of WFxxx - * Split Mac (WSM) API. + * Implementation of the host-to-chip commands (aka request/confirmation) of the + * hardware API. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/hif_tx_mib.c b/drivers/staging/wfx/hif_tx_mib.c index 1900b7fafd9e..c745271944e9 100644 --- a/drivers/staging/wfx/hif_tx_mib.c +++ b/drivers/staging/wfx/hif_tx_mib.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Implementation of host-to-chip MIBs of WFxxx Split Mac (WSM) API. + * Implementation of the host-to-chip MIBs of the hardware API. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/hif_tx_mib.h b/drivers/staging/wfx/hif_tx_mib.h index 812b3ba0f00e..2a3b84868ee4 100644 --- a/drivers/staging/wfx/hif_tx_mib.h +++ b/drivers/staging/wfx/hif_tx_mib.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Implementation of host-to-chip MIBs of WFxxx Split Mac (WSM) API. + * Implementation of the host-to-chip MIBs of the hardware API. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index b790d8573de6..3642d4ebb018 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -35,7 +35,7 @@ #define WFX_PDS_MAX_SIZE 1500 -MODULE_DESCRIPTION("Silicon Labs 802.11 Wireless LAN driver for WFx"); +MODULE_DESCRIPTION("Silicon Labs 802.11 Wireless LAN driver for WF200"); MODULE_AUTHOR("Jérôme Pouiller "); MODULE_LICENSE("GPL"); diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 13cb22cf41d7..d64476b48881 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -24,7 +24,7 @@ u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates) { int i; u32 ret = 0; - // WFx only support 2GHz + // The device only supports 2GHz struct ieee80211_supported_band *sband = wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]; for (i = 0; i < sband->n_bitrates; i++) { @@ -242,8 +242,6 @@ int wfx_set_rts_threshold(struct ieee80211_hw *hw, u32 value) return 0; } -/* WSM callbacks */ - void wfx_event_report_rssi(struct wfx_vif *wvif, u8 raw_rcpi_rssi) { /* RSSI: signed Q8.0, RCPI: unsigned Q7.1 diff --git a/drivers/staging/wfx/sta.h b/drivers/staging/wfx/sta.h index d7b5df5ea4e6..056ed5267aba 100644 --- a/drivers/staging/wfx/sta.h +++ b/drivers/staging/wfx/sta.h @@ -59,7 +59,7 @@ void wfx_unassign_vif_chanctx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_chanctx_conf *conf); -// WSM Callbacks +// Hardware API Callbacks void wfx_cooling_timeout_work(struct work_struct *work); void wfx_suspend_hot_dev(struct wfx_dev *wdev, enum sta_notify_cmd cmd); void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd cmd); diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h index 9749602f6cdc..5637f9af79c0 100644 --- a/drivers/staging/wfx/wfx.h +++ b/drivers/staging/wfx/wfx.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Common private data for Silicon Labs WFx chips. + * Common private data. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson From patchwork Fri Sep 10 16:04:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509376 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5547C433EF for ; Fri, 10 Sep 2021 16:10:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A6BD6121F for ; Fri, 10 Sep 2021 16:10:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232915AbhIJQLM (ORCPT ); Fri, 10 Sep 2021 12:11:12 -0400 Received: from mail-mw2nam10on2058.outbound.protection.outlook.com ([40.107.94.58]:51435 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229849AbhIJQJH (ORCPT ); Fri, 10 Sep 2021 12:09:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VUpkp0Z3hwcwnNdL1iLtx5uV/NfM6TqU8FsBNE95fuLNwxGxk1BRjOD4E9QsTRURXentFA8dFhVdtVCuymnDouHlWaB6gqlqccwSEesC3BKs9QtE1MglR7FTXBKzw3HIAHjzsdf024eNnd+n/+D5q2kQrMZ0Fq/nl64p3aqNvergCLjDy3Jrf76uBk/nxUM+qhmFpnskX6Be7nur2WF6hd/yBsdW3d8LMbL/Am6F5B6vIpQBk6Q66Ts3xZFTUbBS8WtMNJM/5eTnLdQInAomxTrlc2JPPJvYe0noxZkyyVR1dipzlA1er/8lW1S9kBUVWxp1E4scc6LZ77/2AmHHTA== 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; bh=ji/Ro3T4EFvudESNOp7gumDhL+e49DGbfmq68yR81Dw=; b=a9C5AikmFidLtnQER7lw/0SOtUVmRpGxvb5uc0MtESoNCTUyc4jPllHB8QB8ZJo79XlmOXiCtCpHa9dFKv7APa6WHkcbmDKw0RBvFGUAgLugH+FRclt31wJq0WntYrHhOnqQGGvE7GGFaGmsUts3O+kqOJ1wYQZ6qMAZo1ZI4K3g/Z/1CbfTDvs2KqvpSvcjEcQyiCt4yb+VWq/graA/5MGN0XzIyfMv2RgFoa5Flqv6/NYrWOD0t9cS3+e9OlQgk7Qqod9DlhWY8ZLWvRzngvKONvRoaiFry6ejG8oPZtlVsmJf0ijisXb25/teOLoodXhmaTsZvKwIq+sXGfX1Fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ji/Ro3T4EFvudESNOp7gumDhL+e49DGbfmq68yR81Dw=; b=c1ZhyuZdl/pXHM6kjYNIHcbbpo+LAMuv7VYvTzrSBCUOI+CFffhxcCsUgpgFbkOvKvf9cYrT1aaWKCA6Q5svGwOS64DhZZnbPm9VJnqQT/H1IruddF932j4UHGQTmAkuHvywZnDZgIp3aOSK/Qsi/du31RV1poa7On2rvewVU1A= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:20 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:20 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 25/31] staging: wfx: update files descriptions Date: Fri, 10 Sep 2021 18:04:58 +0200 Message-Id: <20210910160504.1794332-26-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d28e7f2d-f519-45c3-c91d-08d97474ed8b X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xyV4CcTd4nzXgX4Cy/791jXW/2CZ93J0UDNbYCZ9Dw5dh2g8oFIbCnFQ5QPvB9D19bYjuXF+KlpBpIGA4lWJ/4x93VKoPGa2IfS2lLkS6h+5jpPiZsCYqXyNDaCrV/MkjcNaGGK/uD3yG1ILLzDUkQKO7eHPaGrZTHzFpwtRdcX+FVlntNJuxzBwY5rH8iTTqV+HMZFN8J08TR8nA9VuSOLtYJUfd64ocbRhjsFGYNvOps8IchA+s5RKMeWB6pG7L5mVcNkYjMxKWrwXcigNL1+5wIdZcuLp7jRRqZSgiYxPOTIqWHG0xZoqrrZaMS0M/ToRGC5lmSW+nwVFiGfBMtz0mEgGWpYO73vTOK9L0gJlMXNC/bE+o2d7ER+Qq0SEDqsVZWKdmJfQhUvw40yWmLnm4UIcq4tTZuoPvAafB2YL9ULdZZUTgn5vpjPh0o2/qw46UZFtM1EWHMk6Oa5ZCOB4vuMtpoC7dOPtAqlojuUpFhZezxkZeGwbacJP5nOxJB4spwDC41ATdNL2HC6ko7dFTTFr/A8ROdV21psG8KNZ1HdxvlsjoIMq/YTchlhY7wW7pNcJ+hkPDXMa1KSYQoxM9mVASE4z4cCNxeXtqsH3vLOnwA25t1ecG82b/MzsBx3Lbt9tuDpQTEXJpzTLOg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(7696005)(4326008)(508600001)(8676002)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(2906002)(1076003)(107886003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?crXSRvAndV3j78J3ChN6z1vhf?= =?utf-8?q?OpC3cU3LQNMFwLUzUsnUPUKZVeXxTBQs8g7AeHVM/HNK+U/HPdwzapIC?= =?utf-8?q?rRzDRkyZOJbGaXWJV32h56zJW0LlRrO+mqLG5ouCSCG9ErhNMdq6geJI?= =?utf-8?q?RMz65z59uKkGIgrPwH20ac7boWsr38O5SSEC7tx18jy295rykZEouj3/?= =?utf-8?q?611kvS1lTARYnp+UVsOxbbClf8QCBhwm2VQQoowU5S8+kYAbu6x7HZjE?= =?utf-8?q?tyXo+9hPZe84cFgzNtGVupT0d0XMX0y2WuKWJyORZhhjCfPqxg916MCA?= =?utf-8?q?0CrJEpy/OGg00QoQCovVL3Rm/uwDe23bRTvhCrzo2Lj3qdV+ALokyI/f?= =?utf-8?q?/h4+d/i5lGTqTIT90r68aHosd4FCCNxrtN0SrXjdyvuUXzs7htrx5C/F?= =?utf-8?q?CcnKWadED6gXwTeUqfQylXoCoi1vSJAHucYqpbiu8Fch3OQxoTVpyNt9?= =?utf-8?q?W2pCFLe/KWIQ93sQgmjknU8BQDvdr+3l/TC3zCnRQXMTuutkqL60V5FY?= =?utf-8?q?aFg98u1ECYuU7s58XyEjLV9jLIMzziV687L846brFV0yCJg2LCjG61qS?= =?utf-8?q?OivuDdb/NSwR2rTicZ9jh3iyyESPy/+E0YI1dZMCEuHE8q9+V8dzmzT3?= =?utf-8?q?7Ofl9uqzcYgnLSuo7frECmQAc179m79mlOnD+wISZxzhyp4u6D8V8mUS?= =?utf-8?q?we569R5IciNkANvUkOh7LZ6DSfn+wbpvTnLiNgklU674/NOMzV0SiDws?= =?utf-8?q?UHrJKW1aCF9nd0mV/1yCibK4UEBRaDMSDJc6jTm0WZKbnFQTaYjS8nox?= =?utf-8?q?KfXNugJGre/bORAdNteGvVlUx1oU1FYkjHPFaWDH9bBvh6gQFoAZ7Ep1?= =?utf-8?q?F9sZgyAkU8TDcXLv7I0sB37Z7rz3D7kYht4NzztdMJwcCDYp92L6dngX?= =?utf-8?q?rCRr/Cu7o6aLb+Sc1bGdLzGnj+vs/B8hrgHFpVSvJ62I1ML1+z2VRsCe?= =?utf-8?q?/0uHVaaZxVIiQT5sFvKBNcLbqU+uk8iE1N9ERfBsunllFn/n+KKc3oNk?= =?utf-8?q?i95Tps8MJ0U3L2J4QDZRWCDh8de98brtEAAnJbpc1lu/CGaE+TUTSHOf?= =?utf-8?q?9X474CXCl93GuWvtBa4ykEaVCkuhd21D9TH/qzN/wohJZ9r3h2E7QAbi?= =?utf-8?q?0BivyqW0FWjkb6inukX38Pu6wrHGll/ZtMLqEafk+vatvXJu/uxtrDet?= =?utf-8?q?HvECRYnnSU7yDr/2DA5Xz0iC47JQ7iWcZwk2uXGdBYDyfKUhIJv/PrNK?= =?utf-8?q?77IhSqq9l7PDjgKIvO6FgAx7FoE7qGTy2P5OsmS4u6GIyEAU90g4W9YH?= =?utf-8?q?BaWQsXHP13exMWUtfv/PaCZctwjBfpLSyE8IyNYWiG/i8g0ieO9sf2S+?= =?utf-8?q?HwEBKQtuRAMTRmCsbBzmq+y95Yat07UcQ9HYmW/?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d28e7f2d-f519-45c3-c91d-08d97474ed8b X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:20.2294 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6TsVc875sq4mAIlQ9O9znv6bESKCMRYtMnEXqf0pMl7E+1YM2xgn++jn16GrUmtE5hivelTJRnO63SF3KNK9Aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Each file of the driver contains a short description of its purpose. These description were a bit outdated. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.h | 2 +- drivers/staging/wfx/data_rx.c | 2 +- drivers/staging/wfx/data_rx.h | 2 +- drivers/staging/wfx/data_tx.c | 2 +- drivers/staging/wfx/data_tx.h | 2 +- drivers/staging/wfx/hwio.h | 2 +- drivers/staging/wfx/key.h | 2 +- drivers/staging/wfx/queue.c | 2 +- drivers/staging/wfx/queue.h | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/wfx/bh.h b/drivers/staging/wfx/bh.h index 78c49329e22a..f08c62ed039c 100644 --- a/drivers/staging/wfx/bh.h +++ b/drivers/staging/wfx/bh.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Interrupt bottom half. + * Interrupt bottom half (BH). * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/data_rx.c b/drivers/staging/wfx/data_rx.c index 385f2d42a0e2..509f45cdbab9 100644 --- a/drivers/staging/wfx/data_rx.c +++ b/drivers/staging/wfx/data_rx.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Datapath implementation. + * Data receiving implementation. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/data_rx.h b/drivers/staging/wfx/data_rx.h index 4c0da37f2084..f79545c06130 100644 --- a/drivers/staging/wfx/data_rx.h +++ b/drivers/staging/wfx/data_rx.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Datapath implementation. + * Data receiving implementation. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index f141ab50f4fd..04241422edc8 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Datapath implementation. + * Data transmitting implementation. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/data_tx.h b/drivers/staging/wfx/data_tx.h index 401363d6b563..7dcc9132d7cd 100644 --- a/drivers/staging/wfx/data_tx.h +++ b/drivers/staging/wfx/data_tx.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Datapath implementation. + * Data transmitting implementation. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/hwio.h b/drivers/staging/wfx/hwio.h index 0b8e4f7157df..5e43993b14d8 100644 --- a/drivers/staging/wfx/hwio.h +++ b/drivers/staging/wfx/hwio.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Low-level API. + * Low-level I/O functions. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/key.h b/drivers/staging/wfx/key.h index 70a44d0ca35e..dd189788acf1 100644 --- a/drivers/staging/wfx/key.h +++ b/drivers/staging/wfx/key.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Implementation of mac80211 API. + * Key management related functions. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c index 0ab207237d9f..e5e7595565ee 100644 --- a/drivers/staging/wfx/queue.c +++ b/drivers/staging/wfx/queue.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * O(1) TX queue with built-in allocator. + * Queue between the tx operation and the bh workqueue. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson diff --git a/drivers/staging/wfx/queue.h b/drivers/staging/wfx/queue.h index 80ba19455ef3..24b60833864b 100644 --- a/drivers/staging/wfx/queue.h +++ b/drivers/staging/wfx/queue.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * O(1) TX queue with built-in allocator. + * Queue between the tx operation and the bh workqueue. * * Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2010, ST-Ericsson From patchwork Fri Sep 10 16:04:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509040 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 392BFC4332F for ; Fri, 10 Sep 2021 16:10:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22A0B6121D for ; Fri, 10 Sep 2021 16:10:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbhIJQLN (ORCPT ); Fri, 10 Sep 2021 12:11:13 -0400 Received: from mail-mw2nam10on2088.outbound.protection.outlook.com ([40.107.94.88]:56865 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232210AbhIJQJP (ORCPT ); Fri, 10 Sep 2021 12:09:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gtadyz3ujk3Ml2uVZr63mS0bnX4Axf47K95RYZB4Col/z6jd1XOdWnQxF8JG0w6uWsAzW/lnReemj3n1699o4j08aRHYGiLjI3XhRMBkUfARQDQ5S+IlAWbqMvjxBomHw1F2yO7tkORzLyedWE/3MDvWs5KAKYOH82OrAJBXoSSGDKKRE2F9vyU9hglPSOZNjP9DTS4oMafNZ960tn9R8lll4GuATsZVUV17dJ8GfQfLhPfFmPyb4Za0CRRut+MORqXnD+X2qjgFlApkgIjVafLnPShMAVexXLPfnfRmr4au/f6gzsJQewzkBL3LXqoyQrYvK0hgxSY4f2KIoZfIjQ== 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; bh=5yO9jprjZNkhQCYRoSpaN34aTVyTrM/LB8hLxADBD2g=; b=Vaw37k1pgL+gmvlGCsULHfkeaaNY3dB6C+vYAwe3I85EasUlx11eOu09DEaoWThVKlC7oDi7mvraHvFSWEPj5Fj45nM9Iiku0y3MlmjKhHSlk6ZO/zigWLaqZLDyfatUxc+O0BfveGOxqux4SUN8nvhakheyKKN/zEitTX1s0kIpOV7d2JQefWWa4oUxfEy2sSpdBYXyejCbILJ3UtHE2Zl8U4qJhmOckcxAxEOCNUgM0oR8S3OlwSABJRYCl6nD53XMyvSF9XI1dMew5Aw5ci4rrI76ZxpPPWGkRkHswdLauW+/Xr8VNuyX200nRQ9mcEPSlwADfhZE/WBGb8D4KQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5yO9jprjZNkhQCYRoSpaN34aTVyTrM/LB8hLxADBD2g=; b=l/YBThAKrWPwmr8+ZwNnNiCWpHTqRj6rZNGGFoToyGkBF6SNCk71XK8iOsKYChfUoNF/zGZ9KA0iEOHbU8ccV/TN9H9ASXkb0GcZs/zWIpMWy+R+5Gt/dupVmmLciPFhWr0LhY76eRkF/jpJByq4uc2tVAW9o0yYrP0n0PdiMjI= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:22 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:22 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 26/31] staging: wfx: reformat comment Date: Fri, 10 Sep 2021 18:04:59 +0200 Message-Id: <20210910160504.1794332-27-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b4c48ac6-fc56-42fd-b685-08d97474ee90 X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:551; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eHjvsVGC8OXeP8PJO7UhbEOIAVYp9C8BZhN6AfN6ohokhq35Ixosb6fIhGmle5M0iMJyotNHUS7qc+gu+crUE38TLnPiWjSnDlgmC/2pzLlmdGZIzwX0pBPPyy4kavHAQGqPDNc9b91KKO/kGDJPVjCpzVU1440Ycf+UkD/FlQJZ8cJ+7L6bVsmbbL8X2MgsqeoxuXpKbyS/glBz1NZYcatA/cxHcItoIpjiisRYNFY9IdDDMUB3sHMApNl6oHicOrBm0L5FD0J8onWvlBLkNYGGAiLvIz7vF/bmGU/1hW+ar6sNcNT5xjLdqO39N96ldEXtMVLZsSng8b3X9DUjoEMr4ANdbEpOQRzG9mqdsVyJhXDFFR5yvxbv5ydLpfSFa+T5km28PdJ66siid7RS/t2JzEAtZ6eh1aErf5B1vS75m4JsjmyWJ574U4bYnM0JtVleGSGl1CgnR8Ph8hwZajp6CJtT7UBxzUPno8yDIDk71fIGGb3ATxv5LqCk1eX+BIigKlJYSWRijVV/aExJoOAd+E9ONGNC0yqI4xI4veNOkAg8Z9UbhXlsQCwd5K604ttUwIaPY8D3S02T6qvUIFrcpkIPxqI08N43eMtrrnVS36NHZbnffFBb8Gwtc8yQwcmMMdHlIEt+n2NV08xbMg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(66574015)(7696005)(4326008)(508600001)(8676002)(4744005)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(2906002)(1076003)(107886003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rb51MVrnCTh38LOm4sSGTl1J5?= =?utf-8?q?JIIfrtyxai+DPU/e/4NyRGD7MrFimqTehNKb97AF3HZ9dEP5sclU5uZE?= =?utf-8?q?yMsPTqo7KgfFbGjRD5MYI6BQP8T1QXpWQZYjoHBLJ95+XhM4l5t1s3bu?= =?utf-8?q?ZmYMfecR0zi0MkDffwGGBL5+8CaGueE5oijIeFF+osS7aVyMhLmkAVth?= =?utf-8?q?6Rh/EHSzfsiqHiGUX1dF0VmNKnTLQ8ct8kZIRT8+GCvDdLqGLVdqA/wm?= =?utf-8?q?eo5TKxKgJ3lpI5Nj0ltL8jW0kdbEC9M0YUJEkVkpW37XQLD5yMFm9oL9?= =?utf-8?q?cGFtUqIsWk8vrQkaghskv/sEIp3FsdHkLiawP+lx5L0w/9SsPfRSONRr?= =?utf-8?q?bWz8z0XY9ebikQ7ATuUdi0UStX3JYOhKtuYfix1W4xerJRD2Gq4c5dJK?= =?utf-8?q?CqJz/VpZiRlYMsPOBBNmnIaHNsUlfIucUxETjJMI80QQjSEwMtqCCycp?= =?utf-8?q?Ltwa96liCuMtAoFkVafovvJwWD42Mj4qZY7XmCwxMzabd+65K+JUyaML?= =?utf-8?q?/ZSR3w6PkBbR8TdH5IsF+5kPrF9tWEPIgWVot2R7/HKH5EO2ry+GlFBA?= =?utf-8?q?fNvlKFgdaNetG/PJFP0uIE1rmumvrB3/j0Wps7qsMjXheKWQmTJwojui?= =?utf-8?q?dcFPDKtuS/+9wuP1269RMG7IJK4Un5N4AIg43jfzoBVo9mtteTnZbDG6?= =?utf-8?q?sktFP9Lw4sC5XxqQH1FsHrJOaY7c092ijQlkoyvbaG9Qv7BJebtlbTzw?= =?utf-8?q?A5Zfux/LyDN+rBuTRAaqsGaHEny8PHUAsNmSUWHwBYTrgPoOtCMN6Guk?= =?utf-8?q?A1/QY7sfHzLKdnYg8Af7o3O9rA1C6plvewxR3MJWPRHnhAhUj0VcWBrm?= =?utf-8?q?ARMo6g3wQi3HzaNFQZLlmu8aVkcrzB1eHGJYVdJjR2F/QudFMKnwhq6g?= =?utf-8?q?uqC4HsQJoKQdpeD7vCtcwmqGX4NtQvmREGZwCflEf1SC+HmBcRQQTjpd?= =?utf-8?q?gqIQ/LFdcs64iEN/pzXXbPMZpJMxniNBkjdJKTeijmJt1pQsx1Ql2ahZ?= =?utf-8?q?sfLnL145nZIHEIeyA3fQFhkRIwgeHbRWT2nmF21COIHdF9ZikElc57Cd?= =?utf-8?q?JUawQ47K6mzBPvz++dNG6GtOvjitTeLYPep1zLx00D0GSKtiN4wWN/UK?= =?utf-8?q?LM8+sTt8wgJ/WJHrT/iPDrVRdQeMyDedQQNqzHnqaTl49T5K4iV8j0NA?= =?utf-8?q?HA4AygWsRmHU8B5ewbFFSoiVksXRPdD/EB4bwzWK+Qgh8P3Ryhu2SRGS?= =?utf-8?q?6c0F/Zgv/lQ2soyJZTf+dxHAHr4BBvwZbWbzoEDjEbg/SmLDXAX1Dip7?= =?utf-8?q?4UXT+4J7XOFOpqZAVIqGptjUNlTJ9C8beNbQBWMxYEtThrpnGSuFQNQm?= =?utf-8?q?bw1vrz4y7IN9kUBoom6h1eR9L+KPmZeo0jVLuC1?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4c48ac6-fc56-42fd-b685-08d97474ee90 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:21.9514 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nf8YkzUUtfzzl7QM/BpLjwMKUXCbTJwrd6nYRxcPYD9iucJxfnRRNGkU52Z4FKfUO8VaIpzkjHxJF2wCpGFUwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The new comment takes only one line instead of three. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index d64476b48881..0f48dab105e9 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -599,9 +599,7 @@ static int wfx_update_tim(struct wfx_vif *wvif) tim_ptr = skb->data + tim_offset; if (tim_offset && tim_length >= 6) { - /* Ignore DTIM count from mac80211: - * firmware handles DTIM internally. - */ + /* Firmware handles DTIM counter internally */ tim_ptr[2] = 0; /* Set/reset aid0 bit */ From patchwork Fri Sep 10 16:05:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509374 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 245E4C433F5 for ; Fri, 10 Sep 2021 16:10:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EBCA461221 for ; Fri, 10 Sep 2021 16:10:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232020AbhIJQLy (ORCPT ); Fri, 10 Sep 2021 12:11:54 -0400 Received: from mail-bn1nam07on2058.outbound.protection.outlook.com ([40.107.212.58]:45861 "EHLO NAM02-BN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233856AbhIJQJv (ORCPT ); Fri, 10 Sep 2021 12:09:51 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L/skNFDBN1KdqdGwwkkZpFSJFNY80qwovmJx9DZl3RNo1DaG4j9P+l6sPnRtJ3LcNvXOHU16J/9c9NlQAQVmkPdWw7ycs1Ps74sWKsQS4oIJgwQGAYRKgSegMQCsfgjXJD9Xz5anKS0FTaLfC4H9jliePT7qBDc4UQrs1z6GB6R3EKwz+iUCqbtr1kflMmfWucnFkcnNjqNbBlecdVt1zA5M/dq0DArC4vW5zhjcuzXmtQJZSIz0Grv0iEozchmYu3ykUyj1T/whKPvv82TL/MfCcEl1c0VupiBnJOFxbNg6Zi0pu/TkyNFuvKNH85vwLhhbjEI81HA7GJ68jgSkUw== 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; bh=oCDs5eK6eh5i8LQWueh3oJHLaXxgsEestqcBKXRNfek=; b=bCb8hII9fpgS8EqsOyCW04qiYw9+Sj3Nbp1S2itV6a/wuWV1d5Z61x7iRELVaUxmlKFi5yRxQkpqVkxc1NLBeoLYelPl3BPeGZ+EofYWjZgDq6StYf7Xb3scjSubWEMSlgU+IeBnKkg9pr+h+tlyHm/4nzlsHuZy/lbdgyuS8S9uqQT4ZI4Kh3TMt/nUsupseFOd2Qx5JdvWNSJdLryE4TEyqazsHBktA2yE9Ft1Ge/lHi9sP+c9nKQUaX6oUXa5u34K1rU8JzFvl1kr/rbocAzOVNKMlTr37E/y7BPht/6168kgNsdBU3ckLfRXxm+inxjj96+M5irwWBG9qZb1tw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oCDs5eK6eh5i8LQWueh3oJHLaXxgsEestqcBKXRNfek=; b=DeBsN9YmWEn9HGdESfzGT+ebCInGbAOHByZngsfMPUZovOr9GkeY34MoU3O1fPSQeL4WmpqRngmXuPwGzgX6PD9CPrYRg3pxfPyMwEOvCfj5mdYAnnkc8J01ZVswqULWpxdiYWW/ldFcTlf8aNBWmHZQrr/catUbn0P0rFx7mKY= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5002.namprd11.prod.outlook.com (2603:10b6:806:fb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.25; Fri, 10 Sep 2021 16:06:24 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:24 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 27/31] staging: wfx: avoid c99 comments Date: Fri, 10 Sep 2021 18:05:00 +0200 Message-Id: <20210910160504.1794332-28-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 884a83d0-b195-4ac0-190f-08d97474ef96 X-MS-TrafficTypeDiagnostic: SA2PR11MB5002: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ae3aWcbtKOE94p7zdrzWKoy/mdX2whS8jP+dK11KNTQ1RV3VC+rMBJp8vU+f39xJVWMvVd3IwDGGTC3hxo04pIPl4W1tPbgamf0VHmkprRq1PFkP+nXTObmX6uaH1iPS9en8rArrZEKe5wNi4PpMLyLDenCGaDUAX32b4CsmgDsqttMXvzc/0dIR1z/YO2wZr0T5jOyLj7+4YX3RFeDBMOFytMu7dd7pv4J+/w5VtPoVEhvFheAgXnFSDeeBY5nHaiYv9zTMqvbmqE9jexmj3VVFP0zjfgmtkIqgxWsJjImubZFdDQ1KnG8HgO410dv5luvTd6DxzqhdRuQlxzNfzZFdRCNXCUHB8PeZz/Jd3zmz87g6mSQgHyaxs7X7qkvbfi3+8LTI5vrkJrZYZsNp36ZjAOJwF6YRsvDzLOmnC0q0ggmnptBke0/4wKttCgdUAQE9SJhjejckPERL/f3+r8Lqi3TkI9zZgAnzq+W1cr81z4JbjSEdoB2XGYNWy+fpDwfskqqoEFAvD1gvcbF3pHFCYjas55WXcmPZW2ZuemWVISrkODgFCGR2wT7WaDJ8BorwnBjrjn8Ak+lFpJHZeaj58GEDsduG7vbqp+v4wIDTYEThH6Nli62de4RnKNUeYsjYV7ZPq8Pws+WSRD/d9Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(6486002)(52116002)(86362001)(38100700002)(8936002)(186003)(66574015)(7696005)(4326008)(508600001)(8676002)(36756003)(2616005)(6666004)(66556008)(316002)(66476007)(83380400001)(54906003)(66946007)(30864003)(2906002)(1076003)(107886003)(5660300002)(559001)(579004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?y+6vy3DDAdG90u+9kq5h5dwC5?= =?utf-8?q?+1F43gyZlVz7vLEIjgqhAz2c2rgNSnShh9ZVVQxvOK5bc/ScYFBO6deH?= =?utf-8?q?02VE157iE3D0Hs+JHLN++QKMNVpzQA5E+GfYevToeJUwuCLGw42+Goh4?= =?utf-8?q?gClLetJn9u+nIWXrwwdbkvzoUQVuzXNkdwdsn+NMsaqaGx/iJfZAZnvx?= =?utf-8?q?/2wq3GLvncbi2F0eUUxGFOT3Vj7jwrVjtezfYIQbR0T0dfvK5TbWQYC7?= =?utf-8?q?AEEUbv0oMwhtXP1oSY8qO8XpYA2sKPo9vihISYIh+2yWGAb/S/CC5489?= =?utf-8?q?af6FBQyL/5t11nELnG3xhMq0Sa5q91CRpcCUamjZPSq0rQk//wTnQe4R?= =?utf-8?q?SdIt9KiQlK9S7CnIgP8Ag+fVx/e3R+6Ux8QwNCFv9L1DsM+HM/yILN3F?= =?utf-8?q?+y2sMSK8Ig0TpKPFyxl/0BlupUystCnUd6sJsOaK258UJDXcTeIKa8jS?= =?utf-8?q?vB5Vm9Ous7pHbIDX3TO9DROf0elG3qPGJntHn7Kts1jtfZR0nQBFmqNg?= =?utf-8?q?J9c530UV/h1WqgisOd+bLoIkyUd0JSN7tcrXAN9ItTCS9rs5XxrmDCFo?= =?utf-8?q?t6Vrzjb8rmGsVpytUClS2SpIJoA4+XOuqr6gCA/9bBmmggIHbHKW4741?= =?utf-8?q?05pT93N4W9R98vJfhnX5wWRyy1yw1/L50RtCyAZmHciUQlRFW4VGQm3N?= =?utf-8?q?6wniIqyU4Zs17nbEF+K59ihR6HCw8JRiIOm4zAQKhO43KD9xz5DRkm/z?= =?utf-8?q?JzyaKQaAzQG5+c/niLTKYsY03Ve0sWIM4vGYn7iO+5EnRbATlc1yMnxy?= =?utf-8?q?kVI/miqJdPrT5+GqFOun6aHSD/xpkBVy/IktQ0GahHPzxchpOgApKDog?= =?utf-8?q?BgcNkUXItw0nuQWKaBTdTbnAj+o0XjYZyh1oF+yBfix1vXRhWctm4LM1?= =?utf-8?q?rIdDKQq6eiyBFihVayVvAJbh4e/J/lotdLI6/spYgi35Zy1rOoxiLTPl?= =?utf-8?q?z7yCe9BGbXY62+BM01UhAFYYyMCOFG3eBX/EvCG/NOdQWe5YpG3R4RKZ?= =?utf-8?q?jVxkG+2FaqNKABrMoOnOsQoWajsVjMbULHpg0PYEtMtf+prJyQHlrvnf?= =?utf-8?q?yeNrtPjeK7YW1ZJrjqpH4GOwXdAtaj77ORNCJ2eo9OVKTMTOqOENm5yw?= =?utf-8?q?syEGAXGyCSXWxFFSYSRiffT0EZ0wNPmSV13RL5/6WQk4JMLh4Dbbp7PC?= =?utf-8?q?lqiECFlvew00wMO1SltnsD+xSNw7r9rWHlnCzRJmg9uG5oI2IXMl/iVo?= =?utf-8?q?mRoLFrIp+b2/DDo/SZsSysNFGiAGYP76P41Qv12esnE+MeZiSrXSKSlj?= =?utf-8?q?b5o1wgjtYeI0SkoYVhD9Hwmyko1yc/064oMpzxzrp2tKdCprso+ey323?= =?utf-8?q?Jvp6MR1hD3b8mY50rctIikw1yuhNgkhARsNJHep?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 884a83d0-b195-4ac0-190f-08d97474ef96 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:24.0362 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VBOLx+x0Nm09RrfvQdLnM+51HTwQzdPnxhzruJ1pfmdDfGXlAr79ZFumHG4X9Ogzzb6lPl/SmK3ZXiZUg60LhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5002 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The wfx driver is a network driver. C99 comments are prohibited in this part of the kernel. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 18 +++--- drivers/staging/wfx/bus_sdio.c | 8 +-- drivers/staging/wfx/bus_spi.c | 12 ++-- drivers/staging/wfx/data_rx.c | 5 +- drivers/staging/wfx/data_tx.c | 56 +++++++++--------- drivers/staging/wfx/data_tx.h | 2 +- drivers/staging/wfx/debug.c | 12 ++-- drivers/staging/wfx/fwio.c | 23 ++++---- drivers/staging/wfx/hif_api_cmd.h | 12 ++-- drivers/staging/wfx/hif_api_general.h | 17 +++--- drivers/staging/wfx/hif_api_mib.h | 2 +- drivers/staging/wfx/hif_rx.c | 17 +++--- drivers/staging/wfx/hif_tx.c | 32 ++++++----- drivers/staging/wfx/hif_tx_mib.c | 4 +- drivers/staging/wfx/hwio.c | 6 +- drivers/staging/wfx/hwio.h | 16 +++--- drivers/staging/wfx/key.c | 4 +- drivers/staging/wfx/main.c | 13 +++-- drivers/staging/wfx/queue.c | 27 +++++---- drivers/staging/wfx/queue.h | 2 +- drivers/staging/wfx/sta.c | 83 +++++++++++++++------------ drivers/staging/wfx/sta.h | 6 +- drivers/staging/wfx/traces.h | 2 +- drivers/staging/wfx/wfx.h | 2 +- 24 files changed, 206 insertions(+), 175 deletions(-) diff --git a/drivers/staging/wfx/bh.c b/drivers/staging/wfx/bh.c index 78fa81d82517..e2d2a64ce66e 100644 --- a/drivers/staging/wfx/bh.c +++ b/drivers/staging/wfx/bh.c @@ -32,18 +32,20 @@ static void device_wakeup(struct wfx_dev *wdev) } for (;;) { gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 1); - // completion.h does not provide any function to wait - // completion without consume it (a kind of - // wait_for_completion_done_timeout()). So we have to emulate - // it. + /* completion.h does not provide any function to wait + * completion without consume it (a kind of + * wait_for_completion_done_timeout()). So we have to emulate + * it. + */ if (wait_for_completion_timeout(&wdev->hif.ctrl_ready, msecs_to_jiffies(2))) { complete(&wdev->hif.ctrl_ready); return; } else if (max_retry-- > 0) { - // Older firmwares have a race in sleep/wake-up process. - // Redo the process is sufficient to unfreeze the - // chip. + /* Older firmwares have a race in sleep/wake-up process. + * Redo the process is sufficient to unfreeze the + * chip. + */ dev_err(wdev->dev, "timeout while wake up chip\n"); gpiod_set_value_cansleep(wdev->pdata.gpio_wakeup, 0); usleep_range(2000, 2500); @@ -74,7 +76,7 @@ static int rx_helper(struct wfx_dev *wdev, size_t read_len, int *is_cnf) WARN(read_len > round_down(0xFFF, 2) * sizeof(u16), "%s: request exceed the chip capability", __func__); - // Add 2 to take into account piggyback size + /* Add 2 to take into account piggyback size */ alloc_len = wdev->hwbus_ops->align_size(wdev->hwbus_priv, read_len + 2); skb = dev_alloc_skb(alloc_len); if (!skb) diff --git a/drivers/staging/wfx/bus_sdio.c b/drivers/staging/wfx/bus_sdio.c index e06d7e1ebe9c..eb70bef6bd6e 100644 --- a/drivers/staging/wfx/bus_sdio.c +++ b/drivers/staging/wfx/bus_sdio.c @@ -67,7 +67,7 @@ static int wfx_sdio_copy_to_io(void *priv, unsigned int reg_id, /* Use queue mode buffers */ if (reg_id == WFX_REG_IN_OUT_QUEUE) sdio_addr |= bus->buf_id_tx << 7; - // FIXME: discards 'const' qualifier for src + /* FIXME: discards 'const' qualifier for src */ ret = sdio_memcpy_toio(bus->func, sdio_addr, (void *)src, count); if (!ret && reg_id == WFX_REG_IN_OUT_QUEUE) bus->buf_id_tx = (bus->buf_id_tx + 1) % 32; @@ -198,7 +198,7 @@ static int wfx_sdio_probe(struct sdio_func *func, } else { dev_warn(&func->dev, "device is not declared in DT, features will be limited\n"); - // FIXME: ignore VID/PID and only rely on device tree + /* FIXME: ignore VID/PID and only rely on device tree */ // return -ENODEV; } @@ -210,7 +210,7 @@ static int wfx_sdio_probe(struct sdio_func *func, sdio_claim_host(func); ret = sdio_enable_func(func); - // Block of 64 bytes is more efficient than 512B for frame sizes < 4k + /* Block of 64 bytes is more efficient than 512B for frame sizes < 4k */ sdio_set_block_size(func, 64); sdio_release_host(func); if (ret) @@ -251,7 +251,7 @@ static void wfx_sdio_remove(struct sdio_func *func) #define SDIO_DEVICE_ID_SILABS_WF200 0x1000 static const struct sdio_device_id wfx_sdio_ids[] = { { SDIO_DEVICE(SDIO_VENDOR_ID_SILABS, SDIO_DEVICE_ID_SILABS_WF200) }, - // FIXME: ignore VID/PID and only rely on device tree + /* FIXME: ignore VID/PID and only rely on device tree */ // { SDIO_DEVICE(SDIO_ANY_ID, SDIO_ANY_ID) }, { }, }; diff --git a/drivers/staging/wfx/bus_spi.c b/drivers/staging/wfx/bus_spi.c index 759e085048c3..61f73b3ebc80 100644 --- a/drivers/staging/wfx/bus_spi.c +++ b/drivers/staging/wfx/bus_spi.c @@ -86,7 +86,7 @@ static int wfx_spi_copy_to_io(void *priv, unsigned int addr, { struct wfx_spi_priv *bus = priv; u16 regaddr = (addr << 12) | (count / 2); - // FIXME: use a bounce buffer + /* FIXME: use a bounce buffer */ u16 *src16 = (void *)src; int ret, i; struct spi_message m; @@ -104,8 +104,9 @@ static int wfx_spi_copy_to_io(void *priv, unsigned int addr, cpu_to_le16s(®addr); - // Register address and CONFIG content always use 16bit big endian - // ("BADC" order) + /* Register address and CONFIG content always use 16bit big endian + * ("BADC" order) + */ if (bus->need_swab) swab16s(®addr); if (bus->need_swab && addr == WFX_REG_CONFIG) @@ -163,7 +164,8 @@ static int wfx_spi_irq_unsubscribe(void *priv) static size_t wfx_spi_align_size(void *priv, size_t size) { - // Most of SPI controllers avoid DMA if buffer size is not 32bit aligned + /* Most of SPI controllers avoid DMA if buffer size is not 32bit aligned + */ return ALIGN(size, 4); } @@ -187,7 +189,7 @@ static int wfx_spi_probe(struct spi_device *func) ret = spi_setup(func); if (ret) return ret; - // Trace below is also displayed by spi_setup() if compiled with DEBUG + /* Trace below is also displayed by spi_setup() if compiled with DEBUG */ dev_dbg(&func->dev, "SPI params: CS=%d, mode=%d bits/word=%d speed=%d\n", func->chip_select, func->mode, func->bits_per_word, func->max_speed_hz); diff --git a/drivers/staging/wfx/data_rx.c b/drivers/staging/wfx/data_rx.c index 509f45cdbab9..bfc3961b7b89 100644 --- a/drivers/staging/wfx/data_rx.c +++ b/drivers/staging/wfx/data_rx.c @@ -76,8 +76,9 @@ void wfx_rx_cb(struct wfx_vif *wvif, if (arg->encryp) hdr->flag |= RX_FLAG_DECRYPTED; - // Block ack negotiation is offloaded by the firmware. However, - // re-ordering must be done by the mac80211. + /* Block ack negotiation is offloaded by the firmware. However, + * re-ordering must be done by the mac80211. + */ if (ieee80211_is_action(frame->frame_control) && mgmt->u.action.category == WLAN_CATEGORY_BACK && skb->len > IEEE80211_MIN_ACTION_SIZE) { diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index 04241422edc8..052a19161dc5 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -31,8 +31,9 @@ static int wfx_get_hw_rate(struct wfx_dev *wdev, } return rate->idx + 14; } - // The device only support 2GHz, else band information should be - // retrieved from ieee80211_tx_info + /* The device only support 2GHz, else band information should be + * retrieved from ieee80211_tx_info + */ band = wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]; if (rate->idx >= band->n_bitrates) { WARN(1, "wrong rate->idx value: %d", rate->idx); @@ -57,7 +58,7 @@ static void wfx_tx_policy_build(struct wfx_vif *wvif, struct tx_policy *policy, break; WARN_ON(rates[i].count > 15); rateid = wfx_get_hw_rate(wdev, &rates[i]); - // Pack two values in each byte of policy->rates + /* Pack two values in each byte of policy->rates */ count = rates[i].count; if (rateid % 2) count <<= 4; @@ -238,7 +239,7 @@ static void wfx_tx_fixup_rates(struct ieee80211_tx_rate *rates) int i; bool finished; - // Firmware is not able to mix rates with different flags + /* Firmware is not able to mix rates with different flags */ for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) { if (rates[0].flags & IEEE80211_TX_RC_SHORT_GI) rates[i].flags |= IEEE80211_TX_RC_SHORT_GI; @@ -248,7 +249,7 @@ static void wfx_tx_fixup_rates(struct ieee80211_tx_rate *rates) rates[i].flags &= ~IEEE80211_TX_RC_USE_RTS_CTS; } - // Sort rates and remove duplicates + /* Sort rates and remove duplicates */ do { finished = true; for (i = 0; i < IEEE80211_TX_MAX_RATES - 1; i++) { @@ -268,19 +269,19 @@ static void wfx_tx_fixup_rates(struct ieee80211_tx_rate *rates) } } } while (!finished); - // Ensure that MCS0 or 1Mbps is present at the end of the retry list + /* Ensure that MCS0 or 1Mbps is present at the end of the retry list */ for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) { if (rates[i].idx == 0) break; if (rates[i].idx == -1) { rates[i].idx = 0; - rates[i].count = 8; // == hw->max_rate_tries + rates[i].count = 8; /* == hw->max_rate_tries */ rates[i].flags = rates[i - 1].flags & IEEE80211_TX_RC_MCS; break; } } - // All retries use long GI + /* All retries use long GI */ for (i = 1; i < IEEE80211_TX_MAX_RATES; i++) rates[i].flags &= ~IEEE80211_TX_RC_SHORT_GI; } @@ -342,13 +343,13 @@ static int wfx_tx_inner(struct wfx_vif *wvif, struct ieee80211_sta *sta, WARN(queue_id >= IEEE80211_NUM_ACS, "unsupported queue_id"); wfx_tx_fixup_rates(tx_info->driver_rates); - // From now tx_info->control is unusable + /* From now tx_info->control is unusable */ memset(tx_info->rate_driver_data, 0, sizeof(struct wfx_tx_priv)); - // Fill tx_priv + /* Fill tx_priv */ tx_priv = (struct wfx_tx_priv *)tx_info->rate_driver_data; tx_priv->icv_size = wfx_tx_get_icv_len(hw_key); - // Fill hif_msg + /* Fill hif_msg */ WARN(skb_headroom(skb) < wmsg_len, "not enough space in skb"); WARN(offset & 1, "attempt to transmit an unaligned frame"); skb_put(skb, tx_priv->icv_size); @@ -366,17 +367,18 @@ static int wfx_tx_inner(struct wfx_vif *wvif, struct ieee80211_sta *sta, return -EIO; } - // Fill tx request + /* Fill tx request */ req = (struct hif_req_tx *)hif_msg->body; - // packet_id just need to be unique on device. 32bits are more than - // necessary for that task, so we tae advantage of it to add some extra - // data for debug. + /* packet_id just need to be unique on device. 32bits are more than + * necessary for that task, so we tae advantage of it to add some extra + * data for debug. + */ req->packet_id = atomic_add_return(1, &wvif->wdev->packet_id) & 0xFFFF; req->packet_id |= IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl)) << 16; req->packet_id |= queue_id << 28; req->fc_offset = offset; - // Queue index are inverted between firmware and Linux + /* Queue index are inverted between firmware and Linux */ req->queue_id = 3 - queue_id; req->peer_sta_id = wfx_tx_get_link_id(wvif, sta, hdr); req->retry_policy_index = wfx_tx_get_retry_policy_id(wvif, tx_info); @@ -386,7 +388,7 @@ static int wfx_tx_inner(struct wfx_vif *wvif, struct ieee80211_sta *sta, if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM) req->after_dtim = 1; - // Auxiliary operations + /* Auxiliary operations */ wfx_tx_queues_put(wvif, skb); if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM) schedule_work(&wvif->update_tim_work); @@ -408,15 +410,16 @@ void wfx_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control, compiletime_assert(sizeof(struct wfx_tx_priv) <= driver_data_room, "struct tx_priv is too large"); WARN(skb->next || skb->prev, "skb is already member of a list"); - // control.vif can be NULL for injected frames + /* control.vif can be NULL for injected frames */ if (tx_info->control.vif) wvif = (struct wfx_vif *)tx_info->control.vif->drv_priv; else wvif = wvif_iterate(wdev, NULL); if (WARN_ON(!wvif)) goto drop; - // Because of TX_AMPDU_SETUP_IN_HW, mac80211 does not try to send any - // BlockAck session management frame. The check below exist just in case. + /* Because of TX_AMPDU_SETUP_IN_HW, mac80211 does not try to send any + * BlockAck session management frame. The check below exist just in case. + */ if (ieee80211_is_action_back(hdr)) { dev_info(wdev->dev, "drop BA action\n"); goto drop; @@ -457,7 +460,7 @@ static void wfx_tx_fill_rates(struct wfx_dev *wdev, tx_count = arg->ack_failures; if (!arg->status || arg->ack_failures) - tx_count += 1; // Also report success + tx_count += 1; /* Also report success */ for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) { rate = &tx_info->status.rates[i]; if (rate->idx < 0) @@ -505,14 +508,15 @@ void wfx_tx_confirm_cb(struct wfx_dev *wdev, const struct hif_cnf_tx *arg) if (!wvif) return; - // Note that wfx_pending_get_pkt_us_delay() get data from tx_info + /* Note that wfx_pending_get_pkt_us_delay() get data from tx_info */ _trace_tx_stats(arg, skb, wfx_pending_get_pkt_us_delay(wdev, skb)); wfx_tx_fill_rates(wdev, tx_info, arg); skb_trim(skb, skb->len - tx_priv->icv_size); - // From now, you can touch to tx_info->status, but do not touch to - // tx_priv anymore - // FIXME: use ieee80211_tx_info_clear_status() + /* From now, you can touch to tx_info->status, but do not touch to + * tx_priv anymore + */ + /* FIXME: use ieee80211_tx_info_clear_status() */ memset(tx_info->rate_driver_data, 0, sizeof(tx_info->rate_driver_data)); memset(tx_info->pad, 0, sizeof(tx_info->pad)); @@ -527,7 +531,7 @@ void wfx_tx_confirm_cb(struct wfx_dev *wdev, const struct hif_cnf_tx *arg) } else if (arg->status == HIF_STATUS_TX_FAIL_REQUEUE) { WARN(!arg->requeue, "incoherent status and result_flags"); if (tx_info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM) { - wvif->after_dtim_tx_allowed = false; // DTIM period elapsed + wvif->after_dtim_tx_allowed = false; /* DTIM period elapsed */ schedule_work(&wvif->update_tim_work); } tx_info->flags |= IEEE80211_TX_STAT_TX_FILTERED; diff --git a/drivers/staging/wfx/data_tx.h b/drivers/staging/wfx/data_tx.h index 7dcc9132d7cd..dafd8fef44cf 100644 --- a/drivers/staging/wfx/data_tx.h +++ b/drivers/staging/wfx/data_tx.h @@ -27,7 +27,7 @@ struct tx_policy { struct tx_policy_cache { struct tx_policy cache[HIF_TX_RETRY_POLICY_MAX]; - // FIXME: use a trees and drop hash from tx_policy + /* FIXME: use a trees and drop hash from tx_policy */ struct list_head used; struct list_head free; spinlock_t lock; diff --git a/drivers/staging/wfx/debug.c b/drivers/staging/wfx/debug.c index 16c3f55f1a3d..9f93268a3202 100644 --- a/drivers/staging/wfx/debug.c +++ b/drivers/staging/wfx/debug.c @@ -256,9 +256,10 @@ static ssize_t wfx_send_hif_msg_write(struct file *file, if (count < sizeof(struct hif_msg)) return -EINVAL; - // wfx_cmd_send() checks that reply buffer is wide enough, but does not - // return precise length read. User have to know how many bytes should - // be read. Filling reply buffer with a memory pattern may help user. + /* wfx_cmd_send() checks that reply buffer is wide enough, but does not + * return precise length read. User have to know how many bytes should + * be read. Filling reply buffer with a memory pattern may help user. + */ memset(context->reply, 0xFF, sizeof(context->reply)); request = memdup_user(user_buf, count); if (IS_ERR(request)) @@ -288,8 +289,9 @@ static ssize_t wfx_send_hif_msg_read(struct file *file, char __user *user_buf, return ret; if (context->ret < 0) return context->ret; - // Be careful, write() is waiting for a full message while read() - // only returns a payload + /* Be careful, write() is waiting for a full message while read() + * only returns a payload + */ if (copy_to_user(user_buf, context->reply, count)) return -EFAULT; diff --git a/drivers/staging/wfx/fwio.c b/drivers/staging/wfx/fwio.c index 7b91ac615f4a..c5ba0a50b474 100644 --- a/drivers/staging/wfx/fwio.c +++ b/drivers/staging/wfx/fwio.c @@ -14,11 +14,11 @@ #include "wfx.h" #include "hwio.h" -// Addresses below are in SRAM area +/* Addresses below are in SRAM area */ #define WFX_DNLD_FIFO 0x09004000 #define DNLD_BLOCK_SIZE 0x0400 -#define DNLD_FIFO_SIZE 0x8000 // (32 * DNLD_BLOCK_SIZE) -// Download Control Area (DCA) +#define DNLD_FIFO_SIZE 0x8000 /* (32 * DNLD_BLOCK_SIZE) */ +/* Download Control Area (DCA) */ #define WFX_DCA_IMAGE_SIZE 0x0900C000 #define WFX_DCA_PUT 0x0900C004 #define WFX_DCA_GET 0x0900C008 @@ -58,8 +58,8 @@ #define ERR_ECC_PUB_KEY 0x11 #define ERR_MAC_KEY 0x18 -#define DCA_TIMEOUT 50 // milliseconds -#define WAKEUP_TIMEOUT 200 // milliseconds +#define DCA_TIMEOUT 50 /* milliseconds */ +#define WAKEUP_TIMEOUT 200 /* milliseconds */ static const char * const fwio_errors[] = { [ERR_INVALID_SEC_TYPE] = "Invalid section type or wrong encryption", @@ -125,7 +125,7 @@ static int get_firmware(struct wfx_dev *wdev, u32 keyset_chip, data = (*fw)->data; if (memcmp(data, "KEYSET", 6) != 0) { - // Legacy firmware format + /* Legacy firmware format */ *file_offset = 0; keyset_file = 0x90; } else { @@ -207,8 +207,9 @@ static int upload_firmware(struct wfx_dev *wdev, const u8 *data, size_t len) if (ret < 0) return ret; - // The device seems to not support writing 0 in this register - // during first loop + /* The device seems to not support writing 0 in this register + * during first loop + */ offs += DNLD_BLOCK_SIZE; ret = sram_reg_write(wdev, WFX_DCA_PUT, offs); if (ret < 0) @@ -265,7 +266,7 @@ static int load_firmware_secure(struct wfx_dev *wdev) if (ret) goto error; - sram_reg_write(wdev, WFX_DNLD_FIFO, 0xFFFFFFFF); // Fifo init + sram_reg_write(wdev, WFX_DNLD_FIFO, 0xFFFFFFFF); /* Fifo init */ sram_write_dma_safe(wdev, WFX_DCA_FW_VERSION, "\x01\x00\x00\x00", FW_VERSION_SIZE); sram_write_dma_safe(wdev, WFX_DCA_FW_SIGNATURE, fw->data + fw_offset, @@ -289,7 +290,7 @@ static int load_firmware_secure(struct wfx_dev *wdev) sram_reg_write(wdev, WFX_DCA_HOST_STATUS, HOST_UPLOAD_COMPLETE); ret = wait_ncp_status(wdev, NCP_AUTH_OK); - // Legacy ROM support + /* Legacy ROM support */ if (ret < 0) ret = wait_ncp_status(wdev, NCP_PUB_KEY_RDY); if (ret < 0) @@ -334,7 +335,7 @@ int wfx_init_device(struct wfx_dev *wdev) { int ret; int hw_revision, hw_type; - int wakeup_timeout = 50; // ms + int wakeup_timeout = 50; /* ms */ ktime_t now, start; u32 reg; diff --git a/drivers/staging/wfx/hif_api_cmd.h b/drivers/staging/wfx/hif_api_cmd.h index 553dc45142f2..b0aa13b23a51 100644 --- a/drivers/staging/wfx/hif_api_cmd.h +++ b/drivers/staging/wfx/hif_api_cmd.h @@ -134,7 +134,7 @@ struct hif_req_start_scan_alt { u8 num_of_channels; __le32 min_channel_time; __le32 max_channel_time; - __le32 tx_power_level; // signed value + __le32 tx_power_level; /* signed value */ struct hif_ssid_def ssid_def[HIF_API_MAX_NB_SSIDS]; u8 channel_list[]; } __packed; @@ -174,8 +174,9 @@ enum hif_frame_format { }; struct hif_req_tx { - // packet_id is not interpreted by the device, so it is not necessary to - // declare it little endian + /* packet_id is not interpreted by the device, so it is not necessary to + * declare it little endian + */ u32 packet_id; u8 max_tx_rate; u8 queue_id:2; @@ -211,8 +212,9 @@ enum hif_qos_ackplcy { struct hif_cnf_tx { __le32 status; - // packet_id is copied from struct hif_req_tx without been interpreted - // by the device, so it is not necessary to declare it little endian + /* packet_id is copied from struct hif_req_tx without been interpreted + * by the device, so it is not necessary to declare it little endian + */ u32 packet_id; u8 txed_rate; u8 ack_failures; diff --git a/drivers/staging/wfx/hif_api_general.h b/drivers/staging/wfx/hif_api_general.h index 714e1dd808e6..5f74f829b7df 100644 --- a/drivers/staging/wfx/hif_api_general.h +++ b/drivers/staging/wfx/hif_api_general.h @@ -114,9 +114,10 @@ enum hif_api_rate_index { }; struct hif_ind_startup { - // As the others, this struct is interpreted as little endian by the - // device. However, this struct is also used by the driver. We prefer to - // declare it in native order and doing byte swap on reception. + /* As the others, this struct is interpreted as little endian by the + * device. However, this struct is also used by the driver. We prefer to + * declare it in native order and doing byte swap on reception. + */ __le32 status; u16 hardware_id; u8 opn[14]; @@ -193,9 +194,9 @@ struct hif_rx_stats { __le32 throughput; __le32 nb_rx_by_rate[API_RATE_NUM_ENTRIES]; __le16 per[API_RATE_NUM_ENTRIES]; - __le16 snr[API_RATE_NUM_ENTRIES]; // signed value - __le16 rssi[API_RATE_NUM_ENTRIES]; // signed value - __le16 cfo[API_RATE_NUM_ENTRIES]; // signed value + __le16 snr[API_RATE_NUM_ENTRIES]; /* signed value */ + __le16 rssi[API_RATE_NUM_ENTRIES]; /* signed value */ + __le16 cfo[API_RATE_NUM_ENTRIES]; /* signed value */ __le32 date; __le32 pwr_clk_freq; u8 is_ext_pwr_clk; @@ -205,8 +206,8 @@ struct hif_rx_stats { struct hif_tx_power_loop_info { __le16 tx_gain_dig; __le16 tx_gain_pa; - __le16 target_pout; // signed value - __le16 p_estimation; // signed value + __le16 target_pout; /* signed value */ + __le16 p_estimation; /* signed value */ __le16 vpdet; u8 measurement_index; u8 reserved; diff --git a/drivers/staging/wfx/hif_api_mib.h b/drivers/staging/wfx/hif_api_mib.h index b76f19224b5a..da534f244757 100644 --- a/drivers/staging/wfx/hif_api_mib.h +++ b/drivers/staging/wfx/hif_api_mib.h @@ -209,7 +209,7 @@ struct hif_mib_slot_time { } __packed; struct hif_mib_current_tx_power_level { - __le32 power_level; // signed value + __le32 power_level; /* signed value */ } __packed; struct hif_mib_non_erp_protection { diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index fcfd5ccc9f01..6963b54d5593 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx/hif_rx.c @@ -19,10 +19,10 @@ static int hif_generic_confirm(struct wfx_dev *wdev, const struct hif_msg *hif, const void *buf) { - // All confirm messages start with status + /* All confirm messages start with status */ int status = le32_to_cpup((__le32 *)buf); int cmd = hif->id; - int len = le16_to_cpu(hif->len) - 4; // drop header + int len = le16_to_cpu(hif->len) - 4; /* drop header */ WARN(!mutex_is_locked(&wdev->hif_cmd.lock), "data locking error"); @@ -244,7 +244,7 @@ static int hif_generic_indication(struct wfx_dev *wdev, return 0; case HIF_GENERIC_INDICATION_TYPE_RX_STATS: mutex_lock(&wdev->rx_stats_lock); - // Older firmware send a generic indication beside RxStats + /* Older firmware send a generic indication beside RxStats */ if (!wfx_api_older_than(wdev, 1, 4)) dev_info(wdev->dev, "Rx test ongoing. Temperature: %d degrees C\n", body->data.rx_stats.current_temp); @@ -297,7 +297,7 @@ static const struct { "bus clock is too slow (<1kHz)" }, { HIF_ERROR_HIF_RX_DATA_TOO_LARGE, "HIF message too large" }, - // Following errors only exists in old firmware versions: + /* Following errors only exists in old firmware versions: */ { HIF_ERROR_HIF_TX_QUEUE_FULL, "HIF messages queue is full" }, { HIF_ERROR_HIF_BUS, @@ -374,7 +374,7 @@ static const struct { { HIF_IND_ID_GENERIC, hif_generic_indication }, { HIF_IND_ID_ERROR, hif_error_indication }, { HIF_IND_ID_EXCEPTION, hif_exception_indication }, - // FIXME: allocate skb_p from hif_receive_indication and make it generic + /* FIXME: allocate skb_p from hif_receive_indication and make it generic */ //{ HIF_IND_ID_RX, hif_receive_indication }, }; @@ -385,12 +385,13 @@ void wfx_handle_rx(struct wfx_dev *wdev, struct sk_buff *skb) int hif_id = hif->id; if (hif_id == HIF_IND_ID_RX) { - // hif_receive_indication take care of skb lifetime + /* hif_receive_indication take care of skb lifetime */ hif_receive_indication(wdev, hif, hif->body, skb); return; } - // Note: mutex_is_lock cause an implicit memory barrier that protect - // buf_send + /* Note: mutex_is_lock cause an implicit memory barrier that protect + * buf_send + */ if (mutex_is_locked(&wdev->hif_cmd.lock) && wdev->hif_cmd.buf_send && wdev->hif_cmd.buf_send->id == hif_id) { diff --git a/drivers/staging/wfx/hif_tx.c b/drivers/staging/wfx/hif_tx.c index 97da82b5441f..d39366c171ba 100644 --- a/drivers/staging/wfx/hif_tx.c +++ b/drivers/staging/wfx/hif_tx.c @@ -55,15 +55,16 @@ int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, int vif = request->interface; int ret; - // Do not wait for any reply if chip is frozen + /* Do not wait for any reply if chip is frozen */ if (wdev->chip_frozen) return -ETIMEDOUT; mutex_lock(&wdev->hif_cmd.lock); WARN(wdev->hif_cmd.buf_send, "data locking error"); - // Note: call to complete() below has an implicit memory barrier that - // hopefully protect buf_send + /* Note: call to complete() below has an implicit memory barrier that + * hopefully protect buf_send + */ wdev->hif_cmd.buf_send = request; wdev->hif_cmd.buf_recv = reply; wdev->hif_cmd.len_recv = reply_len; @@ -72,8 +73,9 @@ int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, wfx_bh_request_tx(wdev); if (no_reply) { - // Chip won't reply. Give enough time to the wq to send the - // buffer. + /* Chip won't reply. Give enough time to the wq to send the + * buffer. + */ msleep(100); wdev->hif_cmd.buf_send = NULL; mutex_unlock(&wdev->hif_cmd.lock); @@ -117,8 +119,9 @@ int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, return ret; } -// This function is special. After HIF_REQ_ID_SHUT_DOWN, chip won't reply to any -// request anymore. Obviously, only call this function during device unregister. +/* This function is special. After HIF_REQ_ID_SHUT_DOWN, chip won't reply to any + * request anymore. Obviously, only call this function during device unregister. + */ int hif_shutdown(struct wfx_dev *wdev) { int ret; @@ -277,7 +280,7 @@ int hif_stop_scan(struct wfx_vif *wvif) { int ret; struct hif_msg *hif; - // body associated to HIF_REQ_ID_STOP_SCAN is empty + /* body associated to HIF_REQ_ID_STOP_SCAN is empty */ wfx_alloc_hif(0, &hif); if (!hif) @@ -342,16 +345,17 @@ int hif_add_key(struct wfx_dev *wdev, const struct hif_req_add_key *arg) { int ret; struct hif_msg *hif; - // FIXME: only send necessary bits + /* FIXME: only send necessary bits */ struct hif_req_add_key *body = wfx_alloc_hif(sizeof(*body), &hif); if (!hif) return -ENOMEM; - // FIXME: swap bytes as necessary in body + /* FIXME: swap bytes as necessary in body */ memcpy(body, arg, sizeof(*body)); if (wfx_api_older_than(wdev, 1, 5)) - // Legacy firmwares expect that add_key to be sent on right - // interface. + /* Legacy firmwares expect that add_key to be sent on right + * interface. + */ wfx_fill_header(hif, arg->int_id, HIF_REQ_ID_ADD_KEY, sizeof(*body)); else @@ -395,7 +399,7 @@ int hif_set_edca_queue_params(struct wfx_vif *wvif, u16 queue, body->cw_max = cpu_to_le16(arg->cw_max); body->tx_op_limit = cpu_to_le16(arg->txop * USEC_PER_TXOP); body->queue_id = 3 - queue; - // API 2.0 has changed queue IDs values + /* API 2.0 has changed queue IDs values */ if (wfx_api_older_than(wvif->wdev, 2, 0) && queue == IEEE80211_AC_BE) body->queue_id = HIF_QUEUE_ID_BACKGROUND; if (wfx_api_older_than(wvif->wdev, 2, 0) && queue == IEEE80211_AC_BK) @@ -420,7 +424,7 @@ int hif_set_pm(struct wfx_vif *wvif, bool ps, int dynamic_ps_timeout) return -ENOMEM; if (ps) { body->enter_psm = 1; - // Firmware does not support more than 128ms + /* Firmware does not support more than 128ms */ body->fast_psm_idle_period = min(dynamic_ps_timeout * 2, 255); if (body->fast_psm_idle_period) body->fast_psm = 1; diff --git a/drivers/staging/wfx/hif_tx_mib.c b/drivers/staging/wfx/hif_tx_mib.c index c745271944e9..45e531d996bd 100644 --- a/drivers/staging/wfx/hif_tx_mib.c +++ b/drivers/staging/wfx/hif_tx_mib.c @@ -68,7 +68,7 @@ int hif_get_counters_table(struct wfx_dev *wdev, int vif_id, struct hif_mib_extended_count_table *arg) { if (wfx_api_older_than(wdev, 1, 3)) { - // extended_count_table is wider than count_table + /* extended_count_table is wider than count_table */ memset(arg, 0xFF, sizeof(*arg)); return hif_read_mib(wdev, vif_id, HIF_MIB_ID_COUNTERS_TABLE, arg, sizeof(struct hif_mib_count_table)); @@ -246,7 +246,7 @@ int hif_set_arp_ipv4_filter(struct wfx_vif *wvif, int idx, __be32 *addr) }; if (addr) { - // Caution: type of addr is __be32 + /* Caution: type of addr is __be32 */ memcpy(arg.ipv4_address, addr, sizeof(arg.ipv4_address)); arg.arp_enable = HIF_ARP_NS_FILTERING_ENABLE; } diff --git a/drivers/staging/wfx/hwio.c b/drivers/staging/wfx/hwio.c index 36fbc5b5d64c..30eb888830d2 100644 --- a/drivers/staging/wfx/hwio.c +++ b/drivers/staging/wfx/hwio.c @@ -31,7 +31,7 @@ static int read32(struct wfx_dev *wdev, int reg, u32 *val) int ret; __le32 *tmp = kmalloc(sizeof(u32), GFP_KERNEL); - *val = ~0; // Never return undefined value + *val = ~0; /* Never return undefined value */ if (!tmp) return -ENOMEM; ret = wdev->hwbus_ops->copy_from_io(wdev->hwbus_priv, reg, tmp, @@ -153,7 +153,7 @@ static int indirect_read(struct wfx_dev *wdev, int reg, u32 addr, err: if (ret < 0) - memset(buf, 0xFF, len); // Never return undefined value + memset(buf, 0xFF, len); /* Never return undefined value */ return ret; } @@ -335,7 +335,7 @@ int igpr_reg_read(struct wfx_dev *wdev, int index, u32 *val) { int ret; - *val = ~0; // Never return undefined value + *val = ~0; /* Never return undefined value */ ret = write32_locked(wdev, WFX_REG_SET_GEN_R_W, IGPR_RW | index << 24); if (ret) return ret; diff --git a/drivers/staging/wfx/hwio.h b/drivers/staging/wfx/hwio.h index 5e43993b14d8..9a361ed95ecb 100644 --- a/drivers/staging/wfx/hwio.h +++ b/drivers/staging/wfx/hwio.h @@ -27,30 +27,30 @@ int sram_reg_write(struct wfx_dev *wdev, u32 addr, u32 val); int ahb_reg_read(struct wfx_dev *wdev, u32 addr, u32 *val); int ahb_reg_write(struct wfx_dev *wdev, u32 addr, u32 val); -#define CFG_ERR_SPI_FRAME 0x00000001 // only with SPI -#define CFG_ERR_SDIO_BUF_MISMATCH 0x00000001 // only with SDIO +#define CFG_ERR_SPI_FRAME 0x00000001 /* only with SPI */ +#define CFG_ERR_SDIO_BUF_MISMATCH 0x00000001 /* only with SDIO */ #define CFG_ERR_BUF_UNDERRUN 0x00000002 #define CFG_ERR_DATA_IN_TOO_LARGE 0x00000004 #define CFG_ERR_HOST_NO_OUT_QUEUE 0x00000008 #define CFG_ERR_BUF_OVERRUN 0x00000010 #define CFG_ERR_DATA_OUT_TOO_LARGE 0x00000020 #define CFG_ERR_HOST_NO_IN_QUEUE 0x00000040 -#define CFG_ERR_HOST_CRC_MISS 0x00000080 // only with SDIO -#define CFG_SPI_IGNORE_CS 0x00000080 // only with SPI -#define CFG_BYTE_ORDER_MASK 0x00000300 // only writable with SPI +#define CFG_ERR_HOST_CRC_MISS 0x00000080 /* only with SDIO */ +#define CFG_SPI_IGNORE_CS 0x00000080 /* only with SPI */ +#define CFG_BYTE_ORDER_MASK 0x00000300 /* only writable with SPI */ #define CFG_BYTE_ORDER_BADC 0x00000000 #define CFG_BYTE_ORDER_DCBA 0x00000100 -#define CFG_BYTE_ORDER_ABCD 0x00000200 // SDIO always use this value +#define CFG_BYTE_ORDER_ABCD 0x00000200 /* SDIO always use this value */ #define CFG_DIRECT_ACCESS_MODE 0x00000400 #define CFG_PREFETCH_AHB 0x00000800 #define CFG_DISABLE_CPU_CLK 0x00001000 #define CFG_PREFETCH_SRAM 0x00002000 #define CFG_CPU_RESET 0x00004000 -#define CFG_SDIO_DISABLE_IRQ 0x00008000 // only with SDIO +#define CFG_SDIO_DISABLE_IRQ 0x00008000 /* only with SDIO */ #define CFG_IRQ_ENABLE_DATA 0x00010000 #define CFG_IRQ_ENABLE_WRDY 0x00020000 #define CFG_CLK_RISE_EDGE 0x00040000 -#define CFG_SDIO_DISABLE_CRC_CHK 0x00080000 // only with SDIO +#define CFG_SDIO_DISABLE_CRC_CHK 0x00080000 /* only with SDIO */ #define CFG_RESERVED 0x00F00000 #define CFG_DEVICE_ID_MAJOR 0x07000000 #define CFG_DEVICE_ID_RESERVED 0x78000000 diff --git a/drivers/staging/wfx/key.c b/drivers/staging/wfx/key.c index 2ab82bed4c1b..51a528102016 100644 --- a/drivers/staging/wfx/key.c +++ b/drivers/staging/wfx/key.c @@ -84,10 +84,10 @@ static u8 fill_tkip_group(struct hif_tkip_group_key *msg, memcpy(msg->tkip_key_data, keybuf, sizeof(msg->tkip_key_data)); keybuf += sizeof(msg->tkip_key_data); if (iftype == NL80211_IFTYPE_AP) - // Use Tx MIC Key + /* Use Tx MIC Key */ memcpy(msg->rx_mic_key, keybuf + 0, sizeof(msg->rx_mic_key)); else - // Use Rx MIC Key + /* Use Rx MIC Key */ memcpy(msg->rx_mic_key, keybuf + 8, sizeof(msg->rx_mic_key)); return HIF_KEY_TYPE_TKIP_GROUP; } diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 3642d4ebb018..83292544b10a 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -92,7 +92,7 @@ static const struct ieee80211_supported_band wfx_band_2ghz = { .bitrates = wfx_rates, .n_bitrates = ARRAY_SIZE(wfx_rates), .ht_cap = { - // Receive caps + /* Receive caps */ .cap = IEEE80211_HT_CAP_GRN_FLD | IEEE80211_HT_CAP_SGI_20 | IEEE80211_HT_CAP_MAX_AMSDU | (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT), @@ -100,7 +100,7 @@ static const struct ieee80211_supported_band wfx_band_2ghz = { .ampdu_factor = IEEE80211_HT_MAX_AMPDU_16K, .ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE, .mcs = { - .rx_mask = { 0xFF }, // MCS0 to MCS7 + .rx_mask = { 0xFF }, /* MCS0 to MCS7 */ .rx_highest = cpu_to_le16(72), .tx_params = IEEE80211_HT_MCS_TX_DEFINED, }, @@ -294,7 +294,7 @@ struct wfx_dev *wfx_init_common(struct device *dev, hw->wiphy->n_iface_combinations = ARRAY_SIZE(wfx_iface_combinations); hw->wiphy->iface_combinations = wfx_iface_combinations; hw->wiphy->bands[NL80211_BAND_2GHZ] = devm_kmalloc(dev, sizeof(wfx_band_2ghz), GFP_KERNEL); - // FIXME: also copy wfx_rates and wfx_2ghz_chantable + /* FIXME: also copy wfx_rates and wfx_2ghz_chantable */ memcpy(hw->wiphy->bands[NL80211_BAND_2GHZ], &wfx_band_2ghz, sizeof(wfx_band_2ghz)); @@ -336,8 +336,9 @@ int wfx_probe(struct wfx_dev *wdev) int err; struct gpio_desc *gpio_saved; - // During first part of boot, gpio_wakeup cannot yet been used. So - // prevent bh() to touch it. + /* During first part of boot, gpio_wakeup cannot yet been used. So + * prevent bh() to touch it. + */ gpio_saved = wdev->pdata.gpio_wakeup; wdev->pdata.gpio_wakeup = NULL; wdev->poll_irq = true; @@ -360,7 +361,7 @@ int wfx_probe(struct wfx_dev *wdev) goto err0; } - // FIXME: fill wiphy::hw_version + /* FIXME: fill wiphy::hw_version */ dev_info(wdev->dev, "started firmware %d.%d.%d \"%s\" (API: %d.%d, keyset: %02X, caps: 0x%.8X)\n", wdev->hw_caps.firmware_major, wdev->hw_caps.firmware_minor, wdev->hw_caps.firmware_build, wdev->hw_caps.firmware_label, diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c index e5e7595565ee..7a3ba3c38925 100644 --- a/drivers/staging/wfx/queue.c +++ b/drivers/staging/wfx/queue.c @@ -32,7 +32,7 @@ void wfx_tx_flush(struct wfx_dev *wdev) { int ret; - // Do not wait for any reply if chip is frozen + /* Do not wait for any reply if chip is frozen */ if (wdev->chip_frozen) return; @@ -45,7 +45,7 @@ void wfx_tx_flush(struct wfx_dev *wdev) dev_warn(wdev->dev, "cannot flush tx buffers (%d still busy)\n", wdev->hif.tx_buffers_used); wfx_pending_dump_old_frames(wdev, 3000); - // FIXME: drop pending frames here + /* FIXME: drop pending frames here */ wdev->chip_frozen = true; } mutex_unlock(&wdev->hif_cmd.lock); @@ -60,9 +60,10 @@ void wfx_tx_lock_flush(struct wfx_dev *wdev) void wfx_tx_queues_init(struct wfx_vif *wvif) { - // The device is in charge to respect the details of the QoS parameters. - // The driver just ensure that it roughtly respect the priorities to - // avoid any shortage. + /* The device is in charge to respect the details of the QoS parameters. + * The driver just ensure that it roughtly respect the priorities to + * avoid any shortage. + */ const int priorities[IEEE80211_NUM_ACS] = { 1, 2, 64, 128 }; int i; @@ -217,8 +218,9 @@ bool wfx_tx_queues_has_cab(struct wfx_vif *wvif) if (wvif->vif->type != NL80211_IFTYPE_AP) return false; for (i = 0; i < IEEE80211_NUM_ACS; ++i) - // Note: since only AP can have mcast frames in queue and only - // one vif can be AP, all queued frames has same interface id + /* Note: since only AP can have mcast frames in queue and only + * one vif can be AP, all queued frames has same interface id + */ if (!skb_queue_empty_lockless(&wvif->tx_queue[i].cab)) return true; return false; @@ -237,7 +239,7 @@ static struct sk_buff *wfx_tx_queues_get_skb(struct wfx_dev *wdev) struct hif_msg *hif; struct sk_buff *skb; - // sort the queues + /* sort the queues */ wvif = NULL; while ((wvif = wvif_iterate(wdev, wvif)) != NULL) { for (i = 0; i < IEEE80211_NUM_ACS; i++) { @@ -259,9 +261,10 @@ static struct sk_buff *wfx_tx_queues_get_skb(struct wfx_dev *wdev) skb = skb_dequeue(&queues[i]->cab); if (!skb) continue; - // Note: since only AP can have mcast frames in queue - // and only one vif can be AP, all queued frames has - // same interface id + /* Note: since only AP can have mcast frames in queue + * and only one vif can be AP, all queued frames has + * same interface id + */ hif = (struct hif_msg *)skb->data; WARN_ON(hif->interface != wvif->id); WARN_ON(queues[i] != @@ -270,7 +273,7 @@ static struct sk_buff *wfx_tx_queues_get_skb(struct wfx_dev *wdev) trace_queues_stats(wdev, queues[i]); return skb; } - // No more multicast to sent + /* No more multicast to sent */ wvif->after_dtim_tx_allowed = false; schedule_work(&wvif->update_tim_work); } diff --git a/drivers/staging/wfx/queue.h b/drivers/staging/wfx/queue.h index 24b60833864b..54b5def2e24c 100644 --- a/drivers/staging/wfx/queue.h +++ b/drivers/staging/wfx/queue.h @@ -16,7 +16,7 @@ struct wfx_vif; struct wfx_queue { struct sk_buff_head normal; - struct sk_buff_head cab; // Content After (DTIM) Beacon + struct sk_buff_head cab; /* Content After (DTIM) Beacon */ atomic_t pending_frames; int priority; }; diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index 0f48dab105e9..aceb18a1f54b 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -24,7 +24,7 @@ u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates) { int i; u32 ret = 0; - // The device only supports 2GHz + /* The device only supports 2GHz */ struct ieee80211_supported_band *sband = wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]; for (i = 0; i < sband->n_bitrates; i++) { @@ -51,11 +51,11 @@ void wfx_cooling_timeout_work(struct work_struct *work) void wfx_suspend_hot_dev(struct wfx_dev *wdev, enum sta_notify_cmd cmd) { if (cmd == STA_NOTIFY_AWAKE) { - // Device recover normal temperature + /* Device recover normal temperature */ if (cancel_delayed_work(&wdev->cooling_timeout_work)) wfx_tx_unlock(wdev); } else { - // Device is too hot + /* Device is too hot */ schedule_delayed_work(&wdev->cooling_timeout_work, 10 * HZ); wfx_tx_lock(wdev); } @@ -103,13 +103,14 @@ void wfx_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags, struct wfx_dev *wdev = hw->priv; bool filter_bssid, filter_prbreq, filter_beacon; - // Notes: - // - Probe responses (FIF_BCN_PRBRESP_PROMISC) are never filtered - // - PS-Poll (FIF_PSPOLL) are never filtered - // - RTS, CTS and Ack (FIF_CONTROL) are always filtered - // - Broken frames (FIF_FCSFAIL and FIF_PLCPFAIL) are always filtered - // - Firmware does (yet) allow to forward unicast traffic sent to - // other stations (aka. promiscuous mode) + /* Notes: + * - Probe responses (FIF_BCN_PRBRESP_PROMISC) are never filtered + * - PS-Poll (FIF_PSPOLL) are never filtered + * - RTS, CTS and Ack (FIF_CONTROL) are always filtered + * - Broken frames (FIF_FCSFAIL and FIF_PLCPFAIL) are always filtered + * - Firmware does (yet) allow to forward unicast traffic sent to + * other stations (aka. promiscuous mode) + */ *total_flags &= FIF_BCN_PRBRESP_PROMISC | FIF_ALLMULTI | FIF_OTHER_BSS | FIF_PROBE_REQ | FIF_PSPOLL; @@ -117,8 +118,9 @@ void wfx_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags, while ((wvif = wvif_iterate(wdev, wvif)) != NULL) { mutex_lock(&wvif->scan_lock); - // Note: FIF_BCN_PRBRESP_PROMISC covers probe response and - // beacons from other BSS + /* Note: FIF_BCN_PRBRESP_PROMISC covers probe response and + * beacons from other BSS + */ if (*total_flags & FIF_BCN_PRBRESP_PROMISC) filter_beacon = false; else @@ -130,7 +132,7 @@ void wfx_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags, else filter_bssid = true; - // In AP mode, chip can reply to probe request itself + /* In AP mode, chip can reply to probe request itself */ if (*total_flags & FIF_PROBE_REQ && wvif->vif->type == NL80211_IFTYPE_AP) { dev_dbg(wdev->dev, "do not forward probe request in AP mode\n"); @@ -161,15 +163,16 @@ static int wfx_get_ps_timeout(struct wfx_vif *wvif, bool *enable_ps) chan1 = wdev_to_wvif(wvif->wdev, 1)->vif->bss_conf.chandef.chan; if (chan0 && chan1 && wvif->vif->type != NL80211_IFTYPE_AP) { if (chan0->hw_value == chan1->hw_value) { - // It is useless to enable PS if channels are the same. + /* It is useless to enable PS if channels are the same. */ if (enable_ps) *enable_ps = false; if (wvif->vif->bss_conf.assoc && wvif->vif->bss_conf.ps) dev_info(wvif->wdev->dev, "ignoring requested PS mode"); return -1; } else { - // It is necessary to enable PS if channels - // are different. + /* It is necessary to enable PS if channels + * are different. + */ if (enable_ps) *enable_ps = true; if (wvif->wdev->force_ps_timeout > -1) @@ -305,7 +308,7 @@ int wfx_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif, if (vif->type == NL80211_IFTYPE_STATION) hif_set_mfp(wvif, sta->mfp, sta->mfp); - // In station mode, the firmware interprets new link-id as a TDLS peer. + /* In station mode, the firmware interprets new link-id as a TDLS peer */ if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls) return 0; sta_priv->link_id = ffz(wvif->link_id_map); @@ -323,10 +326,10 @@ int wfx_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct wfx_vif *wvif = (struct wfx_vif *)vif->drv_priv; struct wfx_sta_priv *sta_priv = (struct wfx_sta_priv *)&sta->drv_priv; - // See note in wfx_sta_add() + /* See note in wfx_sta_add() */ if (!sta_priv->link_id) return 0; - // FIXME add a mutex? + /* FIXME add a mutex? */ hif_map_link(wvif, true, sta->addr, sta_priv->link_id, false); wvif->link_id_map &= ~BIT(sta_priv->link_id); return 0; @@ -421,7 +424,7 @@ static void wfx_join(struct wfx_vif *wvif) return; } - rcu_read_lock(); // protect ssidie + rcu_read_lock(); /* protect ssidie */ if (bss) ssidie = ieee80211_bss_get_ie(bss, WLAN_EID_SSID); if (ssidie) { @@ -457,7 +460,7 @@ static void wfx_join_finalize(struct wfx_vif *wvif, int ampdu_density = 0; bool greenfield = false; - rcu_read_lock(); // protect sta + rcu_read_lock(); /* protect sta */ if (info->bssid && !info->ibss_joined) sta = ieee80211_find_sta(wvif->vif, info->bssid); if (sta && sta->ht_cap.ht_supported) @@ -471,8 +474,9 @@ static void wfx_join_finalize(struct wfx_vif *wvif, hif_set_association_mode(wvif, ampdu_density, greenfield, info->use_short_preamble); hif_keep_alive_period(wvif, 0); - // beacon_loss_count is defined to 7 in net/mac80211/mlme.c. Let's use - // the same value. + /* beacon_loss_count is defined to 7 in net/mac80211/mlme.c. Let's use + * the same value. + */ hif_set_bss_params(wvif, info->aid, 7); hif_set_beacon_wakeup_period(wvif, 1, 1); wfx_update_pm(wvif); @@ -496,10 +500,11 @@ void wfx_leave_ibss(struct ieee80211_hw *hw, struct ieee80211_vif *vif) static void wfx_enable_beacon(struct wfx_vif *wvif, bool enable) { - // Driver has Content After DTIM Beacon in queue. Driver is waiting for - // a signal from the firmware. Since we are going to stop to send - // beacons, this signal will never happens. See also - // wfx_suspend_resume_mc() + /* Driver has Content After DTIM Beacon in queue. Driver is waiting for + * a signal from the firmware. Since we are going to stop to send + * beacons, this signal will never happens. See also + * wfx_suspend_resume_mc() + */ if (!enable && wfx_tx_queues_has_cab(wvif)) { wvif->after_dtim_tx_allowed = true; wfx_bh_request_tx(wvif->wdev); @@ -539,8 +544,9 @@ void wfx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, __func__); hif_set_beacon_wakeup_period(wvif, info->dtim_period, info->dtim_period); - // We temporary forwarded beacon for join process. It is now no - // more necessary. + /* We temporary forwarded beacon for join process. It is now no + * more necessary. + */ wfx_filter_beacon(wvif, true); } @@ -643,8 +649,9 @@ void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd notify_cmd) if (notify_cmd != STA_NOTIFY_AWAKE) return; - // Device won't be able to honor CAB if a scan is in progress on any - // interface. Prefer to skip this DTIM and wait for the next one. + /* Device won't be able to honor CAB if a scan is in progress on any + * interface. Prefer to skip this DTIM and wait for the next one. + */ wvif_it = NULL; while ((wvif_it = wvif_iterate(wvif->wdev, wvif_it)) != NULL) if (mutex_is_locked(&wvif_it->scan_lock)) @@ -661,14 +668,14 @@ int wfx_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_ampdu_params *params) { - // Aggregation is implemented fully in firmware + /* Aggregation is implemented fully in firmware */ switch (params->action) { case IEEE80211_AMPDU_RX_START: case IEEE80211_AMPDU_RX_STOP: - // Just acknowledge it to enable frame re-ordering + /* Just acknowledge it to enable frame re-ordering */ return 0; default: - // Leave the firmware doing its business for tx aggregation + /* Leave the firmware doing its business for tx aggregation */ return -EOPNOTSUPP; } } @@ -740,11 +747,11 @@ int wfx_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) return -EOPNOTSUPP; } - // FIXME: prefer use of container_of() to get vif + /* FIXME: prefer use of container_of() to get vif */ wvif->vif = vif; wvif->wdev = wdev; - wvif->link_id_map = 1; // link-id 0 is reserved for multicast + wvif->link_id_map = 1; /* link-id 0 is reserved for multicast */ INIT_WORK(&wvif->update_tim_work, wfx_update_tim_work); INIT_DELAYED_WORK(&wvif->beacon_loss_work, wfx_beacon_loss_work); @@ -774,7 +781,7 @@ int wfx_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) wvif = NULL; while ((wvif = wvif_iterate(wdev, wvif)) != NULL) { - // Combo mode does not support Block Acks. We can re-enable them + /* Combo mode does not support Block Acks. We can re-enable them */ if (wvif_count(wdev) == 1) hif_set_block_ack_policy(wvif, 0xFF, 0xFF); else @@ -806,7 +813,7 @@ void wfx_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif) wvif = NULL; while ((wvif = wvif_iterate(wdev, wvif)) != NULL) { - // Combo mode does not support Block Acks. We can re-enable them + /* Combo mode does not support Block Acks. We can re-enable them */ if (wvif_count(wdev) == 1) hif_set_block_ack_policy(wvif, 0xFF, 0xFF); else diff --git a/drivers/staging/wfx/sta.h b/drivers/staging/wfx/sta.h index 056ed5267aba..f359f375cc56 100644 --- a/drivers/staging/wfx/sta.h +++ b/drivers/staging/wfx/sta.h @@ -18,7 +18,7 @@ struct wfx_sta_priv { int vif_id; }; -// mac80211 interface +/* mac80211 interface */ int wfx_start(struct ieee80211_hw *hw); void wfx_stop(struct ieee80211_hw *hw); int wfx_config(struct ieee80211_hw *hw, u32 changed); @@ -59,14 +59,14 @@ void wfx_unassign_vif_chanctx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_chanctx_conf *conf); -// Hardware API Callbacks +/* Hardware API Callbacks */ void wfx_cooling_timeout_work(struct work_struct *work); void wfx_suspend_hot_dev(struct wfx_dev *wdev, enum sta_notify_cmd cmd); void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd cmd); void wfx_event_report_rssi(struct wfx_vif *wvif, u8 raw_rcpi_rssi); int wfx_update_pm(struct wfx_vif *wvif); -// Other Helpers +/* Other Helpers */ void wfx_reset(struct wfx_vif *wvif); u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates); diff --git a/drivers/staging/wfx/traces.h b/drivers/staging/wfx/traces.h index e34c7a538c65..e90dc73c4b01 100644 --- a/drivers/staging/wfx/traces.h +++ b/drivers/staging/wfx/traces.h @@ -378,7 +378,7 @@ TRACE_EVENT(tx_stats, __array(int, tx_count, 4) ), TP_fast_assign( - // Keep sync with wfx_rates definition in main.c + /* Keep sync with wfx_rates definition in main.c */ static const int hw_rate[] = { 0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 13 }; const struct ieee80211_tx_info *tx_info = diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h index 5637f9af79c0..a4770f59f7d2 100644 --- a/drivers/staging/wfx/wfx.h +++ b/drivers/staging/wfx/wfx.h @@ -22,7 +22,7 @@ #include "queue.h" #include "hif_tx.h" -#define USEC_PER_TXOP 32 // see struct ieee80211_tx_queue_params +#define USEC_PER_TXOP 32 /* see struct ieee80211_tx_queue_params */ #define USEC_PER_TU 1024 struct hwbus_ops; From patchwork Fri Sep 10 16:05:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509048 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3623AC4321E for ; Fri, 10 Sep 2021 16:07:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 232276120E for ; Fri, 10 Sep 2021 16:07:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231628AbhIJQIW (ORCPT ); Fri, 10 Sep 2021 12:08:22 -0400 Received: from mail-dm6nam11on2085.outbound.protection.outlook.com ([40.107.223.85]:5600 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230005AbhIJQHi (ORCPT ); Fri, 10 Sep 2021 12:07:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PnW2YAGYu/okRnO2A2GynIZPiFZQjfcbKl2YA0oiuB0eXRIy9vX9Ny2zymL5P/exERxgk9e3dOv9VWfNlsadsdLApxrulPyKLGVKBIdFwVAThSDtt2P/lZPyS/nqQ6u9XsBQp+U6ozwDkVfcVA8MNZsR89Nii+HDBQky1KD4fmQHg6/kEAUJCqGQi1p0W07+/UWUQ7bXWunS2Uw6lTdNemQplxPinEPcuSZCYb1wjPbZkuGPHuM0q8wbkQPZDfprKkRmcTwmbtcT9mnIrqQObYvd6Q32xnJUehhRHftsydCMqTggupmLa6jCxPh/tcbTme3N5Iud6kwnzqIEWmaI5Q== 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; bh=ZGgVdt2go7Q00UnAPMxv3X7ETCI2xEeAi//N9oWKOxo=; b=M5PHPPgFIg0Rvebg0w+Xi55Eszu1AaMBkFITos4g3LczHh1xNwYg3nMgbdaURJgUHbZSqs587vcE+lABWcD+g63vTAxlaBDrTS/8GuyaQVPajK/QkdelS5nWfzGZ0jbI3EAjnqldgLyVN6shx/P51fcBLtB8PENHUXw6xoTB46IZoF+IMoPLGum8NGJGxoVWG9nlDw07iQ2diM40/0cifK425XkSrNEPD8S3qSn/E+DgFUE45jmROxc4XDLEonBNlYYOzIQywZyDuX1Yq7O9PXb5JiUBe42mo40oHjn02jQEUrGhtneiNd0Ar6BCxG+tcerQURafHKO+kcMtz/6zMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZGgVdt2go7Q00UnAPMxv3X7ETCI2xEeAi//N9oWKOxo=; b=S1Q2UTNoXJLPKnqoHI4iJYZ7TWrye5ddTn6SsetGmEUxdhN21xXTmjeCtYrCwnrXYRNBFVcdK9EScScuPrKOFYshc2bJ0hm934N39+C+dj41APG3mPAaiqlPdhvNwjzNRn0XL49w4/J8GGrXW+XagAqm/P1AjmktvwMz5HzSUzI= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5099.namprd11.prod.outlook.com (2603:10b6:806:f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:06:26 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:26 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 28/31] staging: wfx: fix comments styles Date: Fri, 10 Sep 2021 18:05:01 +0200 Message-Id: <20210910160504.1794332-29-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:24 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72121be3-4b81-42c1-35d5-08d97474f0dd X-MS-TrafficTypeDiagnostic: SA2PR11MB5099: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a3BOBfJxqzCMJoTaKwxv+p4zQrmR/5sQg09z3ZxO9MlekDYsySKzEMy0zKZ76J/vJlp5N2QNI3i/E84ykFDs5CUjhoZ47V4Kb7AEuWie520uOIUutKTQztx5WX8RVDo+wgLK+Lwpc46ygFZsGbyKruPnoj6gmmCyNXUdHjXShhEUSQP2bFwnAm4MIQkfMPf/2aN8OyFmZI34Jb+WaVpO0ghwnom7nkwrhemgnLE7WV2VWYYaPVkNbcUsw3uz52Jv1jiB+nPitrw49Z1gdwzMYAn9kZt2c/Teee2G9NyuJefR41SeMUOY4WWIGnIuU9d/jgBcjAcjvPMDI7OvcdUOmiGUZCRITIotD0VIhaDsMIhzFv+7l+r9F6/W7hWK0Mld04bcAyy1aC8MdLVOMBN1YIg3qgb/lHdAoP4VnBBTct66I0MaUKqNIMiNg6feNoTwaO6En8Ykfb0ke20k8MJUe8QZjIy40t/qnljkjvH6QozSXC4s4w8bMW1BELqp92x+7aKGkuVPNyU9axDy0zc80Bxnzal8Fg4YscF10YH47AIXuvTOEgnpLrrrIzaYLFd29cFnwTLqnvotYCxUZiro04bFPhmKkmQFbC1scBg43LIBiMhZFl8Ur2qeSozppF40kmZDraI4C5TLSBoCYjN9mA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(39850400004)(396003)(136003)(346002)(83380400001)(316002)(66556008)(2906002)(6666004)(6486002)(86362001)(66946007)(54906003)(36756003)(1076003)(5660300002)(38100700002)(186003)(8936002)(66574015)(2616005)(4326008)(8676002)(66476007)(478600001)(52116002)(7696005)(107886003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WJagnxOdWb7aRO0jjF3HF0Yxx?= =?utf-8?q?kBAX/tPge/dzJupu8AeKFXdxPAycBk/e3qt5sgahCBurGRbXgngRycAQ?= =?utf-8?q?GmHLXSUFI+AYwU23KPJTLU0Fp11YxtFK67j2N6tpofS84+KfwGSBYhFA?= =?utf-8?q?J+FECD5+g2Tjd4MyHk5GmcdWmiakZKr0wn2/ozHsilJkokJ7+RT2C+Jg?= =?utf-8?q?leZLBUKgALnluvzkuvfj0aU7LCMPOG/ABdkMPlVTTiDBM0ShFpPZvsb2?= =?utf-8?q?JDayehoQdf9ctxk6iscWrTvxQ2qH5fFzSqcaEec4FxuqdXAkdkVhGcye?= =?utf-8?q?1qAH6ouKKFI7ksfW21XNDknNYmjQyJnikw/K9VQ4U4RMyIYWTJRKSdji?= =?utf-8?q?OW3x3UBv0XoA+CZ+ytvmFLYOqCLmAIxiusMp7vU4zfhVCKZszjTgCfAP?= =?utf-8?q?qBHKDD/iW7i0TUY4o2aQgiy78i1jIpnTw1WCE2DEIY6VlRgXTDlpSmXV?= =?utf-8?q?MxwKHc/tPG+jfJJi6toFhRnGN0ugfSF1J3WE/5+eWaUACk7fg4iL0Co6?= =?utf-8?q?Zz79vThBYj9aQedfvyR1LFNRtQ2X/Uy/XBChyYktG5DRwn9a+kzqyVBf?= =?utf-8?q?UkdU9lqrbVY3swM8avKlWFOrBEHHJSFn+SSRWr9DR8zKWtaP6mN5AM7v?= =?utf-8?q?iZwlt1umQeAnLSptCnOLch8g5P6StsDaB8vGB8mL2IGvnsL1UVMj2vi9?= =?utf-8?q?63Rt+sp2n6nNwb3luCgH1/XG9t6E4RD7aZJEH0H5TWKp8Ny5AvnzZE8s?= =?utf-8?q?RyPY4ce9mJdmtWgXtOeED1bn0qqNj7hUKx51b5BQwZjlwEeS3ZzPb2xB?= =?utf-8?q?PpXajEC5VxbF67OGfgo49N21Bd54PX36JFkRcV7WthI5Q0AYBAweKeEj?= =?utf-8?q?BPseUwsWPDCxMFv6Anl8S+O09xoqR0Vr60NHzwMUH+K2OHKs2WBPzN8m?= =?utf-8?q?hA74iTLZctE8ZWtX+K7OzhRE+y7L7ft5XRnpMP2C03MVdy+9WsW8UHvV?= =?utf-8?q?fBWU8hj3FJF/bIfP3tsys7KoKtMEMQc776ZR0NMO/COmvpDezX0TEpex?= =?utf-8?q?+kidEHK68z9oCIoLhjLRbu4AqF5pzzx0hHWFdKFAIPpk6HNw+z+vqA9f?= =?utf-8?q?SotVZLFRJXkL0lVcKPUKTvGfTXUDb+ZcAcMcvw85mzu6FAO35pukPD0K?= =?utf-8?q?k/g49AKkwR/jU4C9tarAvi434KpLpr3vdcUTVfLz70tTS+qFXR0c2PIH?= =?utf-8?q?YT8IESciYRbGfXS3TioqvON5vjtVvOV5LuZUGIutuIPW9QLebfeMRYJa?= =?utf-8?q?lL3UDML2VweKs3UXKxuP+ueQ/mZclG8BoUvSWYksjKkr0w87aKm39l3y?= =?utf-8?q?OyY2Drz9KBZ6aQobGga7Bq+TpXz8CqDXLvR5X09H90+C+XGWYHbfjBuq?= =?utf-8?q?qHtDcU0Ai8sRcmXCIeNnb/yz0pNbBsFMdmQdNwd?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 72121be3-4b81-42c1-35d5-08d97474f0dd X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:25.8471 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZTHw9aB/EIt3pIoCtAEy3ROGD4CtlnwMbGpEZ9e28kU8E1IdtwidKqOLIGhXZ1ETLcftAx0kqfnMH4JbBmTtXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5099 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Unify all comments of the wfx driver to use the same comment style. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.c | 11 +++-------- drivers/staging/wfx/bus_spi.c | 6 ++---- drivers/staging/wfx/fwio.c | 3 +-- drivers/staging/wfx/main.h | 3 +-- drivers/staging/wfx/scan.c | 3 +-- 5 files changed, 8 insertions(+), 18 deletions(-) diff --git a/drivers/staging/wfx/bh.c b/drivers/staging/wfx/bh.c index e2d2a64ce66e..b026507c11ef 100644 --- a/drivers/staging/wfx/bh.c +++ b/drivers/staging/wfx/bh.c @@ -265,9 +265,7 @@ static void bh_work(struct work_struct *work) wdev->hif.tx_buffers_used, release_chip); } -/* - * An IRQ from chip did occur - */ +/* An IRQ from chip did occur */ void wfx_bh_request_rx(struct wfx_dev *wdev) { u32 cur, prev; @@ -285,16 +283,13 @@ void wfx_bh_request_rx(struct wfx_dev *wdev) prev, cur); } -/* - * Driver want to send data - */ +/* Driver want to send data */ void wfx_bh_request_tx(struct wfx_dev *wdev) { queue_work(system_highpri_wq, &wdev->hif.bh); } -/* - * If IRQ is not available, this function allow to manually poll the control +/* If IRQ is not available, this function allow to manually poll the control * register and simulate an IRQ ahen an event happened. * * Note that the device has a bug: If an IRQ raise while host read control diff --git a/drivers/staging/wfx/bus_spi.c b/drivers/staging/wfx/bus_spi.c index 61f73b3ebc80..55ffcd7c42e2 100644 --- a/drivers/staging/wfx/bus_spi.c +++ b/drivers/staging/wfx/bus_spi.c @@ -38,8 +38,7 @@ struct wfx_spi_priv { bool need_swab; }; -/* - * The chip reads 16bits of data at time and place them directly into (little +/* The chip reads 16bits of data at time and place them directly into (little * endian) CPU register. So, the chip expects bytes order to be "B1 B0 B3 B2" * (while LE is "B0 B1 B2 B3" and BE is "B3 B2 B1 B0") * @@ -241,8 +240,7 @@ static int wfx_spi_remove(struct spi_device *func) return 0; } -/* - * For dynamic driver binding, kernel does not use OF to match driver. It only +/* For dynamic driver binding, kernel does not use OF to match driver. It only * use modalias and modalias is a copy of 'compatible' DT node with vendor * stripped. */ diff --git a/drivers/staging/wfx/fwio.c b/drivers/staging/wfx/fwio.c index c5ba0a50b474..98a9391b2bee 100644 --- a/drivers/staging/wfx/fwio.c +++ b/drivers/staging/wfx/fwio.c @@ -69,8 +69,7 @@ static const char * const fwio_errors[] = { [ERR_MAC_KEY] = "MAC key not initialized", }; -/* - * request_firmware() allocate data using vmalloc(). It is not compatible with +/* request_firmware() allocate data using vmalloc(). It is not compatible with * underlying hardware that use DMA. Function below detect this case and * allocate a bounce buffer if necessary. * diff --git a/drivers/staging/wfx/main.h b/drivers/staging/wfx/main.h index a0db322383a3..115abd2d4378 100644 --- a/drivers/staging/wfx/main.h +++ b/drivers/staging/wfx/main.h @@ -23,8 +23,7 @@ struct wfx_platform_data { const char *file_fw; const char *file_pds; struct gpio_desc *gpio_wakeup; - /* - * if true HIF D_out is sampled on the rising edge of the clock + /* if true HIF D_out is sampled on the rising edge of the clock * (intended to be used in 50Mhz SDIO) */ bool use_rising_clk; diff --git a/drivers/staging/wfx/scan.c b/drivers/staging/wfx/scan.c index 9e2d08317c9e..668ef2c60837 100644 --- a/drivers/staging/wfx/scan.c +++ b/drivers/staging/wfx/scan.c @@ -85,8 +85,7 @@ static int send_scan_req(struct wfx_vif *wvif, return ret; } -/* - * It is not really necessary to run scan request asynchronously. However, +/* It is not really necessary to run scan request asynchronously. However, * there is a bug in "iw scan" when ieee80211_scan_completed() is called before * wfx_hw_scan() return */ From patchwork Fri Sep 10 16:05:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509381 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C538BC433EF for ; Fri, 10 Sep 2021 16:08:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B4269611F2 for ; Fri, 10 Sep 2021 16:08:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229908AbhIJQJP (ORCPT ); Fri, 10 Sep 2021 12:09:15 -0400 Received: from mail-dm6nam11on2073.outbound.protection.outlook.com ([40.107.223.73]:5472 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229877AbhIJQIL (ORCPT ); Fri, 10 Sep 2021 12:08:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JtISoqiPdNM9iyx3UuJkMPl4zVIYXKrXb/hgMOvJzr81AcfjXo6PoLxjuoqUyzbZ7u1QbZiLy94OTFJR26wN0M2JDLuG9dlYScF9WjTLll2YMfVzAWUV5YgM9Ab0Dyuc4rLOrtzqjl8o1W0iBjNv8DqhxXqA0ruVxguakE7CUJeqJNgjbwAdLsovV/LY7GwArSMX5yea1o6qV42feAwenLqEC3X4bCSiyeoaV4oCAS69VnpWDS9grc984PJb5W7n34AdMT3yNklH2wvUCuwL3PJY92DPLNA1xDgt2DPuIILhxVplqu8000E4GxRRrrONepnXaFeu8w6qRiMFXJnhHA== 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; bh=cfofvTSkHjYDsU3jyU6ThliW4B7lrnRRP6krW+vV/8o=; b=WrB6UF8xnHVqVkVzbKOhIkbiJQaobIQ/ll4mczuM/8PU3xr1o7Cy7V7jxIC8Giga+KBe2qLvCezWVJUoRxjTEvlVn+HFrcN5FqKl+ICtf+nsX7XfLHPj+HH0f3Asfkg6TLVFNvqq9HVqSy9clN+sisLBi2PzEASgjHEJP0AyPHsxzsaJa5vOPxxPF6xbxDFnbvWrL7+EU5D6rj7pNZ5DEQmV0xWIog4/ixIZTQuwTBKRomidYTxDwF5XfsEky4XKekEV28JPTAfe9h9qqckd9tpgIkkPTs13f8SEDeE3swNWDf/4OUArBvXAp4hMqaeNtzDpA/PoK1JaFNXeVrqcTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cfofvTSkHjYDsU3jyU6ThliW4B7lrnRRP6krW+vV/8o=; b=PXFUeXasAfCIPvLMZ89OgjgT61AIDfnN9JqcLGwriJB48iMTkfld966b30vyNp4ngfu3moX4RO0Ls1nQVvzLd6mTxcLHiXc3RmhWVf+xvjjxrYkpEuUajxhZRboUt4gK1ksHhb5k9VwHFJREnZ3rXdjd6vZJeXbl84ClyFIbu28= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5099.namprd11.prod.outlook.com (2603:10b6:806:f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:06:28 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:06:28 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 29/31] staging: wfx: remove useless comments after #endif Date: Fri, 10 Sep 2021 18:05:02 +0200 Message-Id: <20210910160504.1794332-30-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d2f7835a-3722-49cb-70b1-08d97474f228 X-MS-TrafficTypeDiagnostic: SA2PR11MB5099: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1417; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hZx0K0gjuiLTJ1RlAQal8g58VOdJLel6WiecZbKSLiDjpr7JLAqbyiUi3S3FTihl8V1zUR9qUMWNsHzHSYOTDRmhj7L7KIX8chX+PyE6uyaSK1tQghUY33RH7Fmb8ASEZPWTvZF7sIKmE2hupBKy8w6+PKGMkUwsdaOiC0YZGOsmd9CifywEjyjcEU3HdNHh+LCdwjj7kSHpIaYHdxhlaFb+93NJfrB/McTKbd2ph1ZxkKL4Y/pQpu47Gw0AZAmuPiV4PSnMHvqz5Bi6Lqow/kXkl2JnKB+0dnISvGsRK5rKRL5nkF7suhkSX6YxpsuWeFHip0e+YWMMTFfeIynFDXmnk9kL3XaVd7FWe/Pia3PzGpqxbgngbOw5+sIkRRS1IBTxeA2+/xDQbstLjitgX3s1FuJelecXVIIXwYg8agrCs+h7X7wYL/0D6827qC7xjy1UaH4qEknVccpKmSUMgvHyjhLSFQGzGPvB1WLAmW2YEyA1v7dBh6Z0fMcOXuv3GuWai+Z4AoGQVTlXIZCM+eImUdl0RM1aNilAHfCh2zSAZ2FQQHeMwIMK5tPzy11quaGRfGSbhyyduV7qaqyY55Acvy9T24r2NPsfITEqJO+nfmxRr3+yTxp0QXMV3uXirNWOUWUV4DJD8hqWp7g7bg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(39850400004)(396003)(136003)(346002)(83380400001)(316002)(66556008)(2906002)(6666004)(6486002)(86362001)(66946007)(54906003)(36756003)(1076003)(5660300002)(38100700002)(186003)(8936002)(66574015)(2616005)(4326008)(8676002)(66476007)(478600001)(52116002)(7696005)(107886003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WjlrYuzDl56MjTpoNpRx4pu46?= =?utf-8?q?G/oiEeTRM5Z14AX8btLUp6fwaaVoLiIyENJwBOUMNNmbfreSp0FiJjIx?= =?utf-8?q?dksZn/xV9elZfHk39jsE1xs3tj8BMX1UsQTemF4nW70k/BJrHDkA1rj1?= =?utf-8?q?HguHU5OcMEMDxYzVCIcRa1svGJDw8ltQJID18wXvRalfOCph0LKHkeGI?= =?utf-8?q?edMmhA1al0SK+7AJOX32q1dPqe03K+soE6h+5fTulhJBJS/4/fFAN2Nj?= =?utf-8?q?SqTegq/xs3MxU14Go9HNVRvs56D9sKYxfrixFCDG/paYtpPs9+neNEk+?= =?utf-8?q?2SjVHJlY03YDboZtyoEL3vxHFEk+TCp3iFhp0e3t8VafT6kDwmoOUhEr?= =?utf-8?q?6DycaBQeQWg9GnY6CsRwr++3+t1GW691j0T3zKGT+Rr42yOqBH4D9Y8K?= =?utf-8?q?Bsr1QJFUxSi9yUSPxyQOOM0Qbe8vqpB5ITBNe8Amc6aWrRBqQDxTVV5+?= =?utf-8?q?dTqXAbH3H6AKCSEL4rFMn8RIMxzUKmuloDAhcNi2gymZhjAwTMZaB5eW?= =?utf-8?q?aQZOXz+tkSdS0yqjPQexKdVpnbVIZHu5TD8xbkEDkzrLLT7CiyOH9Z5X?= =?utf-8?q?WAAyOBX4P2lppJvZEL1YA81Nm3mrRaGhNrsSWgO1Y1rSSEatioLOswSg?= =?utf-8?q?k7rTMguNpsmaeUxeOZi/Mb2dBED9gpmxIM+fbUlzMKdDl0vULRULcBrm?= =?utf-8?q?vUIqkjMyQ3YGhQ71lc4zieZ1epHffP3dvivjMsq5ovyC1Mjnopw2ny2x?= =?utf-8?q?1sguvgk5XE7VwhRJfLrByzlr/3pGPzlRvUrm13SQvmB01in2E6uKrC3j?= =?utf-8?q?30qXjHIfKR0WETfSvWPV9RxCmuY4nYXSQ2OgnPHOKO7e+u6i/v0UT6P8?= =?utf-8?q?JsF/sysIjBOKgN8Dw3nIG+pFKk3oCV0i06CG8eWgWSzyunORc3R4f3Ru?= =?utf-8?q?u/DDf2jNJBDF7RhRAzO9KUIy2lcmN4cEbksZ8qhNb4DvzdIHnaSoa3gC?= =?utf-8?q?8KiQjt/SfTcGFFrQYKkuHlomhQENJoUz4IeWRRoNBbyCNkwxfwV/0blG?= =?utf-8?q?Xhewsw2LgbPpAie+UHTFLCphi+gscVkawIgikd7f1ZP5tNJHU7UUzdRo?= =?utf-8?q?LgKfl8F9q3tDDja0Vhs0N4Z4MOm+aZh07vdjTCfRzUrFFgXWFN3EpVhv?= =?utf-8?q?sxp5ZdmWpGVnNCIS0GeYZkvEWDjSFjN9eQKmBWpstF0N+kX65JJBA79N?= =?utf-8?q?moc9RwwUlsSxBe5rS7HOAtUzhtxTlPshdswVY1mbqEhm+WyM/55o7ODW?= =?utf-8?q?cxZ3DP1y5G7IlCAr7z5qf5ma6fl/s5cPNgUF0h5ONhKPVQq9cmgQMlHn?= =?utf-8?q?TgVBdY20WrCFHjHZfBkLhPOVJmcxyiZRwH+ga/9vzkbspx1n7zCGM+ff?= =?utf-8?q?Ko4pF5vdvtJCL0lF6fLomrWHjUoybLxy9ve9wX0?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2f7835a-3722-49cb-70b1-08d97474f228 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:27.9029 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sXqFjLORLLqbKaunVXWRrn8RAN0b/SXtVeCiHZcoXdQSQqhUvEFBSryrliFIszjhgsI/vQl485IiQeSsZaFYzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5099 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Comments after the last #endif of header files don't bring any information and are redundant with the name of the file. Drop them. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bh.h | 2 +- drivers/staging/wfx/data_rx.h | 2 +- drivers/staging/wfx/data_tx.h | 2 +- drivers/staging/wfx/debug.h | 2 +- drivers/staging/wfx/fwio.h | 2 +- drivers/staging/wfx/hwio.h | 2 +- drivers/staging/wfx/key.h | 2 +- drivers/staging/wfx/queue.h | 2 +- drivers/staging/wfx/scan.h | 2 +- drivers/staging/wfx/sta.h | 2 +- drivers/staging/wfx/wfx.h | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/wfx/bh.h b/drivers/staging/wfx/bh.h index f08c62ed039c..6c121ce4dd3f 100644 --- a/drivers/staging/wfx/bh.h +++ b/drivers/staging/wfx/bh.h @@ -30,4 +30,4 @@ void wfx_bh_request_rx(struct wfx_dev *wdev); void wfx_bh_request_tx(struct wfx_dev *wdev); void wfx_bh_poll_irq(struct wfx_dev *wdev); -#endif /* WFX_BH_H */ +#endif diff --git a/drivers/staging/wfx/data_rx.h b/drivers/staging/wfx/data_rx.h index f79545c06130..84d0e3c0507b 100644 --- a/drivers/staging/wfx/data_rx.h +++ b/drivers/staging/wfx/data_rx.h @@ -15,4 +15,4 @@ struct hif_ind_rx; void wfx_rx_cb(struct wfx_vif *wvif, const struct hif_ind_rx *arg, struct sk_buff *skb); -#endif /* WFX_DATA_RX_H */ +#endif diff --git a/drivers/staging/wfx/data_tx.h b/drivers/staging/wfx/data_tx.h index dafd8fef44cf..15590a8faefe 100644 --- a/drivers/staging/wfx/data_tx.h +++ b/drivers/staging/wfx/data_tx.h @@ -65,4 +65,4 @@ static inline struct hif_req_tx *wfx_skb_txreq(struct sk_buff *skb) return req; } -#endif /* WFX_DATA_TX_H */ +#endif diff --git a/drivers/staging/wfx/debug.h b/drivers/staging/wfx/debug.h index 6f2f84d64c9e..4b9c49a9fffb 100644 --- a/drivers/staging/wfx/debug.h +++ b/drivers/staging/wfx/debug.h @@ -16,4 +16,4 @@ const char *get_hif_name(unsigned long id); const char *get_mib_name(unsigned long id); const char *get_reg_name(unsigned long id); -#endif /* WFX_DEBUG_H */ +#endif diff --git a/drivers/staging/wfx/fwio.h b/drivers/staging/wfx/fwio.h index 6028f92503fe..eeea61210eca 100644 --- a/drivers/staging/wfx/fwio.h +++ b/drivers/staging/wfx/fwio.h @@ -12,4 +12,4 @@ struct wfx_dev; int wfx_init_device(struct wfx_dev *wdev); -#endif /* WFX_FWIO_H */ +#endif diff --git a/drivers/staging/wfx/hwio.h b/drivers/staging/wfx/hwio.h index 9a361ed95ecb..ff09575dd1af 100644 --- a/drivers/staging/wfx/hwio.h +++ b/drivers/staging/wfx/hwio.h @@ -72,4 +72,4 @@ int control_reg_write_bits(struct wfx_dev *wdev, u32 mask, u32 val); int igpr_reg_read(struct wfx_dev *wdev, int index, u32 *val); int igpr_reg_write(struct wfx_dev *wdev, int index, u32 val); -#endif /* WFX_HWIO_H */ +#endif diff --git a/drivers/staging/wfx/key.h b/drivers/staging/wfx/key.h index dd189788acf1..2d135eff7af2 100644 --- a/drivers/staging/wfx/key.h +++ b/drivers/staging/wfx/key.h @@ -17,4 +17,4 @@ int wfx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key); -#endif /* WFX_STA_H */ +#endif diff --git a/drivers/staging/wfx/queue.h b/drivers/staging/wfx/queue.h index 54b5def2e24c..edd0d018b198 100644 --- a/drivers/staging/wfx/queue.h +++ b/drivers/staging/wfx/queue.h @@ -42,4 +42,4 @@ unsigned int wfx_pending_get_pkt_us_delay(struct wfx_dev *wdev, struct sk_buff *skb); void wfx_pending_dump_old_frames(struct wfx_dev *wdev, unsigned int limit_ms); -#endif /* WFX_QUEUE_H */ +#endif diff --git a/drivers/staging/wfx/scan.h b/drivers/staging/wfx/scan.h index 562ca1321daf..78e3b984f375 100644 --- a/drivers/staging/wfx/scan.h +++ b/drivers/staging/wfx/scan.h @@ -19,4 +19,4 @@ int wfx_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif, void wfx_cancel_hw_scan(struct ieee80211_hw *hw, struct ieee80211_vif *vif); void wfx_scan_complete(struct wfx_vif *wvif, int nb_chan_done); -#endif /* WFX_SCAN_H */ +#endif diff --git a/drivers/staging/wfx/sta.h b/drivers/staging/wfx/sta.h index f359f375cc56..4d7e38be4235 100644 --- a/drivers/staging/wfx/sta.h +++ b/drivers/staging/wfx/sta.h @@ -70,4 +70,4 @@ int wfx_update_pm(struct wfx_vif *wvif); void wfx_reset(struct wfx_vif *wvif); u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates); -#endif /* WFX_STA_H */ +#endif diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h index a4770f59f7d2..f8df59ad1639 100644 --- a/drivers/staging/wfx/wfx.h +++ b/drivers/staging/wfx/wfx.h @@ -161,4 +161,4 @@ static inline int memzcmp(void *src, unsigned int size) return memcmp(buf, buf + 1, size - 1); } -#endif /* WFX_H */ +#endif From patchwork Fri Sep 10 16:05:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509044 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-21.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D92E8C433FE for ; Fri, 10 Sep 2021 16:08:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5A5B611F2 for ; Fri, 10 Sep 2021 16:08:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233363AbhIJQJW (ORCPT ); Fri, 10 Sep 2021 12:09:22 -0400 Received: from mail-dm6nam11on2085.outbound.protection.outlook.com ([40.107.223.85]:5600 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231389AbhIJQIV (ORCPT ); Fri, 10 Sep 2021 12:08:21 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nbTQ8UdV5bYKJANB+ZTpyUrqusP3AQSdqoHa1Sl0k8DlNlyrhODKNvn4adYp889LdybV97on3H6WQ52Niv/BP14YMQ47ZFt9lX3G+Z8Jt7qJpyYSEhAOYm9FwOW6Yf56ThsBijGEnGG4c1KLwKYOUY+pnr2VmHqNBgEs+BQM+6eA/1Zhh6OsTzbnuRWED341fGzSpVAManhjie2FZNdomn1iDV1iUwxT3Kwdcp/NW+97ns3VydkdeWEpSIyQus7PBN3pNi2Z8Ee2ZoFKS9i6qZeCi0oYT/wYyT3asNLT9BIccMpIiCmG+ETHgjVSyO6Y97M77Fk+sTreqh0vGIE6sA== 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; bh=xsUUtMkFWtWrY3otxSBJQqe+VKNKELAgz0g8V67SD4c=; b=NNchf6pc76pAtdlcr14a303E4YMwHvS9p1f2ZdGyGomceQk9bind3703nR0fzMi9Ail27d3kp2dKsYT9CiRJCf4ApnYxGj282kjgCtwHLgBt+wSws+o63wY59Qf2nPilvhXvIKN1tMnpbKBpBeBCfmk8gF3mcBExc4pgDfXDjtBUbGSZcqFCjcoD+J+ocw7o5HjFgdLCBmmxuPwdneAALN5DXvnjvRnlyMlYb/KjGbHCZlRkqPymna77ThRMQDOHI2HNf5IX/lT5Loit7fSInIjmLqEm8rvcKUD+ewJEcYSYeXDoo3c7sesjkw1dIWO0VklZjoMGIcxUyMzHLNIriw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xsUUtMkFWtWrY3otxSBJQqe+VKNKELAgz0g8V67SD4c=; b=mQCwt8HYOfq77gxUaG8nv86p3yuLZRWc7V5u6iG8ZQ3/IRSJlY4Jzv28fg7sDNRyyYBD8HKqsfEWyLKwrjGLUTU99xRWRRNooENJaeQomEbFHaOKoKm/c1gwrjGEYXIcLjUyMW914Gv300L66v+kwDVXUZSHHudF5dOV+eyCTNs= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5099.namprd11.prod.outlook.com (2603:10b6:806:f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:07:00 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:07:00 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 30/31] staging: wfx: explain the purpose of wfx_send_pds() Date: Fri, 10 Sep 2021 18:05:03 +0200 Message-Id: <20210910160504.1794332-31-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 58f66a6e-a142-4705-7c30-08d97474f331 X-MS-TrafficTypeDiagnostic: SA2PR11MB5099: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uzInxpSqy4hP95NE1rzU7UCqGCIfvwRfYXss2BbiN5alG6zDmaHjTQYJD8y1eZePoSfGMqfX55C5t35mmR7XrXWgBD0SB3HLdF9jDqgcdCcQTjNioRGanYfVzdV+I6Svag4cXCnRxpnFufaoNrpAXyRTqyhbUStcoNm4843opyrabL1eIHgqkpQeCv21FImwTn5hA1gEAmlMp12cj00EbYSZHjkL0UbimqENy8gyuNfI3C3ax2qJNBQHwwSMeUlVG/1GiWoz/9uQAIWjbnAbylgDgZTVayo6hhvjGfRJaa03uY/Ao5rIbJkokZmXkDpTSjyJyyoHmBCgp3FOgL2tMXiWVcJOsZt6IhL9yOcBUyrehIg3b7CdQPAUSiGDREdhEHtvRz+ebUbrTN4dTHHS1Fp4vX/BJZ0Ut7fJG/FIU9MN9X8CbbbN6SQs758yyfj2wp0FDt9OA8OnxiYskAK+MH4QkDYKHFwQwNPNSfAN/RribBUVSZ4Uf6b8P9bK+rn6rxdIgsqFV2dTqTtRaRj04JWd5vnkWIQBUh9IuHZZ17uXhIjt/HpF60mR6IzkFVPTOwBMoPNq5jS2E4pujh2/cwwJcq2JN4P5aO+sDruzGw1mrTDvTaO+p57d2pVcIZ+WWD189CZDsN66MsDMqbk2og== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(39850400004)(396003)(136003)(346002)(83380400001)(316002)(66556008)(2906002)(6666004)(6486002)(86362001)(66946007)(54906003)(36756003)(1076003)(5660300002)(38100700002)(186003)(8936002)(66574015)(2616005)(4326008)(8676002)(66476007)(478600001)(52116002)(7696005)(107886003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?g2b8I3mu6VsWQ9xtR/w38BfEW?= =?utf-8?q?gF2aU5fBWOuk9gscvrNHH5b8vudtmzjnjqrkZLLVNfibbKxQJWA6I1OS?= =?utf-8?q?nNI3se+jZNYx9LTBlVT+obJDLZNeJKEhLfTvK8T74HXia/FV01B7rJQY?= =?utf-8?q?fgmq8f4q451v2FKuwesu7Q/0EieQ1YyBnZYHeGVqOIKtyn8twWyxYXtq?= =?utf-8?q?pIUrgN1Jo3FjdyXbFk67mrfi1L6sW+T7pbxlKI/bXf+V/FyPMyAFCEK2?= =?utf-8?q?gSacu+6qw6pptYRGfMArCIg/7LFb9R+uET6AqyZRciAnXeURaJNwQ5l+?= =?utf-8?q?7cmetrK1p/ROxsPm9+zDr6kRAIa0LQJwrp5YCX4h8OdWCjwMBbkN8QDv?= =?utf-8?q?99irXZrT4YA60NgOgcnz9IHOZzCdv04y9H3WhMvGdbn96c61ARxaAqC8?= =?utf-8?q?QqAVytbY73lbwP8dimAWXQ6BIswRWxhFfPENsLtWsBj6LkmuVAh5zAoS?= =?utf-8?q?EiiSki+aTw97EcliN6VVEcn4I0U9UtaC2KfQx6gzqPQqgbpKgn/pWSdX?= =?utf-8?q?c2xfHPpQm9c7v8bmubhs43p/t6dKRR4mNOAu/vxDvi/XC+vc9yBlvpI/?= =?utf-8?q?n2pmlCIkIjS02zd3t3B2wv8zZrlRANSqEDEgbdKmbQU1xTrjgdndCpIW?= =?utf-8?q?/2lqmrEiM7VGg4jHa/GFK0BVQE1MpdjTWXNihFjpLlfn3SsuAjxf4y9I?= =?utf-8?q?sVRWLfQjG8zwh68xg/vXE9a5OhJqxTz4gHYKivJeThuCrzYxUhwrwQf6?= =?utf-8?q?OH4uSSlDlu6oaMNCa017L0JmMV+tNYFn5+8XmRD0hYi2zRoXK4EkydQ1?= =?utf-8?q?+13oFkUpgsFiukWD2GvXwdTlg1aVXwSPfPdPqm1ws6a20vhdXj7zDa1/?= =?utf-8?q?jDu+zTofQNa9H4sPcjoctuLUTO/fttkd18FsJn9gobiHahk8ax/ovRg+?= =?utf-8?q?+Z5vcbR7oOwcHLfKy+Y7kGj1gzX2kK6Html/Vp94pa14HUZXJK9lralm?= =?utf-8?q?TqPK4V/UTO62LlMLzDGAZ9aq3OH8rqedivKjkp1kDqN4t3WVuA/mwkyd?= =?utf-8?q?JAjFh1EaZVASuJoGupXhIxcxCoXrzKkRiuu2a8W527TQc/WNXZ14K0Af?= =?utf-8?q?n0/5+mEG7nPVgRYrm2wjnTqiV40jM8byOiEJw0VyUyA2zHHoVlYv5Fui?= =?utf-8?q?XwkVxjzie85CKj9HbEo4LHq3Ji6bKAX3TVaozd3N2aIEyghDkHy+KeOV?= =?utf-8?q?tTxIOt82I1KOt0MAs4I+lXaX5tbbrGFetVhIc9Vqc5564yhXYtdumMdh?= =?utf-8?q?hnX6JHVB/A6nbDC2ScipXMQSLO1ZZ8w1OHz4lEq8fRBY79C5xlQDEqYP?= =?utf-8?q?DjWGJtCB7ilywkoQgnrK4AA8ihWtgwPxreBRgA91Dqi5tCk4aZi36tYM?= =?utf-8?q?Ck7RP9aT6Lhfia/RXYYvYi0adnHLVJsZufduvt7?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58f66a6e-a142-4705-7c30-08d97474f331 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:29.7998 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PaurAW7MHoFdlTyNGOCyjgxNI+jl8qpJ5qUz4Wziq8myRpmohg5m9KV1wJxLsDpaskALia/xxc0FBvtHtGbMYA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5099 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller On first look, the goal of wfx_send_pds() is not obvious. A small explanation is welcomed. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/main.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 83292544b10a..4386e9957ee6 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -163,7 +163,20 @@ bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor) return false; } -/* NOTE: wfx_send_pds() destroy buf */ +/* The device needs data about the antenna configuration. This information in + * provided by PDS (Platform Data Set, this is the wording used in WF200 + * documentation) files. For hardware integrators, the full process to create + * PDS files is described here: + * https:github.com/SiliconLabs/wfx-firmware/blob/master/PDS/README.md + * + * So this function aims to send PDS to the device. However, the PDS file is + * often bigger than Rx buffers of the chip, so it has to be sent in multiple + * parts. + * + * In add, the PDS data cannot be split anywhere. The PDS files contains tree + * structures. Braces are used to enter/leave a level of the tree (in a JSON + * fashion). PDS files can only been split between root nodes. + */ int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len) { int ret; From patchwork Fri Sep 10 16:05:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 509377 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55A69C4332F for ; Fri, 10 Sep 2021 16:09:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3FCBB6121D for ; Fri, 10 Sep 2021 16:09:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232665AbhIJQLC (ORCPT ); Fri, 10 Sep 2021 12:11:02 -0400 Received: from mail-bn8nam11on2056.outbound.protection.outlook.com ([40.107.236.56]:31936 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233050AbhIJQI7 (ORCPT ); Fri, 10 Sep 2021 12:08:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NPKjQ5WXf/EeCL1r9Pn22BQCWK0SzREnVjo0V7/xNayXEUu+2su5v6FrNX4igaPGrzDEPnUiucnb48oHM9pFsyZaG1GAH4yv1k13cfiviaMnEAJ76Pk60F3mGW/TCzeGl2v6mV9hcIgBZmrpxrgHM0JrKdIS2HVpBp5+dc4a0Ge6UUNbbSu4At7UPw6w43xTQwwKp5eiMCzhPf9eh4VkghMNa6QiqwYU4HMQRKXdC5hnmnNH1rFXSvEWVGD+a7UA4FUuxb/aAkQT+NxL1Kezpi8DImAjx0eMBx/l1wHlcRu9XX8azv7mjUN0pErHOVB0Q1+vO5G6dQ4fssf743vNIQ== 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; bh=xN4+7gc0FnJx3MvoIvCbVWojWzEUHWgpv9NIeAgt6mU=; b=SY+2VLtfaNlKyzK3tzJmRtmsTmPvsz/i5gEBbEBb/6YYAh47SxaudynqrqSRbkT2hFyqPsh2htNcBR/JDVRimdh2EbC2HBPfGW3r4Rolh4tYqJ9b0Raf7lRUaGw7ws3XlRmCdtePy7ZH8vKMR99nYr/L7Ho8XeZ473dZYpGZAw2qw2v1Ah6vIaj3WMq0HJbdZaC2M84FiWm3LiPmoH0Kzyze9vvv4cUnMBbXW+OidALdyRJaWv63KZPbWaLjgrhA3oK7y41SmtjdiGxkjHQqB1F0XpOayW/6ppEmAdASkLE5sxv5dU32anyzVGYScRAS6jmUn5qJ/knljsRvrs6o6w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xN4+7gc0FnJx3MvoIvCbVWojWzEUHWgpv9NIeAgt6mU=; b=U79gSkbPpXZHxHjPRXPCf+JNdTZLCa6xNEC618fTACCEOga/8NNgpJJ9/Rbg5fmziH2ctCVPiUkLt/+9/YkeQ54IP03ldq/BMAT+GWrTRo8R2CWO6FCPgnKaVRrG2aTVNBfxC+LUt7RmZ2VHWJp3mRmlSJep9/R7fXnWSbI8JTY= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none; driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB5099.namprd11.prod.outlook.com (2603:10b6:806:f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:07:00 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:07:00 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 31/31] staging: wfx: indent functions arguments Date: Fri, 10 Sep 2021 18:05:04 +0200 Message-Id: <20210910160504.1794332-32-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:06:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4cd6e4b2-150e-4d82-7e1b-08d97474f447 X-MS-TrafficTypeDiagnostic: SA2PR11MB5099: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:378; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OWPrUOMDWre9YfY3QGE1Ty9OJYN04Im6w6V4FTNWqAylM6wWgi/n0dEn3fRyttPIMcdtUEqvLQteH9O4n44kLDxU3PhOVIxJiYdJoB6HinPcKKZ1Sgk4gGv1PDZVaKeh/Wej5CUeud2u/jEIPY77EZlgcQARdkrka0gv94CTa66szanlafA+Yp1XaQ/VNFHFUfrv5ks0DHUjN6oc6CmqT7Ieb6wvKVWPitd+Ys1wHaHUyk6ryq8f0g4YLhfP0hWNw4J9z4vTf0YsObgIYLmREIIkT3JyhUsPMqq29ravkCArD0iXj4Q8pSf9L9wpShIHvIPpmuKodoGmBnKJKa1fp78t1qslIfo0nBOWRYTQUgAahWtS5VkpdhjINHtX6HL0DnMkMYhVKN5TLvG5U/k1QxnH9b/Bs+7u8TNcv1mtt+obXnEa39dudDS9cJeGRpQbaLGHc7cpnQPTDY1l+3ynohEXIKAM8ZPPgA1C3j9HANBrgDaAtlsMNHswkD3sYK3Qqhfo9YSZetitDca3pYZkLyBEwhdahcUvbh8Hvj1KYEpuTxKmdgIDZkvE0KXK2gnwW4tilxdH4vmoVPtfhY6FMik7927FBk4nkLQ+ZtIijhxk+0kSDAD5ymE6+B0LLx63Q9aYwrV+SosxMSb/mYyhnw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2718.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(39850400004)(396003)(136003)(346002)(83380400001)(316002)(66556008)(2906002)(6666004)(6486002)(86362001)(66946007)(54906003)(36756003)(1076003)(5660300002)(38100700002)(186003)(8936002)(2616005)(4326008)(8676002)(66476007)(478600001)(52116002)(7696005)(107886003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ngnsAacL9LfaapxhmotA9Eq2p?= =?utf-8?q?C6Rg0xud/GiSQNpcaWnwKxsI9JXRR0EFs3wGIVQfIL0TY5OmUW31m+SZ?= =?utf-8?q?t30harVykSzEnohpoha8PbYC4N++2F2Wtz28bp9MS6hXIsN9ltbRFYnf?= =?utf-8?q?3/Yl6iMPwDpQUPvDVTG1salEXZZhkt3Mkll9vNr4ktaXR8QBEm9Orwtp?= =?utf-8?q?5lmSTTk7xn2pjxmy6gknxRiNRl/zaZwr5eWNiT8u6ZapGj8QRPNf7d4h?= =?utf-8?q?Q98ePhMH2E5+RWs6Ysq33+g4Azb2jVsq34TglETP9mKR/CvY92AOBS1H?= =?utf-8?q?GU2b1Vlu+YZAmW0GhzTSrEg4Ycq1X0ngH5KgQhxl0FzEaZxkRMf/wT7F?= =?utf-8?q?/+XZr24U7r1N2lqaYt9AJNuEEypzl80xr1uQoewolHekpF9UzFRmkYGW?= =?utf-8?q?ihNdeNBEfi9+EY0r6koenAeZCiGIwyidOgXJJC2AAMjXYk6IcCQAuQo8?= =?utf-8?q?i3f30/4kPbi6dVTUx4D57pPII34xutAHgIsnF8K5P/3FFk+Dz0vg0EsM?= =?utf-8?q?tz+jdbvDvxVNjgO9OVxaCoI/v+K2+vJgGQQSiKIb/pYttjRzHSb1Vxhh?= =?utf-8?q?jPzFpR3qihUNQW6ocVXZSogsGBHKfk+shRfR43y7dlgTXvLw2MLpJdxN?= =?utf-8?q?vGOX5x/cUl98u36PC0s3U0kwyLaOXCYEXCSP8Ezycao3vCZpH6jdE9vX?= =?utf-8?q?vApLk6c8xSPE3nOrZMlDuRy7adE81LK4cJdioz3jtzEX0Ypithkmxlwc?= =?utf-8?q?g6yziGJBTnhvQzgIBKLzuSkPThTEi0jib3BSbwxe1i4D/EPxkdzW7Uex?= =?utf-8?q?gMBoMd+NwcYDbGAkgAg5QryT08vZi6vCYtIxX4+UNEfyBksQJ8rO1xJn?= =?utf-8?q?kJ4wcctztEni1m8nhgCR8YDdOj0WDth69KB829DfCefSAG6U3d8bZ+8L?= =?utf-8?q?N57sxo0CD+CL1Dqxta2utk9UXnDri0IqS++LsmFATP7jwGUEMZrpthHn?= =?utf-8?q?FNZxMbT5dJsM6vkA82352A/8u4zE/V0GdBNOu5hb6j/3e1NVft/Lm8qx?= =?utf-8?q?v0wRoeN+4O6lZbhWlr1owVYJ+l9B9rt+tpe4oozFJR+jPHVleW+ICcDT?= =?utf-8?q?OiprUWeaEKCSCuWUDtT8T/UJ1+A5NY6xHYZQnPtuVF9BFw+wpXdasm4W?= =?utf-8?q?QyktqS5DjlKobzsmbyjfLiv5zls2R4PCXHIppMF/QUNfiBcXAMAPpwGF?= =?utf-8?q?YVrZBp//SqVmdj8eKE7Y/6ADP+i2z6TscRxBiFjxxLONI4GCNfxQ3gWl?= =?utf-8?q?rIJCI+1S87bZRskRsQOZX3X1xo75bgscM033djEpkDxfUA6GDm5dQrwe?= =?utf-8?q?jIVeGHvQecMaj6AHMxDSdzP0VIl6jcEO+Xi3hAiXS6ec5JonzH+QKnNj?= =?utf-8?q?lrej2f7Aik1xVCU+lxS29aNcCZZq1b6n7dyRbpA?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cd6e4b2-150e-4d82-7e1b-08d97474f447 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:06:31.5568 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UzOTUTYpu/kLQcX7gdqFEdPBjHP0MG80UT1hUFrVLecN3CmhxFxWI0LnRuPSaFywgSqJDSQzzY8KNqEt5K7DPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5099 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Function arguments must be aligned with left parenthesis. Apply that rule. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/hif_tx_mib.c | 2 +- drivers/staging/wfx/key.c | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/wfx/hif_tx_mib.c b/drivers/staging/wfx/hif_tx_mib.c index 45e531d996bd..97e961e6bcf6 100644 --- a/drivers/staging/wfx/hif_tx_mib.c +++ b/drivers/staging/wfx/hif_tx_mib.c @@ -75,7 +75,7 @@ int hif_get_counters_table(struct wfx_dev *wdev, int vif_id, } else { return hif_read_mib(wdev, vif_id, HIF_MIB_ID_EXTENDED_COUNTERS_TABLE, arg, - sizeof(struct hif_mib_extended_count_table)); + sizeof(struct hif_mib_extended_count_table)); } } diff --git a/drivers/staging/wfx/key.c b/drivers/staging/wfx/key.c index 51a528102016..65134a174683 100644 --- a/drivers/staging/wfx/key.c +++ b/drivers/staging/wfx/key.c @@ -31,7 +31,7 @@ static void wfx_free_key(struct wfx_dev *wdev, int idx) } static u8 fill_wep_pair(struct hif_wep_pairwise_key *msg, - struct ieee80211_key_conf *key, u8 *peer_addr) + struct ieee80211_key_conf *key, u8 *peer_addr) { WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); msg->key_length = key->keylen; @@ -41,7 +41,7 @@ static u8 fill_wep_pair(struct hif_wep_pairwise_key *msg, } static u8 fill_wep_group(struct hif_wep_group_key *msg, - struct ieee80211_key_conf *key) + struct ieee80211_key_conf *key) { WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); msg->key_id = key->keyidx; @@ -51,7 +51,7 @@ static u8 fill_wep_group(struct hif_wep_group_key *msg, } static u8 fill_tkip_pair(struct hif_tkip_pairwise_key *msg, - struct ieee80211_key_conf *key, u8 *peer_addr) + struct ieee80211_key_conf *key, u8 *peer_addr) { u8 *keybuf = key->key; @@ -68,9 +68,9 @@ static u8 fill_tkip_pair(struct hif_tkip_pairwise_key *msg, } static u8 fill_tkip_group(struct hif_tkip_group_key *msg, - struct ieee80211_key_conf *key, - struct ieee80211_key_seq *seq, - enum nl80211_iftype iftype) + struct ieee80211_key_conf *key, + struct ieee80211_key_seq *seq, + enum nl80211_iftype iftype) { u8 *keybuf = key->key; @@ -93,7 +93,7 @@ static u8 fill_tkip_group(struct hif_tkip_group_key *msg, } static u8 fill_ccmp_pair(struct hif_aes_pairwise_key *msg, - struct ieee80211_key_conf *key, u8 *peer_addr) + struct ieee80211_key_conf *key, u8 *peer_addr) { WARN(key->keylen != sizeof(msg->aes_key_data), "inconsistent data"); ether_addr_copy(msg->peer_address, peer_addr); @@ -102,8 +102,8 @@ static u8 fill_ccmp_pair(struct hif_aes_pairwise_key *msg, } static u8 fill_ccmp_group(struct hif_aes_group_key *msg, - struct ieee80211_key_conf *key, - struct ieee80211_key_seq *seq) + struct ieee80211_key_conf *key, + struct ieee80211_key_seq *seq) { WARN(key->keylen != sizeof(msg->aes_key_data), "inconsistent data"); memcpy(msg->aes_key_data, key->key, key->keylen); @@ -114,7 +114,7 @@ static u8 fill_ccmp_group(struct hif_aes_group_key *msg, } static u8 fill_sms4_pair(struct hif_wapi_pairwise_key *msg, - struct ieee80211_key_conf *key, u8 *peer_addr) + struct ieee80211_key_conf *key, u8 *peer_addr) { u8 *keybuf = key->key; @@ -129,7 +129,7 @@ static u8 fill_sms4_pair(struct hif_wapi_pairwise_key *msg, } static u8 fill_sms4_group(struct hif_wapi_group_key *msg, - struct ieee80211_key_conf *key) + struct ieee80211_key_conf *key) { u8 *keybuf = key->key; @@ -143,8 +143,8 @@ static u8 fill_sms4_group(struct hif_wapi_group_key *msg, } static u8 fill_aes_cmac_group(struct hif_igtk_group_key *msg, - struct ieee80211_key_conf *key, - struct ieee80211_key_seq *seq) + struct ieee80211_key_conf *key, + struct ieee80211_key_seq *seq) { WARN(key->keylen != sizeof(msg->igtk_key_data), "inconsistent data"); memcpy(msg->igtk_key_data, key->key, key->keylen);