Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp722823lqp; Wed, 22 May 2024 19:20:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV40F34YZ0pXqO6bu0g0x7xjA9FQ1xZanolfXstrUFiXw55SwVbddtVbdVd2i5q/JCg49NbUk8AdxVfTPgu9tUSZugPFdnuGl75nL5pgg== X-Google-Smtp-Source: AGHT+IHYEYo3kQO6FMsCHa4xkzWa84LboXdFLyjpxGp7LscgSSBTyVB0KuV2AsVY8kBEgMz6I0jP X-Received: by 2002:a17:906:4545:b0:a5c:f349:da7c with SMTP id a640c23a62f3a-a62281c9e2cmr228842166b.56.1716430844620; Wed, 22 May 2024 19:20:44 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1b795f03si1601318266b.823.2024.05.22.19.20.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 19:20:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=RyHmPiIp; arc=fail (signature failed); spf=pass (google.com: domain of linux-wireless+bounces-7972-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7972-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2EC3E1F21FB5 for ; Thu, 23 May 2024 02:20:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DE7B8475; Thu, 23 May 2024 02:20:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="RyHmPiIp" X-Original-To: linux-wireless@vger.kernel.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2058.outbound.protection.outlook.com [40.107.105.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16036567F; Thu, 23 May 2024 02:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.58 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716430831; cv=fail; b=Hsxx9dCpizRMMMBfM1t+GJHKjVNKPeZcQKruwBnmMSq9nOlk2hburuJ4FUCeTUqKH/eVDw4tOQQUUl0Rg1/1T569bgBgoXbo8nIJT3fsktzWw99AlVV+xva2CX2w4h7aQQ4NTu8rVBRC+SrjmmnSklEtbmZOmQj+SpisAMpwLpo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716430831; c=relaxed/simple; bh=VvaXW52K/fR8fLDtbZl0JEeWiJiV9GCpJ9+H+4IYIbs=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=fb5qI8toL7GWp/aX8E4NvEWa0NmgdBQQttw+DO0bfAl6RTsSfFh1OoAs+vEQVsABjxDjK9hULM0jYFtqQdfFJAW1+doBVvc+n4S1oT+bIxOPOai2SwnIMx+lF9ahMKdMeYpyAtl4cZKZ1QY9l0sytFZN3oyvR7kM7tEkDiBuc7E= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=RyHmPiIp; arc=fail smtp.client-ip=40.107.105.58 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tih2zOphrDNURZRIfrM7XDnwGe9KFsn6XdRpqUUGNeXR4BNecHSR5oBjP6aI+RRYnPOX8qyunN+omVgJ/TH41J3sZFGSHwv4vFhkWw+qk3IDN4aD+wl0UAst7lMxjKU9DL7Iabb45tQX+QGAvJ2LkrF9BfbxOFAxitaZMKiNuHga67tq3jQwemhxVfsvvcSmenm4JwMNvlPj6Jfw5UjAU+Dm973IaYrAnY0TLidJKZ8m+9JInZtTwPeOWdnKM1cSQ3gKihg3VtUhySYPuX5ZPXFbz0y/irv2PSH0UUprPZGpNxAvXqrMtbEpOQUA4z9EMpViorS2FxinvipL39yf8A== 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=tN+6PgowAgtHBTCHjD5eWDOK1f4DAKdTAOG+BtrO9y8=; b=U9x7DHOO0u/U8UT4s7LL7gHeffoZvSX4YSfoEnJOweiEQw0C7XXcnTJSgN9iR1gXGDuT8cdwkAa1btqhfhVcxw+ofvT7qsSPK6X1g/f2e2CCRwVzNVcmH5NBecJsTSF+qh4WSzVQJdu8RTuQ/ji0z02+5bQ7VHSq4SmuKxZQaxta0y/T0T7ZQaArbO1CzzYAgf1GYrlRmu3A6lFlF0RHSpup8BY7kUn0B7b4dJG7krCe19XZ6fOGI91dxkgscBH4Mo/2YNPt2yzRcWWDLUWTf5SWCz9P5FJ0gzndOas9bpypm5NN8+KtZhrDTzP48EeZKHN09nVf/a/N2CS7/moxSQ== 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=tN+6PgowAgtHBTCHjD5eWDOK1f4DAKdTAOG+BtrO9y8=; b=RyHmPiIpKq8AS4bO9qenI8guHJXSQjLYY7G0GAOFuTx6tGqhhOcY9wujw8OWwi3gKNGVu1SbBrzX5vqjrHi8fwWYfTsmyha9F0tKI/0OwcWPUHBmtfyLFJbYRFZIFdOzNB/9Vr0PojLAfRzISxifdFOeOIjnIn/8uv1NO78ig20= Received: from PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) by GVXPR04MB10659.eurprd04.prod.outlook.com (2603:10a6:150:214::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.19; Thu, 23 May 2024 02:20:25 +0000 Received: from PA4PR04MB9638.eurprd04.prod.outlook.com ([fe80::f950:3bb6:6848:2257]) by PA4PR04MB9638.eurprd04.prod.outlook.com ([fe80::f950:3bb6:6848:2257%4]) with mapi id 15.20.7611.016; Thu, 23 May 2024 02:20:24 +0000 From: David Lin To: Brian Norris CC: "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kvalo@kernel.org" , "francesco@dolcini.it" , Pete Hsieh , Francesco Dolcini Subject: RE: [EXT] Re: [PATCH v10 2/2] wifi: mwifiex: add host mlme for AP mode Thread-Topic: [EXT] Re: [PATCH v10 2/2] wifi: mwifiex: add host mlme for AP mode Thread-Index: AQHakVah/NlfkBV8NUyUKYHJ747D+LGkNjoAgAAWMtA= Date: Thu, 23 May 2024 02:20:24 +0000 Message-ID: References: <20240418060626.431202-1-yu-hao.lin@nxp.com> <20240418060626.431202-3-yu-hao.lin@nxp.com> In-Reply-To: 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_|GVXPR04MB10659:EE_ x-ms-office365-filtering-correlation-id: c37e3033-9d7e-43cd-589c-08dc7acee7af x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|376005|1800799015|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?7LzbOV+C/M0LzwYPscen0H9n/J4RQYMP7Nk4Hb2NuGnVZlZMD0KUhCIZKZdc?= =?us-ascii?Q?Z39b+8pL9P3XQYKDQJhxiS+VuzCR9pPxxlISPAUqfn3+RQoI48R9KYQcHKhG?= =?us-ascii?Q?j7SaI/o+9KVFIL2wsR3hBJu6HcZi6+1j2QPQohZNZasDqOt8TrGvXNeEp7nh?= =?us-ascii?Q?D9PuGebKBSbd2lXpwdjpLJSI9Om6tNtpVRxK/4yDxma2mttWB4UKhDq+8Ovz?= =?us-ascii?Q?AWZkbR22I3klqyGFEo1NH2lVXaQwn24wJ+o0wBVRzz0kVVtrJ/oD6eS4MSkv?= =?us-ascii?Q?arYZt9FFAa6u5qmK7h/8X8IDVbKd+Vs2lyOoAYR9IRXNhlHky+JnOSxNdrQE?= =?us-ascii?Q?rhxgpum1RhXWtBA3mhO12qfuQP7N1EgADwxbigGxs9Ij5fkAdsoJpvDMQa/p?= =?us-ascii?Q?IP/DyUsxBVjTWy3F6qs/7nEckMJi4Fig1D1DFv0S2H/1R2ag+coF3v9kFjzL?= =?us-ascii?Q?U7sN6lk81XZ/TNlbpp4XXJXx4pacmuFTbq2A5wTank6rEx4SzQEdaoRTvvMK?= =?us-ascii?Q?Lozj2W5AfeL61780jni2xssGZ23wnkFOtPPCTxPcfdgB+8v/b2Eml5D7urpp?= =?us-ascii?Q?zva2AsiiKeuqIwkpAn8NqqQbkGlEr4T4xeLZOOVIg37buMDRU4eBqsz63u9k?= =?us-ascii?Q?6lFoldbWaSXJ43nK4ILDc3J1fMDue2tNfxdVuec3bQ7s4p5t4MPjnOYXTBYt?= =?us-ascii?Q?nTVmQ4a/G6HoDqAjnEFEtS4XFMl2T5wEbGcE/YnEMoAzXod8BIvvYleSnKO8?= =?us-ascii?Q?A/29pw15QLZ4SGMzPfFGuexZbT4mW5V9tW/5SbcKmJVvjBZIezpQhl6XVetc?= =?us-ascii?Q?a4DMflU+qG5djUt23okWqO4Lp0lv3lZZG61hXvt/4HLOtX6sP8SxsJvW802M?= =?us-ascii?Q?3kLzGtQKuhn9rfKhmif0LnALJ+qv4XGzuDB72FMzCMgoY27EI0lgoI6uQBb/?= =?us-ascii?Q?zIH1JOlBoslRWGgz7W2zyPWQKWGIi5XWe+9Lsl5NZhVl69JNXZhSawo0q98C?= =?us-ascii?Q?eMee98V82zwjaHgqZUT2+vk9KR3lV2VnFX0YIGM8lLN5Sx9BYqWqinnYlGIg?= =?us-ascii?Q?9ynaaROcN4FMINyKjzIg+s5M7RyDngwirmC64Qy0C/CTANCKhnJZ2PJNeId8?= =?us-ascii?Q?wozCmhp6y6k4MmxpNdy29ddGP+VJQBtCrqdADiSdwm35T8h4lrGJENAKCjPA?= =?us-ascii?Q?7Aqiob7SQbLvyUNArX4H4XbuQc2QmLRDDQGHo400jxuReMGKuVjGFHbOLTgI?= =?us-ascii?Q?6pdfCKZIsjcNyAWayRfgLMQMJ16/rJ7mJwqTEd5fx4FdhfTwVxkd507ORzgA?= =?us-ascii?Q?b1LPgNeVhUfGvGWMVfcURD+gBMPJzLSyFmi4Jc0aCHmSBg=3D=3D?= 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)(366007)(376005)(1800799015)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+psAPzi/MpzGQhkr0wZ8uVQZu4uS/06n/W/8tqQehCMSUSgQlzDZ1Iz9TqYH?= =?us-ascii?Q?1qE4C+9eCYpb4/ITTreky+HrrMhdbMrVT7SqLnEa5iEvrICzWyP6BWVLY5Oa?= =?us-ascii?Q?G3nBWAPlLGvKjOLx52h/3tFJ6VexSnkpR+V9IuGGO9gG1EQWaM1o9IShc6dE?= =?us-ascii?Q?3ysyjvjlorvEcenPH/NOhTpcyFnh5BxIabx/BBtf3VUpL950txdTbscCKVbA?= =?us-ascii?Q?Os7Afo6SbCn8zXTyayrvhRgAoYnL2WHNTSPzsRlPU4oQDHDvQwn1rqx8HefO?= =?us-ascii?Q?bvGSwi1QzWk22ecdwss/Zlz8AYn5SicJ0opkWgAcmmN2SmZqrHzD9yQDV3bw?= =?us-ascii?Q?/jRIeVp+NpEczv6I84gnfSAgXnt4BLI9rfJd97Rl2gPzVh8r/g806ymptgjJ?= =?us-ascii?Q?1PxUhhUIf9gI9JY8+uF+Wu4XmHYJyOfqC0pIs0N+PKPJBLDJHTeJZQ9CMpAc?= =?us-ascii?Q?gxtaU5ZsO5N4htJKJnITZZl5DbQP3B025vWaI9ki0lZbP3KLnve9vy8bN/NP?= =?us-ascii?Q?2Dz99bZu/aSZkT8AHCJWpGMMcIJA1N+4iBYPhrR5/GRb1NSf+qX1WYQjLzy9?= =?us-ascii?Q?rMInv4OCqNhZSE1Gw6rJmIyJv46XmoccuZldmyzrf4/xbb0kq4PhU0UhXPlg?= =?us-ascii?Q?2SHyeZ3BxtksnLIHgQphM61ovyiX1Wa2A4cdlL32gVN0scCMCKbgbQVD15nf?= =?us-ascii?Q?rdcyoJj2xvt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set="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: c37e3033-9d7e-43cd-589c-08dc7acee7af X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2024 02:20:24.8625 (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: k+RkWQnV+e2baKcGFDz7iIxFSZ7lc23o7RdSYtpfnkGwnDPj7Tblos0ufco36vBunCsnacL/m8akau82Q2RxtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10659 > From: Brian Norris > Sent: Thursday, May 23, 2024 8:59 AM > To: David Lin > Cc: linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org; > kvalo@kernel.org; francesco@dolcini.it; Pete Hsieh > ; Francesco Dolcini > > Subject: [EXT] Re: [PATCH v10 2/2] wifi: mwifiex: add host mlme for AP mo= de >=20 > Caution: This is an external email. Please take care when clicking links = or > opening attachments. When in doubt, report the message using the 'Report > this email' button >=20 >=20 > Hi, >=20 > Hopefully-last comment for patch 2: >=20 > On Thu, Apr 18, 2024 at 02:06:26PM +0800, David Lin wrote: > > --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c > > +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c >=20 > > @@ -1712,7 +1735,7 @@ static const u32 mwifiex_cipher_suites[] =3D { }= ; > > > > /* Supported mgmt frame types to be advertised to cfg80211 */ -static > > const struct ieee80211_txrx_stypes > > +static struct ieee80211_txrx_stypes > > mwifiex_mgmt_stypes[NUM_NL80211_IFTYPES] =3D { > > [NL80211_IFTYPE_STATION] =3D { > > .tx =3D BIT(IEEE80211_STYPE_ACTION >> 4) | > ... > > + if (adapter->host_mlme_enabled) { > > + mwifiex_mgmt_stypes[NL80211_IFTYPE_AP].tx =3D 0xffff; > > + mwifiex_mgmt_stypes[NL80211_IFTYPE_AP].rx =3D > > + BIT(IEEE80211_STYPE_ASSOC_REQ >> 4) | > > + BIT(IEEE80211_STYPE_REASSOC_REQ >> 4) | > > + BIT(IEEE80211_STYPE_PROBE_REQ >> 4) | > > + BIT(IEEE80211_STYPE_DISASSOC >> 4) | > > + BIT(IEEE80211_STYPE_AUTH >> 4) | > > + BIT(IEEE80211_STYPE_DEAUTH >> 4) | > > + BIT(IEEE80211_STYPE_ACTION >> 4); > > + } >=20 > This doesn't look like a sound approach. I think you should keep > 'mwifiex_mgmt_stypes' const, because if you're making modifications to it= , > then you may break multi-adapter situations. Consider someone loads this > driver with host_mlme_enabled=3D=3Dtrue, and then later registers a devic= e with > host_mlme_enabled=3D=3Dfalse. The second adapter will get the wrong value= s. >=20 > I think 'mwifiex_mgmt_stypes' is small enough you might as well just make= a > second copy with the MLME-enabled values, rather than fiddling with > modifying a single copy. >=20 > Aside from that: >=20 > Acked-by: Brian Norris >=20 > (Feel free to carry that to a v11, since my only remaining substantial co= ncerns > are with patch 1 I think.) >=20 > Brian I will modify mwifiex_mgmt_stypes for patch v11 and carry your "Acked-by" t= ag. David