From patchwork Tue Nov 28 08:31:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lin X-Patchwork-Id: 13470623 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="dk36nVVv" Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2084.outbound.protection.outlook.com [40.107.241.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E0B610A; Tue, 28 Nov 2023 00:31:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=equ9d4BNCfQSockbNRwyYWFAu1oigbAz0xquQxyFEWMk22GZHboTa0FG3gyUGhyOGH/r0f7CqK6NE6evZk6ghwkbjb94HDA3GceSLnQetcO1Arzdibcl57LOI6yP/Db+DFaRUmgm5NhZaCWDzUQihyYjjI5RBKwAHgzYGYtmSA3+vbOnIXcguz4jO7CleXavdPwFSO6X8WUJDFuB/paaM0VMvXMpXj0TQ9f1AMtXsrBWsl/0Zac9wlZ4w0pRSp+vvoFNdAIaJ6wdOt+PZxlUsVJbC0ii1I5L8XKMQAGs5y4Nq9mIh/g6BD7pfuty3EFVRjRzTOiVd+4pisnwkPqVUA== 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=tbIJ9yUDbBehYS94wXgA88Qam2O8rt9xNUsNEp1N5bk=; b=G/3fVlKkgXtVVH0ocAL6oxn7D+sR8mbUoPoWWjDM/3iNQi99tsiMATEJuwttqiPE7zqYEqFyT0/SVpBhlTdhATCK4NIaducYG0Llk7Ue70R7Pk8nNEgCgWEj5T6zCH7vjeK5qkwIdg36La4jDJ7aSWRmWVkEOGNHeSo7Jc4CFv83xDkyQ+x3axJi8nFSZuTbLuhkZd5IfGeQ5BO/MzP6J51QhxImrA2ZRXet5FZosIlPp4ConTQBtiCxW4MOl65sPhk6xiixA4uXSRZ5jso3JpMWvLHzdjxiT66FTeCrQm4RKI6TSH5Fs8OvrR8bl5Y8+m6xa7pqNHb5E+cgKLE+kQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tbIJ9yUDbBehYS94wXgA88Qam2O8rt9xNUsNEp1N5bk=; b=dk36nVVvD08Lcijp44YB8RuaZcCzFagSo7hCZFBgDYO58gclHaIvU4W/IeiKmK5aa9kX7DlmYb4InbzTaTUaLvTgTiKtCdtjMlNoJtQtkwZT6fNlWqnovJr8nqx+nY+7fZuR3sXKVfJ63Oy+KaUwh/rLC/oNdrg+DVlVM7LGhJE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) by AS5PR04MB10043.eurprd04.prod.outlook.com (2603:10a6:20b:67f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.18; Tue, 28 Nov 2023 08:31:43 +0000 Received: from PA4PR04MB9638.eurprd04.prod.outlook.com ([fe80::34dd:289e:9e8b:9c9b]) by PA4PR04MB9638.eurprd04.prod.outlook.com ([fe80::34dd:289e:9e8b:9c9b%7]) with mapi id 15.20.7046.015; Tue, 28 Nov 2023 08:31:43 +0000 From: David Lin To: linux-wireless@vger.kernel.org Cc: linux-kernel@vger.kernel.org, briannorris@chromium.org, kvalo@kernel.org, francesco@dolcini.it, tsung-hsien.hsieh@nxp.com, David Lin Subject: [PATCH v7 00/12] wifi: mwifiex: added code to support host mlme. Date: Tue, 28 Nov 2023 16:31:03 +0800 Message-Id: <20231128083115.613235-1-yu-hao.lin@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: TYCP286CA0019.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:263::13) To PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9638:EE_|AS5PR04MB10043:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e6a48c5-d639-4b31-580e-08dbefec7386 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MYG70GLHIuzOcTZtg4Zf9CE73eqWa1y9GWJgd0i/wFUYEewrXGR1nIaRjGUxWeZUgdWk7AUhr/GOxlh/LwS6RNWy6cInsJrfg3Fr9rfb0BPfD3XfyOzfsIBHqwXux4ijQunhvKj1aYFiLQUqkYgAVATn0AeCg+aXVUqrVBlO4CgPDZfZFKCzh1kXfF8krr3z1FEkw/LvBEVWwP/p21CF0CmavNSuftOT2B70eiVnZP5JKmsLj6KzHaM9QwhctzyzjTL8pkauHved4wW9CiTvF5YU7foOIZPgOupHwn5mnroK9qgunbRX3mk8wbqSTk6fqqfFwx54ycfLJImP0XXoJVUPDtn+YSkOb06jyNC/F1qH81KWOngxRMKHDKNPHhjlmWws/NXiggNXdJFbg6QJcI2jTq/h/zbNYgk40CuEttMXPS+MdDJv0q1iK0dDAVEKkH1GNO4wI01zOA0CPo298VemJ3PGoKTnBTLnorNf7ZPbgStt8KH9OtLMYv8lItbiqO4UIXNKCEvbNwxae2ptNT8uOOuCkDB7dppmi9IKuFEHuxXQuUI1XJtx6Ju8l6N+ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9638.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(346002)(376002)(396003)(136003)(39860400002)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(86362001)(2906002)(5660300002)(6506007)(83380400001)(6512007)(52116002)(41300700001)(38100700002)(36756003)(6666004)(1076003)(2616005)(478600001)(66556008)(66946007)(6486002)(8936002)(6916009)(8676002)(316002)(4326008)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hG1Unkeb/FJrZblMeoAsL/e4lsrPrOzAeeNqxcCAmblb5QtnU6QZGJux4MVxmuawnZfPvpdb3gXSB88C4WxMfL9WfBXMUIPLp+LCAT16vF2Cb3GUkeEOhGWkwCjmh4lHKyXBkYmTomZJ+yyV+UVRnfB6Qq+mBshVvHyJMBqY75LJQrzB2yzxUFTx7BWdu101vSahqfGk74Zy/UCMgzd4uPIVsB3ONVUDxh9t9Vlh1Fbz8zj1obGIoFGppIK2Iwq1CPImuX7y4YxN9qKsk+pxxkjA1YEAfi585PMnoxBfUjY+2OaxhF8SburT9FS73gjGy9v2r4tlK+VY3VIx4PZ+Rc901CT5tpsGv6NlaJMsatIQi2ee84S7Z8k9S6jGghvNFY8nIkYo7AO7bJ1qPZBJqMF9bkMG9fObTe9cA802qYoNGtpdN6KykyHChmsvUYjqhgPySRaPkkxSLusSw6hb4E0ZpxDkc9XG0jvMRHD/J8mqee3ql6Q+YTnf5T+UGjJqJYCdjGRyvoFyIYx+3HkqpD+VoRfaps81SSvgtkzFQUF9YyVEk7pL2V7Ir74hwacyjQ8NU7+gXCzg5tgmiYI6IPnOLVSZJ7jELGeRO0VgdDM9qGy0y53lS3MnJYqaEIpvM/fx22cNHGEvezDvjP3xKJOR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Exchange-CrossTenant-AuthSource: PA4PR04MB9638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2023 08:31:43.4091 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NpGlmObXmf1tbhFcAQjxcvUoazxf1Ur8sCIcXDn1siT+upiizNBdGK1GRjBpb2o3Tp4la9Zczldkyxtxmi55Kg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB10043 Patch v7: Changelogs since Patch v6: 1. Fix regression: Downlink throughput degraded by 70% in AP mode. 2. Fix issue: On STAUT, kernel Oops occurs when there is no association response from AP. 3. Fix issue: On STAUT, if AP leaves abruptly and deauth is missing, STA can't connect to AP anymore. 4. Fix regression: STA can't connect to AP when host_mlme is disabled (impact all chips). 5. Address reviewer comments. Patch v6: Correct mailing sequence. Patch v5: 1. Add host base MLME support to enable WPA3 functionalities for both STA and AP mode. 2. This feature (WPA3) required a firmware with corresponding Key API V2 support. 3. QA validation and regression have been covered for IW416. 4. This feature (WPA3) is currently enabled and verified only for IW416. 5. Changelogs since patch V4: a. Add WPA3 support for AP mode. b. Bug fix: In WPA3 STA mode, deice gets disconnected from AP when group rekey occurs. c. Bug fix: STAUT doesn't send WMM IE in association request when associate to a WMM-AP. Patch v4: 1. Refine code segment per review comment. 2. Add API to check firmware encryption key command version when host_mlme is enabled. Patch v3: Cleanup commit message. Patch v2: 1. Fix checkpatch error (pwe[1] -> pwe[0]). 2. Move module parameter 'host_mlme' to mwifiex_sdio_device structure. Default only enable for IW416. 3. Disable advertising NL80211_FEATURE_SAE if host_mlme is not enabled. David Lin (12): wifi: mwifiex: added code to support host mlme. wifi: mwifiex: fixed group rekey issue for WPA3. wifi: mwifiex: fixed reassocation issue for WPA3. wifi: mwifiex: fixed missing WMM IE for assoc req. wifi: mwifiex: supported host mlme for AP mode. wifi: mwifiex: added mac address for AP config. wifi: mwifiex: fixed TLV error for station add cmd. wifi: mwifiex: fixed the way to handle assoc timeout. wifi: mwifiex: fixed the way to handle link lost. wifi: mwifiex: fixed AP issue without host mlme. wifi: mwifiex: misc modifications for review comments. wifi: mwifiex: fixed compile and coding errors. .../net/wireless/marvell/mwifiex/cfg80211.c | 397 +++++++++++++++++- drivers/net/wireless/marvell/mwifiex/cmdevt.c | 35 +- drivers/net/wireless/marvell/mwifiex/decl.h | 25 +- drivers/net/wireless/marvell/mwifiex/fw.h | 61 +++ drivers/net/wireless/marvell/mwifiex/init.c | 6 + drivers/net/wireless/marvell/mwifiex/ioctl.h | 6 + drivers/net/wireless/marvell/mwifiex/join.c | 67 ++- drivers/net/wireless/marvell/mwifiex/main.c | 54 +++ drivers/net/wireless/marvell/mwifiex/main.h | 17 + drivers/net/wireless/marvell/mwifiex/scan.c | 6 + drivers/net/wireless/marvell/mwifiex/sdio.c | 13 + drivers/net/wireless/marvell/mwifiex/sdio.h | 2 + .../wireless/marvell/mwifiex/sta_cmdresp.c | 2 + .../net/wireless/marvell/mwifiex/sta_event.c | 36 +- .../net/wireless/marvell/mwifiex/sta_ioctl.c | 3 +- drivers/net/wireless/marvell/mwifiex/sta_tx.c | 9 +- .../net/wireless/marvell/mwifiex/uap_cmd.c | 180 ++++++++ drivers/net/wireless/marvell/mwifiex/util.c | 104 +++++ 18 files changed, 1003 insertions(+), 20 deletions(-) base-commit: 783004b6dbda2cfe9a552a4cc9c1d168a2068f6c