From patchwork Wed Oct 4 17:28:35 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: 13409095 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 05BDDE7C4E6 for ; Wed, 4 Oct 2023 17:29:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243504AbjJDR3E (ORCPT ); Wed, 4 Oct 2023 13:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243500AbjJDR3D (ORCPT ); Wed, 4 Oct 2023 13:29:03 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2054.outbound.protection.outlook.com [40.107.94.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96217E8; Wed, 4 Oct 2023 10:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NnCjr5HGRVO3jNX3vrGW/D4NRHwGFfCqK+5icF5MZ3yrT8EDq/SrhNtCLZqs/JftDPjKpt8ViTynfL7i+VGaKGtCr7xaqfrfC04XakFx6n7cb1LhE60l4hm5O10GbibQ8WktO3KSM5Wzb+nqJ459JRMXXqSvpuQoRTguNLv+6HqyQuQ/AUcK3IvgyF21Qyi+CtekA7W+8DwFiwo+lFK/6/b6uyAX8Pbusw9Sebo70WesRv6VdzjSoTghuKv713uHcAkMSqsdKHmMmysyoqh4+g6wUkeK6KqSBYJMMqHrn876UuI2XwqeON1p87vOX5Tjjxmdd1ZMeEgwKiPcuG3Ghw== 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=UXDDYAw/FjyHzqsuvUPP7L/NGfzvmZvOut33xSEA38A=; b=CdWHhj9L5H6UtQazDUkdnUTzgn55yFcznsC7X3puTFuT5vU1nmERl5t3BxyxlAyvNDzSDCp4jYssEL2U2YnyFLItYEFsWowU6e0ENswyckOf6lebYZqfsyFgNlj+bbSC9sQ7H4KpdrX9YH8aKYB5Hv/rSt5AvEcFFwG87D57m2uWQb6r+wPDfoUfUaMLRr1fhP9GldmWaq7hrrjf6JUOMW1ScMtp28xnenWM+A9bYAaw67ek7Ww+9ZXZaA7r/w8NOqvC9PjY12pqYlv0inLiH4sQ2qEtFwTgKNgHnkGzESiAiU70yfPlUhnK9r981ZoVRoeIgEnr/hRDJPdmGdpRng== 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=UXDDYAw/FjyHzqsuvUPP7L/NGfzvmZvOut33xSEA38A=; b=mU0kOUB7FU70K3UAV/6b8ayd3UxUvO7Lvg4uxeOodynbdBqd7KEdaRCBMlAnfPDvsKxRZxQ2LjidaKVINLXxoemGlBG0iMKap8NuSRnd9bkm4RXxkxtmjzzmM7cobqjzHVtiDiDQRiyyTJraY2zXXT/qsD2eN2B5A/zgC/QYD9E= 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 PH7PR11MB5982.namprd11.prod.outlook.com (2603:10b6:510:1e1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.34; Wed, 4 Oct 2023 17:28:55 +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.6838.030; Wed, 4 Oct 2023 17:28:55 +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 v3 0/8] wfx: implement Remain On Channel Date: Wed, 4 Oct 2023 19:28:35 +0200 Message-Id: <20231004172843.195332-1-jerome.pouiller@silabs.com> X-Mailer: git-send-email 2.39.2 X-ClientProxiedBy: DS7PR03CA0305.namprd03.prod.outlook.com (2603:10b6:8:2b::25) To IA1PR11MB7773.namprd11.prod.outlook.com (2603:10b6:208:3f0::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR11MB7773:EE_|PH7PR11MB5982:EE_ X-MS-Office365-Filtering-Correlation-Id: 54426577-c80e-41c3-5df1-08dbc4ff6251 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bw198W5HXHP36GttJybJ+qs7jL/LYtIbEeyKnNhKstZXydPzvUoint5qYM+ImQxqGdP7UnIKSGdvVHtkwi3HeJETwPTBCRdLJmVSqiP/XcFlWvzQqzmM1iVYvYv7q73TDgrXT+UuJjifZX4ExSgbtkv8oHmWUieileqjpTUuel0CEau08WwU55EWI/kX5ZmqfIJ6NmsCSjFWr6C0guWgklmXsF08A7KJpHAgAu4RMjHU0W1gytZCwSKUE1LEU10bxt+/uR7rIldYeUfd44ecDVnmzE4OxfzpIHlHJEaiV1B8xRjq30xFNPsCJwt/704sG/LXwFKPt/VhA+t1rInofvUaSguXQFOehxovFZsnuUKG4K5xeWSP8ORcCmwD8Nm2ZSddNcWMCfnDbTfmIjb+C3y7IHsoElGocpd0ei0Xtf/7HT/2KNMWjLYrtZODuz7yo+kLmecaCccKWhwFWfaZv0FPhZf9mjoidFfpHmt+p281mUYlmvIJwpPE4wqR8a91q8MZH5s80ST8hYF2S0P1Pv9RX8gKDLEFOsq33cqDQpHiZZSlhWlJNf/09Y7s62VL 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)(366004)(346002)(39850400004)(396003)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(6486002)(36756003)(6512007)(38100700002)(6666004)(52116002)(86362001)(478600001)(6506007)(66556008)(66946007)(66476007)(316002)(6916009)(41300700001)(2616005)(107886003)(1076003)(8936002)(4326008)(8676002)(66574015)(5660300002)(83380400001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wwi9hD35yXmcZ6MJibxt/R3YBhIV?= =?utf-8?q?+aICaLE78T2QXnSHaox2hXF8DIO1hVF38fThAKm4AbfmANzJQotFnwhL2lpoDNFiz?= =?utf-8?q?8/fa6lzVTP1HTv9zfEQ0EVK6efeujmzhqBwmAtpd71dnB8A6BpIlBSCZIO9k81gk9?= =?utf-8?q?UQOa0ItiJDLFLKDnxYJd6uL1hjQ+brwwznvxZAWOQ2cIltCven+/XdqWJDrtJyuHa?= =?utf-8?q?nydL1fF19p/v4Kj8lPQ7norw8UJPVG2nVtbHNzFws8TfPBX+u0wzwJvTmtX9oEEc8?= =?utf-8?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E3qsXFkCIdyD9SHthSyZ1DyVf78Vtn0eEIu6YrrPtYLL45QUKzFQdK19BJEQtJsa?= =?utf-8?q?4SU+qLIzO8pkYaE6eyqUJ/IQAJO1/msD03PejfHG+tQ8ndCZJBy8HYWZWb75lPOpo?= =?utf-8?q?DUyEfEOuwrL601RVkyxlUbWAfCSDZCkluGt8w2MNT467EyMjJ6XL8mW6XHQc23023?= =?utf-8?q?+7It+LZQKFGEGnSuFiTsuAUkCmtmc4+fKZ9G34o2gHZ5etVmAvLkJtN92EpqZorRl?= =?utf-8?q?LPvStHn+8ACFA90C6lP4mrYX4ygdld5Ig6TRU1Osg/ahZA8AyK3bjgPCsN1ywOKoX?= =?utf-8?q?RYHJSRobEullqEumwZHXyULP3YkQwoY1YeCgC/WDSx+n13M5fdxhRgYfbbuwral0d?= =?utf-8?q?tV3gnNkWEcpfAEtR8BRX+CM6w99PwC6Gaf8JnqX3ay28mahxRI0nr8qC6DOqz7w5X?= =?utf-8?q?aKT8ZzITzYv?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54426577-c80e-41c3-5df1-08dbc4ff6251 X-MS-Exchange-CrossTenant-AuthSource: IA1PR11MB7773.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 17:28:55.0427 (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: 8J8RphoW/hzbVTdbt7iTneTu7XLBc+x2yXH5vaNq8FKwLjV+t8aW02xJ9MuwcIbGQjmyG1a0KM4js2fURMbgfg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB5982 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. v3: - Patch 5 and 6 has been squashed. - Reordered patches 5 to 9. It was not so easy, but I guarantee the final code is the same and every patch compile. v2: - Rebase on last stable tree Jérôme Pouiller (8): 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: simplify exclusion between scan and Rx filters wifi: wfx: scan_lock is global to the device wifi: wfx: allow to send frames during ROC wifi: wfx: implement wfx_remain_on_channel() 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(-)