From patchwork Wed Sep 27 16:32:48 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: 13401359 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 481A2E82CAF for ; Wed, 27 Sep 2023 16:33:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231781AbjI0Qd0 (ORCPT ); Wed, 27 Sep 2023 12:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbjI0QdY (ORCPT ); Wed, 27 Sep 2023 12:33:24 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2088.outbound.protection.outlook.com [40.107.237.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E1FD9C; Wed, 27 Sep 2023 09:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kuWI9NtsmbxqFHgeVukhslNPhb3sLH/ohnIpvt/efjDGRMZbHhLoBjj/BVd5ExfWYRKp3fF92vW+BNd/Z4OcHKT5GGdLFxAAOR7yYBhPIfzYdLhG69p+n43cLDYF4vEk/055F5sdgqETgXXK9NYNYoS0+XkU63Kye7pYjgJqishya4wqe0+boYGhn7va7q6k6wRaffJm+6hN1XjJ88Mf0LvAVgVQ8QUGhfztKhB7X1c7oAjndbW3wHKbtr9ATz+uKnKd0LIc3ZREn8EX0jist5EgCicnVb8+IjUmyzc9mEdesm9IN0KbcEtMn7Zc6m0VxEERqoaSKOiz2zzFLCoSQg== 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=0O3aoUMpC3fOxfGnIjg/XtUawwJH9IjE/KCIA9Tmdgg=; b=ZG1ubZJFRoPUe/V8vlAxqw/q7ael5l6pv7R14nlULQOKefYu7VerZPScmcyZpPdykx5C74hlv0OTJBU8516WtWUjQFW5wTZiXVbk7lHto6Lv+k7dbXg+xtG6CBb9cJdgjYYOiqZ82fopsanf3vCRaTBww7mle9cQ/b1YDJIRVrWxegWav0gNCJxPoq1EcsI7i7r9loFmQVOfKOXbdZqo7eI5vz8kwmGl9nJTESWvgYd4UEdGC3L3tJhiV3ryTyd6kQAFzAUlYfMIEZXuKAsb35JTKyB51Qo/hZ5AOesYSkw+/spufFcxFoTP8PLrueutIYYXdY79VuTsO78lmx+ohw== 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=0O3aoUMpC3fOxfGnIjg/XtUawwJH9IjE/KCIA9Tmdgg=; b=nGkrL/uhTnrsW2nz3j123konoOG2XbE4TeLvZEY00xuttHAZGoy/GYrB4vpyAA81V6DVAD0XjTqRM1yrPqLLFe2hAcNJ56DsKOu1Cbm71vGzo0m8JoIZdi/HqPiRBKolvVUVq6N/Ymb53K31pg6pZ/y7fj+O6KvPuJZ0PMQxXuY= 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 CO1PR11MB5041.namprd11.prod.outlook.com (2603:10b6:303:90::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Wed, 27 Sep 2023 16:33:17 +0000 Received: from IA1PR11MB7773.namprd11.prod.outlook.com ([fe80::d6c8:4cb6:2594:d8f3]) by IA1PR11MB7773.namprd11.prod.outlook.com ([fe80::d6c8:4cb6:2594:d8f3%4]) with mapi id 15.20.6813.027; Wed, 27 Sep 2023 16:33:16 +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 v2 0/9] wfx: implement Remain On Channel Date: Wed, 27 Sep 2023 18:32:48 +0200 Message-Id: <20230927163257.568496-1-jerome.pouiller@silabs.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: DS7PR06CA0052.namprd06.prod.outlook.com (2603:10b6:8:54::30) To IA1PR11MB7773.namprd11.prod.outlook.com (2603:10b6:208:3f0::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR11MB7773:EE_|CO1PR11MB5041:EE_ X-MS-Office365-Filtering-Correlation-Id: 28ff285d-47b7-4092-cfcd-08dbbf7773a6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nesa2XcywEmG0IbEbtIdOn1gHvotVo29+ec/jXvUQPnCdmbcEn47qQTHtocRQzEHawyv2bXKIQOdAitD56RSfx+rxGndtiU5WlfSM8qUNcz1SVXf4EokFMWRcvve25ijEv9Fue1uDL4+Vpt5h04kQD5RQuqfRNvuFJdA3qXK1nlAbCehNpW+LWzcDE+Ib+UHOuWZ7LNngIktgfvVj5Ulsoroj2NUAH1lk8VxBwCCVPbjHCyHACufDp6yS/K5it2splQYWOaBLQQ18BIGeDxKrDAUc80+2DVXv60maN72bWKr5dH7pfhDiyAAgW1ulZTXkwJhhEDxJUtXU3AyVFKJtKCqX0JO2bL8NSv8Xg/vqWzafFqqbatxMklwZT2fhy3PVnevZcpDfcBfeYb2iH7DGaPu/NZQRGDJKTRzp7ATPQM2prerLqMvnLv4LEzCECNdOU5l/8xG43y8Gdi0sTFg4L2NzkFT6QIvui49OrctQBW82Dry2w8l1i5oBrCLDD+UknQxqwVAO2IY5F43MPwVn0X/Fknv2cpfLlX5nzFeuzmYefTQjxH49LIVCw1X6uD6 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:(13230031)(376002)(136003)(346002)(39850400004)(396003)(366004)(230922051799003)(1800799009)(186009)(451199024)(6506007)(107886003)(66574015)(66556008)(66476007)(6666004)(1076003)(86362001)(6486002)(52116002)(6512007)(478600001)(38100700002)(2906002)(83380400001)(5660300002)(316002)(6916009)(36756003)(8936002)(8676002)(2616005)(66946007)(4326008)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?POFgVzZ44ZlYTns9xtxNru6ozJA6?= =?utf-8?q?Tp2EPz9dkANItUMQS9UEpCmpMAc8cW+S4+UzZEMHC2SD6GDJM1J9vXyvLC8MOpoT1?= =?utf-8?q?jw3aYWHlZJGoWexhtGEeBddD224PSet3SeCYzMqxsgjW3IZ57igE2rrfl9KeYp7jF?= =?utf-8?q?O7eC+Jbd0Bv4MWzYmOGN9IlrU7MfjHxZVIlyk/e1tyTvcWFL9NZAhTlTSTLD5pLjc?= =?utf-8?q?qbPLFQ6m1OiJoX5PqwLdKf9zB7EnCnPMd3jWV2MRCB4otqbkNBzUc+GKgljv2zRPb?= =?ut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3RcXcOR?= =?utf-8?q?S0yohMdKhzEZUYmKe9zBMP6IaXC7JZHsz7cjBybEEW8Gz+5g2YsbYTutonZlXm642?= =?utf-8?q?ZcTT1v5zW0Pfb87bX846vMgrNK2qYtmaYYD26cnhkW8XU9uaE1ltEBLu62pVG5Ptv?= =?utf-8?q?6LH97X2eMBdRjdHNflnfN9FKjPTUbDTc6/JA7h1fg6/ghh2xGgslnHdsqDB6C0zYt?= =?utf-8?q?Th4Za4ZnjTQW/fhyZ0oVo1u9pgacWbW018/UAPC44kmMVWqTATTDjXuEsAAQ3hFpV?= =?utf-8?q?mLtW8Mlu3qVbDMdvhh31cZNVsEP+MKtkdiQgev2u3RVOj19Zou1Avh6PXOuyCsMz/?= =?utf-8?q?HObNR0NDOpfyp5vhsvpek8myMyPEyqlMpqhEetupRRKcXl/BFrJvSghBW3CBYrbCY?= =?utf-8?q?VYubN3AXjx9mGpDykx7izprJkSCPZyKRTMYd0o2wESfajOFHqrgVO8nDIu9Ts/9jY?= =?utf-8?q?S9whOw1CHMG?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 28ff285d-47b7-4092-cfcd-08dbbf7773a6 X-MS-Exchange-CrossTenant-AuthSource: IA1PR11MB7773.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2023 16:33:16.7880 (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: 9ofdI3Tshx5pYf7N7sqG1s8zjB9Fj+RYZPuWmerlg7VARIJL1pBL7b5hvezq37PaTfPZTJAPm81JLJus1s3ZWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB5041 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. v2: - Rebase on last stable tree 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(-)