From patchwork Tue Aug 15 10:12:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lin X-Patchwork-Id: 13353712 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 D727BC41513 for ; Tue, 15 Aug 2023 10:13:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236313AbjHOKMf (ORCPT ); Tue, 15 Aug 2023 06:12:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236259AbjHOKMW (ORCPT ); Tue, 15 Aug 2023 06:12:22 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2051.outbound.protection.outlook.com [40.107.6.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E651BE63; Tue, 15 Aug 2023 03:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bmmmAib8yJLMHKmunvBZ7DYvMT2Q5dFx970askOEwXg52nCPa3wb3M6WqnC5ee9zZm8HOe4nVEvd8wWc5OMQQOpNZdJ3RxS6H+/PHAv5un3ELm0FrUhLN6JsXZ9P6lL/uwKM1y+gHD8fhDa+fbZ/ApuB+jNXyjBNaPsT8n9Bx3GeGETd0i/03bihMVdqlVJ3iTjp71nAz+bf06TVdSExXV0OabhN6kLG0Ghl/ZM/aR8AN9ed/BQBdxqROdE2oGGj0gKtRcvbXjDpwtUbufwIwWry563RGlfsB8Psgs0xzEyHuO/F0NW9efoVODzh8YX1HB4ofE6ul1YGDNirPf7V3w== 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=JILQi3v3cbwrhQ9LpFjSPpzJdAd3uGvbH/4+rXkTYxk=; b=Ba/wWbVgrcYz5Fh9iq+bxiUJ39TjAJ16GC6PaHhIzBWzT+93fTts30z4CyOLaabLNbWx7xZR98NMkDb1lCrMEedjc1yH7Gj2Zoq8baoQb5S0kdXTcqIovrjrtIG71XxwrhFWKX9B+rGJvqXv2WXrQwk3VKHX3rfRrnLGGYJB5cFz5VdphRuxzqhWXz57JaolSuqk5ZiuMNly6rFh4BG4It9SxgbhStlYhihY51uNdaOli0FbQzQJjZjFgpsN/NnHtC5bCbvpz65VQCMn4MAFtsr+YFORYSbxuztF/778r3H6auI5IkR2q5Wdz7C0yozsQOisIRyeCrw+61Dy43YTqg== 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=JILQi3v3cbwrhQ9LpFjSPpzJdAd3uGvbH/4+rXkTYxk=; b=e76y0Ub4Gq0ZVyofxWK1pAk+agGFMEzjCpsXk8fdz5fer+mte77+MxGzqy4WPZ1tlwWTWHFsN79XkUmvDsFwLT0T1rt3vckUQC6a3hhOWPVdERx0V/AxV5zAR02oSqAN263UwRznunESQLoUnq9sYTf715i60UsYEBdnRHaacxo= Received: from PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) by AM0PR04MB7156.eurprd04.prod.outlook.com (2603:10a6:208:19b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.26; Tue, 15 Aug 2023 10:12:17 +0000 Received: from PA4PR04MB9638.eurprd04.prod.outlook.com ([fe80::693d:8782:eae1:2460]) by PA4PR04MB9638.eurprd04.prod.outlook.com ([fe80::693d:8782:eae1:2460%4]) with mapi id 15.20.6678.022; Tue, 15 Aug 2023 10:12:17 +0000 From: David Lin To: "linux-wireless@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , Sharvari Harisangam , David Lin , Pete Hsieh , "kvalo@kernel.org" , "amitkarwar@gmail.com" , "ganapathi017@gmail.com" , "huxinming820@gmail.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernelorg" , "pabeni@redhat.com" Subject: [PATCH v4 0/1] wifi: mwifiex: added code to support host mlme. Thread-Topic: [PATCH v4 0/1] wifi: mwifiex: added code to support host mlme. Thread-Index: AdnPYPbNhCf2w0CzRiuZApb34MPHrQ== Date: Tue, 15 Aug 2023 10:12:17 +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_|AM0PR04MB7156:EE_ x-ms-office365-filtering-correlation-id: 87874596-9e0c-4c86-9dc5-08db9d781ada x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: foiNOiMgUny/wjZSeU6/8TKvDu7D8k5EQkofPe+yqvVNd36da7RV65NS0kV4CmQqtyBURg02kANMmbSmhn9CKs1rn73dzPIKrYQKx/l1nSgrx3huXjaQl5NwwIRIUfTRrOcvx7I8VfMgg+sFUCKGkZVQClFApwB2GkAoWu7w38LEvFZEV4XGJcbYMLSxq++livgMHLYWHtnyqlaT0ls1n2oxAf7tLnXGLi/C9MstulpR1l5bSD3atH7UM3GkXGDvNU3hBLx5YZPoB9lrZJT4pVxjkzNDQh2vWFLA0aRpRZ5JeRnyt0DLl5G9Dc7EOytryjLlJInK+kNSSt7WvRPy7A4eWaMYJZFGfWtM6IOgGpJ36JClQwdboCmzex12wJAT0sM0ufbYM66xJXCSCtfzDZ480gH808T+uD6XBrr+hqrXh9nbVC8tlUnb5swjhsCNUWf6K2mhbo5X5wxaJaJyGgHvyNonHC1rvArK/i3fZREc+SjdA0UhKO/EQl0LX1997WzguwjM8lOdYxAPJmDZNrKvHY8qiIGEA7jSF9aDzrINycPe/waj6oyMBvWN/YyqgkR8t5CPARz3Yo6OjuKOR37IyLAa0MXx4WDwG/mXudA9ePrj8lkrnUi0dJ80ia9M 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:(13230028)(346002)(366004)(396003)(376002)(39860400002)(136003)(186006)(1800799006)(451199021)(7696005)(9686003)(71200400001)(33656002)(86362001)(38100700002)(122000001)(83380400001)(38070700005)(6506007)(26005)(52536014)(2906002)(55016003)(54906003)(478600001)(41300700001)(66946007)(8936002)(66476007)(8676002)(66556008)(66446008)(5660300002)(64756008)(76116006)(6916009)(4326008)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: N01nNB3XyzKYXwHkBp3WpZewiFYgzCahxdmilpxKMCSSsKXATu9yGddtpEPxYBXPejOpCDKMyMLuvzLHUr2pUW/2ed89kHUoJFXSOrcTlPhaKLLzBodnpkaeTq+QLwL96OlhfEBOG8E9e2B5yfABIY/mpLaxxsfxj3lDM1+Jj1qMSSL5F/i8mu1FIiYpMYg8H8nrMTYwelUqoSbXtdAQQGCs92tFvLPu/lFe5nemt5tmbCYMu0E+13Tji2qCJZ/2anRRc43QlBbh41RNgDIwYRzysc6XyEyLJJc/QSaV7WYAZPO7Isgb586NKXol9NpUW8udT/Pa4FfATUNyS2/odqeI/atg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XKarH8mwQ2HiuxDnTczGJTjAmA//XHgDHPaWShsFS5swqX9ZcvU+HJ7kESkmg6DLvNx0vA/rfSyiXY8n5cG/RQgcRmG9NapVHL2zRh/4zwpQduDenLhpDIpE4dyCxPLaSspFhwIQwEQyTNsRZmREpirreXacjGoKxgjlt3M 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: 87874596-9e0c-4c86-9dc5-08db9d781ada X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Aug 2023 10:12:17.4739 (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: ZN2eCyPfUy9TMQ66OFTl8OR3xFqNZQf/rJErCxKAHqu+hRu0r9qeJVfvnOOaQPRZw7kQ2A11G80wGT5Zq+rreQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7156 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 (1): wifi: mwifiex: added code to support host mlme. .../net/wireless/marvell/mwifiex/cfg80211.c | 327 ++++++++++++++++++ drivers/net/wireless/marvell/mwifiex/cmdevt.c | 14 +- drivers/net/wireless/marvell/mwifiex/decl.h | 12 + drivers/net/wireless/marvell/mwifiex/fw.h | 15 + drivers/net/wireless/marvell/mwifiex/init.c | 3 + drivers/net/wireless/marvell/mwifiex/join.c | 64 +++- drivers/net/wireless/marvell/mwifiex/main.h | 10 + drivers/net/wireless/marvell/mwifiex/scan.c | 6 + drivers/net/wireless/marvell/mwifiex/sdio.c | 13 + drivers/net/wireless/marvell/mwifiex/sdio.h | 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 | 10 +- .../net/wireless/marvell/mwifiex/uap_cmd.c | 26 ++ drivers/net/wireless/marvell/mwifiex/util.c | 73 ++++ 15 files changed, 583 insertions(+), 13 deletions(-)