From patchwork Fri Oct 20 03:48:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lin X-Patchwork-Id: 13430034 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 0CB11CDB47E for ; Fri, 20 Oct 2023 03:48:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376272AbjJTDsN (ORCPT ); Thu, 19 Oct 2023 23:48:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346903AbjJTDsM (ORCPT ); Thu, 19 Oct 2023 23:48:12 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2079.outbound.protection.outlook.com [40.107.15.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3C3F1A4; Thu, 19 Oct 2023 20:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K4OcmlEXehAVkgFqndsMG6Q7JhbFEgmUndvtE26crV7STcZjCGFn5J0el1UBnOPXLsuJYkt2iITmZg2Y6cRFuDxfvSbbV8J5Mp7geuLHtQEkLAkShqE5jOymllH2exb1gT/jLrA5YEhQaGVj7iFYSybs7uu9OLNllw15SkJobQcS/9MN0NkVznQXQSK0Ydgv8OKJ9tQW0QxH3BW7guLKEcYtamjkTzwvAF0SBQxUI5z1RXaRLxrkoH/NhGIKaSsgDBStacXv+/EdKkAQ0xviDCjIyzb17mGcZEZgmTcaAaERMKVjvC/qxUS00smfJZSNUG5DDaDfqq8rfgJO5+Zp/Q== 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=nW+qYk9QlDu79s+dWSyncXMFDc0yDEgxPID3vXHCHCA=; b=fBf8uQXoHVPqHMrkAcMhxQ1r3ZGkQzzUU5IxPplCauUW4a7gaMUbdUacKDBG7U8p82Al3nIdSCIdDAAiRQ/AUdWIgus+7ilEO1tYyH4kysiAWHAMINKr2qSe6gW0UP0Icylee2OWvwAJ5NTbyOB0k7TTr6OFl9+/j0W1rLiIXJmnwj55EQvwDvJtuCvGdqtewjekW0AnzTGm39sj3ItID283Wlo5RRkpcPODYgAUt21DEKzgsyG/dv8mRSbGXPi51lOTHifQtQTBAWkdmeWjV43TesICaseYxmIDAwh/+TSPyvW0DEvyy091uuwznU0WElarsbP+FZIOrurwEQYXMQ== 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=nW+qYk9QlDu79s+dWSyncXMFDc0yDEgxPID3vXHCHCA=; b=UU0p8760r1o0ws7igIq5lPRz2FqKtL707HSDuDxCoTLeCvzJzol7ojiLYDuDKJoXjtaxYrLokllb/XsV/36sb13DG8jR2lVCOtIY/n/D5Wq1D5D4HWG1n5PeocSNEsZTzeKq95QQUz+1L2Mh9rfToojeo9kgxBjMHNQx2UJ6cxU= Received: from PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) by VI1PR04MB7069.eurprd04.prod.outlook.com (2603:10a6:800:127::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.11; Fri, 20 Oct 2023 03:48:07 +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.6933.011; Fri, 20 Oct 2023 03:48:07 +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" , Sharvari Harisangam , David Lin , Pete Hsieh Subject: [PATCH v6 0/6] wifi: mwifiex: added code to support host mlme. Thread-Topic: [PATCH v6 0/6] wifi: mwifiex: added code to support host mlme. Thread-Index: AdoDCDtnHg9WHjidSq6kmhUFkN75Gg== Date: Fri, 20 Oct 2023 03:48:06 +0000 Message-ID: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA4PR04MB9638:EE_|VI1PR04MB7069:EE_ x-ms-office365-filtering-correlation-id: e4ab9d19-20e3-4fa8-ae89-08dbd11f5ef9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: brCWPGPyXdJmOpn8wj4BAHsNhEOKHelrdFu5IIREEU1iyDHArL1QlQAgVNmMSnWKVDGAKVbvRKJPpDqJCFc1+NEH9MTpNj4dQL0UOV8aKzzFBXTDuRkR1zI+3EBzbUhyebTC+j8bNJdzDpip3fuM0EETQdJJ/rvUpYIIbAcDjBeIFbSc99B+SGpR2pcdt4C6cfkQc7Oh0Ro3O+C3Fc6XjsH4aFcSq4n6vT1fzQYYqI/Hc1Qnwwp2m8laAU5h6dy6H7O0CLOLw4XZmOY1/KB/d+Jux5sbQ0wnKbJI3rNScL5jKhLUUXJnsnC6nPihT2/BO0N8rVWu73e36g29f5WxtswnTGnWhmTPy08+Gl0RYEPa0cwA0A2iTWJf8hHdUMxV5egSeE5byldSMyx0YiVKHmrbupzBCv64Vz/eddjRE59cwqRbmsLyA5esCi2WRHnY+cgHpuINelfZmL7HkivpMG9f4lqWBFagVWNMb2SoZIayAm/81d+AAKhBCb/mxBiTy4mk2Lh4nT38l2rnFYAtFljQv9TH/yzVp2j0nSG/Fq9PpIy4AnrwHvICov1rmoRwkmKt09L6xHRubb27iidjGAC6Ynz3bQRXVH05hMhQTINLlBsyeWtHvBxB5yyM51Hb 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)(396003)(136003)(376002)(39860400002)(346002)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(55016003)(38100700002)(41300700001)(4326008)(5660300002)(8676002)(8936002)(52536014)(86362001)(33656002)(2906002)(122000001)(478600001)(83380400001)(9686003)(4743002)(7696005)(26005)(71200400001)(6506007)(316002)(38070700009)(66946007)(76116006)(54906003)(66476007)(6916009)(66446008)(64756008)(66556008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: etNMzgr/6+6PnrH9Jpjtkmp9mzhhWC2+WCv0oV762JLoujX2n1rIioDV4L4ZLxq/et7UDMGRxeRvqpAroxUIBhXhTSBftV+nnZc3dCEpRcmr10ohBw6Mc6SKDfYRSIyIXJ+LwXl23qz+yoCh6VVeWpPuVV1tS9pcXg9bjR6JLR2C9tmT7gpkU5BSyZuFXLsDbgX9CbGBsnSFUSzpyeLjosJ2e+yo4FSkEXkvULHXG8O7dgHGI1Eh04EPtJO3+8U+xBvVP+EcEtlJpEbWKX8rVWIl792+hIdUqEx/tTHMJvMCYrcRo2uSvSAUJsm7hSRecf7eaiKn/h/Kxu47EbRkBXqWiZGcpUlAMrRSKIEC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TFc4mSXmev14K5lfkTbFDGGj8WvqM6pkKs1gjk/zaYgdpVfDdbBZrYjHSYbjrYsgpeJCXLAW/imDmlE49eoYG7eVogobhh5CE30oBDEUGPAvEgBE6fuPe9rj7wliXvoZgkO3e6OSVwakBtYm6gNjJdhzy4Dbi MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4ab9d19-20e3-4fa8-ae89-08dbd11f5ef9 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2023 03:48:07.0088 (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: UjqTjVhxEcx8siwXEDki1emBK+jN3YocsX9wD4fM2H//sxCHnVnRQHdTHGq/A6RXJJm6DriLbN7v826qNHZ4VQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7069 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Patch v6: Correct mailing sequence. Patch v5: 1. Add host base MLME support enable WPA3 functionalities in both STA and AP mode 2. This feature requires a firmware with corresponding WPA3 key API support 3. This feature and regression test have been covered for IW416 4. This feature is currently enabled and tested only for IW416 5. Changelogs since Patch v4 a. Enhancement: Add WPA3 AP mode support b. Bug fix: In WPA3 STA mode, device gets disconnected from AP when group rekey occurs c. Bug fix: STAUT doesn't send WMM IE in Association request when associate to WMM-AP Patch v4: 1. Correct one bad code segment. 2. Add code to check firmware key api version for host_mlme. Patch v3: Clean and clear commit message. Patch v2: 1. Checkpatch error: pwe[1] -> pwe[0]. 2. Remove module parameter 'host_mlme'. 3. Won't advertise NL80211_FEATURE_SAE if host mlme is disabled. David Lin (6): 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. .../net/wireless/marvell/mwifiex/cfg80211.c | 420 +++++++++++++++++- drivers/net/wireless/marvell/mwifiex/cmdevt.c | 34 +- drivers/net/wireless/marvell/mwifiex/decl.h | 12 + drivers/net/wireless/marvell/mwifiex/fw.h | 36 ++ drivers/net/wireless/marvell/mwifiex/init.c | 4 + drivers/net/wireless/marvell/mwifiex/ioctl.h | 6 + drivers/net/wireless/marvell/mwifiex/join.c | 64 ++- drivers/net/wireless/marvell/mwifiex/main.c | 10 + drivers/net/wireless/marvell/mwifiex/main.h | 13 + 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 | 18 +- .../net/wireless/marvell/mwifiex/sta_ioctl.c | 3 +- drivers/net/wireless/marvell/mwifiex/sta_tx.c | 9 +- .../net/wireless/marvell/mwifiex/uap_cmd.c | 182 ++++++++ drivers/net/wireless/marvell/mwifiex/util.c | 104 +++++ 18 files changed, 919 insertions(+), 19 deletions(-)