From patchwork Mon Aug 7 15:05:33 2023 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: 711531 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDA12C00528 for ; Mon, 7 Aug 2023 15:06:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbjHGPGL (ORCPT ); Mon, 7 Aug 2023 11:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjHGPGK (ORCPT ); Mon, 7 Aug 2023 11:06:10 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2081.outbound.protection.outlook.com [40.107.223.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DB4610DE; Mon, 7 Aug 2023 08:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fdnouJEJns/MVAEQ5nfNHDovci46JCOHkfmaZBYHFf+kSuqHRhtVJ8CjUs7D1jIfP0A6h5RdlKxer6wxejkFxzVdmj/U7qnWhgWjU0GpnsZ79fkog0zBp67+FJSbh+h5yT65W3LYlGquflPZyFgK2hE1HDT0PZiPrp43X88rs+ZS4zyjxUos+EPHhC0V6L7YhtvPmJDXAEOehw+55/RDIabkdstmRHoWJuMFpzWFj+byZ8baOfhWYs5Ymmr13Fx+tDeukptnatIGjTyc3vgm+gJLbc/EaiKtMGMFWpTHTNfY2cB0WJvJp1HDadrI0rtlWlvK/hsnBNQjHvXoE3UHKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NNW368FJ5011+JKUDzVVojthKAEb404dVl3QoIUvwsY=; b=RmeT/u9qdUc9S7dDyoI8x/fAPYQRmBFDvFM296z2bzhMUrlS6fgceE88PQWsgeIROqaQ0la67BWoQa7s+620wIxXBPKRcc/xNrlIdTJvToPSlVC5Wirt5QPkYk5Re6WfZlcShEHT3cFMDenzwKyaXovOmwjhWb2Rtw3aDBiFsgnjfOZvpBbg6B+AwUsjGayn8TsvVFJD9lp4fOGXtzMrtS4qgPPNiaB9yMJSDdRcZMNEGdKNPIgebzn12t5LCOK0UcwG3cepi/XQDZzfOAoO8f5HripHENP8CdV1t/egO663T9WqFXsDtgk+tpJaa4RgTMpqriJvJqMiMZkXuJKTpA== 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=NNW368FJ5011+JKUDzVVojthKAEb404dVl3QoIUvwsY=; b=LUiRv/cAbNN3zWf3OKlQBAinUlra8CAPr0PJ08Zp1onfIVWgBzFsqGosZ0Z0ziWd1riejLILjXX84MogR5q6KI8YcCdkL1799AHkD/yJlmQAn+/AwuKmaWwp/+MaUYUjVcuuPtSwHk5S+EyfbAug/9xEaifFDpBiv4OOZjsP3LI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from IA1PR11MB7773.namprd11.prod.outlook.com (2603:10b6:208:3f0::21) by SN7PR11MB7590.namprd11.prod.outlook.com (2603:10b6:806:348::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.27; Mon, 7 Aug 2023 15:06:03 +0000 Received: from IA1PR11MB7773.namprd11.prod.outlook.com ([fe80::14b1:be6e:19a3:2eca]) by IA1PR11MB7773.namprd11.prod.outlook.com ([fe80::14b1:be6e:19a3:2eca%6]) with mapi id 15.20.6652.026; Mon, 7 Aug 2023 15:06:03 +0000 From: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= To: Kalle Valo Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 0/9] wfx: implement Remain On Channel Date: Mon, 7 Aug 2023 17:05:33 +0200 Message-Id: <20230807150542.247801-1-jerome.pouiller@silabs.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: PR0P264CA0252.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100::24) To IA1PR11MB7773.namprd11.prod.outlook.com (2603:10b6:208:3f0::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR11MB7773:EE_|SN7PR11MB7590:EE_ X-MS-Office365-Filtering-Correlation-Id: 2cb7fffe-e928-42f7-c160-08db9757d166 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h9wPSP77EhVzFKE9XjpqKPEcao2cGtJ0bj62NCksc3Fd3GFeff4g+NaCUkHk0UBQ5Sy4cigJtYGA+VV8Npxcp6GvNAvpPs0d1DYq8vfIfdD0pQIzn7sBGUA0bGmGaLlsW5leQNL6487UAWPzSMF6ir8G6V3GClK0DQVTjbaa3cLcbnuWdeiPETR3ILTeako1w6tYWq3R8b1cCxLCKvQWQPlOffR3FnB4Br7yIqc1zymXHLwOCloDLAhjoTBZTd5tKd6S/hJKYBU2tcHZae7mr6X0UL27c6rAIZM9R/MQfmATUU7hLzWTlxmebEQ9VL03b7W5YfctwbXe/Ou4BjnNKLHe18vnI6Y0I0SQH/ig/FwmE4fWjATs5+THOE3NPmX8EjeehqA1JAwN1d1DmS9fjaZHXUi6ZaPWix1EB+9c1q5/7TadM7WIz8w7cGtzoW5BeUKUsbf+9gtwT9gtf/mgYoDztwuv3XK2+kFh8Teo+SLvo9URuAfJzN6e0+A6BIu3YyJZPYWjt65DcAO+ci9kLxFXcl2tt3pnVGVcQkA533I/dOdSol//aLtbXNBIGXIUc+W/Oz+J/ydBwu2u1NHTpg1QRH/TwA/vrtYyq/OPeEkLJVi3C5yVM/nXtNM3FqAF X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA1PR11MB7773.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(136003)(39850400004)(376002)(346002)(396003)(366004)(451199021)(1800799003)(186006)(2906002)(4326008)(6916009)(66556008)(66476007)(66946007)(6486002)(52116002)(6666004)(66574015)(83380400001)(5660300002)(41300700001)(8936002)(316002)(8676002)(38350700002)(38100700002)(2616005)(478600001)(36756003)(107886003)(26005)(6506007)(1076003)(86362001)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?TAs7zboBaEadVBZh7Py35wSuFRSH?= =?utf-8?q?b7UMjESmuCjK0RD1yDfogO6Vcfho2RmxGd4+qnU38pVk44GCcUl9IGBmugXRVeyKe?= =?utf-8?q?4kwl9K9V9bwBNS/qE9g7fc9ZB0lEPIdP/YcTKBepoqJTSxGWFb5Rol+r951kQEX30?= =?utf-8?q?s6fOE+P3S52uDLpK/2HvGybLVhlz/yFEck6ABurqLowZ9zWxMIqm21U9fKzmF0yKE?= =?utf-8?q?JONRWNSNPtmkvpmsZtvrUvXF7sXA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TgNmLCuI3bYbJZUnQlDIb0RkgnV4xtLuaMXxWlQe1?= =?utf-8?q?sqj6vzoTWaN3czaU2iBvjsDcou0JHONY1UA44IS8UeyV3W+jAQzRNzSzQoIWpKfwt?= =?utf-8?q?HqRdjKuFEe8DhO+60NpskG4YwE1Bw2aPMpI2fsf/VHzfCdEtmqqieilkYpzQp5nCZ?= =?utf-8?q?v7T6Qz0QAKroLkb1wcw3H+2yR2FoOTp/R9U2JxbOGDD7k2DWVRJwJH0by6xSPAwK6?= =?utf-8?q?GHzW9Hrdm7aPO35OLm7ybE07uryOsOWw19Xy0UIY3yuS6psqrS4JXgMgVgFzfDQoV?= =?utf-8?q?pM82QG963CYKPztDOr3qFKC+TVE26geCoAKPsUZDZAQY/XzajtK6ll3Z1wK5VCndh?= =?utf-8?q?JtCghlgsuewEqEy90uWSN95GCKc+HHePeS8MUySN7wRlF7ru+J8T4RDPx7NeZvTBq?= =?utf-8?q?ZMBmA0O7uxSF?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2cb7fffe-e928-42f7-c160-08db9757d166 X-MS-Exchange-CrossTenant-AuthSource: IA1PR11MB7773.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2023 15:06:03.5712 (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: 9XDlF6jS9unOmyJKN1Dj8AstkAIy8CSc2VsCiPQPHxPCImzNRxdCird/Us7dnS5zKC8HquOVMeJ8Bh2tY3UJ0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7590 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello, Apart from the 3 first patch, this series implements Remain On Channel for WF200 chips. The implementation is a bit twisted (I hijack the scan feature to implements ROC). However, it has been extensively tested with DPP/EasyConnect and I have not noticed any issue. Jérôme Pouiller (9): wifi: wfx: fix power_save setting when AP is stopped wifi: wfx: relocate wfx_rate_mask_to_hw() wifi: wfx: move wfx_skb_*() out of the header file wifi: wfx: introduce hif_scan_uniq() wifi: wfx: add placeholders for remain_on_channel feature wifi: wfx: implement wfx_remain_on_channel() wifi: wfx: allow to send frames during ROC wifi: wfx: scan_lock is global to the device wifi: wfx: fix possible lock-up between scan and Rx filters drivers/net/wireless/silabs/wfx/data_tx.c | 54 ++++++++++++++++--- drivers/net/wireless/silabs/wfx/data_tx.h | 21 ++------ drivers/net/wireless/silabs/wfx/hif_tx.c | 43 +++++++++++++++ drivers/net/wireless/silabs/wfx/hif_tx.h | 1 + drivers/net/wireless/silabs/wfx/main.c | 5 ++ drivers/net/wireless/silabs/wfx/queue.c | 38 ++++++++++--- drivers/net/wireless/silabs/wfx/queue.h | 1 + drivers/net/wireless/silabs/wfx/scan.c | 66 ++++++++++++++++++++++- drivers/net/wireless/silabs/wfx/scan.h | 6 +++ drivers/net/wireless/silabs/wfx/sta.c | 41 +++++--------- drivers/net/wireless/silabs/wfx/sta.h | 1 - drivers/net/wireless/silabs/wfx/wfx.h | 8 +-- 12 files changed, 218 insertions(+), 67 deletions(-)