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: 509089 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 BD93EC433FE 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 A74AE61205 for ; Fri, 10 Sep 2021 16:05:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbhIJQGv (ORCPT ); Fri, 10 Sep 2021 12:06:51 -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: netdev@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: 509088 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 5E764C433EF for ; Fri, 10 Sep 2021 16:05:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4B20A61209 for ; Fri, 10 Sep 2021 16:05:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbhIJQHA (ORCPT ); Fri, 10 Sep 2021 12:07:00 -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: netdev@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: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: 509087 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 2E73CC433EF for ; Fri, 10 Sep 2021 16:06:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 166E461207 for ; Fri, 10 Sep 2021 16:06:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbhIJQHN (ORCPT ); Fri, 10 Sep 2021 12:07:13 -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: netdev@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: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: 509086 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 3C609C433F5 for ; Fri, 10 Sep 2021 16:06:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 209D661167 for ; Fri, 10 Sep 2021 16:06:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231154AbhIJQIH (ORCPT ); Fri, 10 Sep 2021 12:08:07 -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: netdev@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: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: 509083 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 4AFCAC433F5 for ; Fri, 10 Sep 2021 16:07:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 364B16121F for ; Fri, 10 Sep 2021 16:07:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232674AbhIJQIr (ORCPT ); Fri, 10 Sep 2021 12:08:47 -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: netdev@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: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: 509080 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 49E43C433F5 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 32AEC611F2 for ; Fri, 10 Sep 2021 16:08:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233564AbhIJQJY (ORCPT ); Fri, 10 Sep 2021 12:09:24 -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: netdev@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: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: 509077 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 13273C4332F for ; Fri, 10 Sep 2021 16:09:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F0EF461242 for ; Fri, 10 Sep 2021 16:09:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232565AbhIJQLB (ORCPT ); Fri, 10 Sep 2021 12:11:01 -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: netdev@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: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: 509075 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 152DCC433EF for ; Fri, 10 Sep 2021 16:10:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F3B866121D for ; Fri, 10 Sep 2021 16:10:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233230AbhIJQLY (ORCPT ); Fri, 10 Sep 2021 12:11:24 -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: netdev@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: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: 509085 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 6B657C433EF for ; Fri, 10 Sep 2021 16:07:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5580A6120E for ; Fri, 10 Sep 2021 16:07:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231542AbhIJQIV (ORCPT ); Fri, 10 Sep 2021 12:08:21 -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: netdev@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: 509084 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 D876FC4332F 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 C012261207 for ; Fri, 10 Sep 2021 16:07:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbhIJQIb (ORCPT ); Fri, 10 Sep 2021 12:08:31 -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: netdev@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: 509082 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 3C55DC433FE 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 22DDE611F2 for ; Fri, 10 Sep 2021 16:07:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233155AbhIJQJA (ORCPT ); Fri, 10 Sep 2021 12:09:00 -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: netdev@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: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: 509079 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 8BF14C433F5 for ; Fri, 10 Sep 2021 16:08:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7045D6120E for ; Fri, 10 Sep 2021 16:08:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233654AbhIJQJd (ORCPT ); Fri, 10 Sep 2021 12:09:33 -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: netdev@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: 509078 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 6E30DC433F5 for ; Fri, 10 Sep 2021 16:09:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4F6926121F for ; Fri, 10 Sep 2021 16:09:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232329AbhIJQKt (ORCPT ); Fri, 10 Sep 2021 12:10:49 -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: netdev@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: 509076 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 8DAC0C433F5 for ; Fri, 10 Sep 2021 16:10:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 77E4B6121F for ; Fri, 10 Sep 2021 16:10:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229503AbhIJQLU (ORCPT ); Fri, 10 Sep 2021 12:11: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 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: netdev@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: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: 509074 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 6F0A9C433EF for ; Fri, 10 Sep 2021 16:10:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 38F0E6121F for ; Fri, 10 Sep 2021 16:10:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232599AbhIJQL4 (ORCPT ); Fri, 10 Sep 2021 12:11:56 -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: netdev@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: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: 509081 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 1073FC433F5 for ; Fri, 10 Sep 2021 16:08:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA8FD611F2 for ; Fri, 10 Sep 2021 16:08:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233140AbhIJQJR (ORCPT ); Fri, 10 Sep 2021 12:09:17 -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: netdev@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