Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2496798rdg; Mon, 14 Aug 2023 04:42:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIGeEbTbKhfpMcBotgD9zg7QN4HcSAd1mh7wxNhYxNJIXCdbK7q3H4EStKoAIfHdL/mZh3 X-Received: by 2002:a05:6870:d113:b0:1c1:12dc:70b1 with SMTP id e19-20020a056870d11300b001c112dc70b1mr9739247oac.57.1692013374692; Mon, 14 Aug 2023 04:42:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1692013374; cv=pass; d=google.com; s=arc-20160816; b=S3CECWIrZi1quMhkpGl7BPexb87UkGYZetgwYpnW0LLb1GD3tZcIsui1w5Q2J/ieOE 7vO9IU4NtxLvOYLX4dKoI71Eul9T3lMdxp3owGLC76bbxL3hTa97Ua+pmbIsScQiPnPM FOwmRvN8dngTvadrU2ToNsL8/GgBBixVedzdQnb9hoEMo3zHHbp3bvLW48Xu9gZAWpY0 Dsi48p4FNxT7cv4ieQO4cZ6kCHH6FS4UHbmEK8W8EJSK7xLXwRxE8w0LbpLFs6OuJYFE LIwi4UmTJWHmt59kF9pDDikEr4JdvKlazZl9PR71TUOZAEt42UTc6+qWeir6fxNENwfH bE8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=u87CCQvbHMGSsiF5BgUvN7HXd2QcmNhbzZYRJYtdwz4=; fh=4Yx0nBt2nebZVpoa7wCFXzSIzO4ThWavvq6OJ93xVKo=; b=Zi5EoUNdOlleU1Fl6qO+ocjdWXAG69Jq0eSt0AVRCEaeTQvnXf3DH9qpcHXXPsuuTH 9p5jweyXDzKnKmOvaW55ZXCP5VRka4zp9aDZ3jUkkxlzhS89oElqmyA0eJr12QcN8t3i x6GI9liz0olpRUvA7gccrxEfX84iieew3QvtPnVrDav6h1jgdlg01ceuGJIx47NdYQ/S t9PMktMn9h5nRtrtBJJktAJdDFvWugIxfax1M75cLFCj4KuTTnn9ris/GyT6J3CtWhGH 4ShVrNk3dsteqpczXHcuuWpz0i+le6srr4HptZGE2yJonKrautxWnigiFeD6yw/3I3gg WX6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=A0PJaPkZ; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1-20020a17090aba8100b002610f13639asi9954306pjr.91.2023.08.14.04.42.43; Mon, 14 Aug 2023 04:42:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=A0PJaPkZ; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231447AbjHNKkJ (ORCPT + 54 others); Mon, 14 Aug 2023 06:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235527AbjHNKj7 (ORCPT ); Mon, 14 Aug 2023 06:39:59 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on20603.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe16::603]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ED311BD0 for ; Mon, 14 Aug 2023 03:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BFqj9WV7DjKUbOJJEW+XwP6ZZzxP946euMyNWxA4cGhh091rjInL6etFqXazZn74/ThHe+0x3+Wuga5Uo4XWv8nTyVuds6xMlmpvVoVa0ouBIo5GCa0/+vClqcvV6/kJmBPgCk2Y6PbJOojiL3NWgKtl4qqfdwDnQ8fStomJo8ec4uvy+Ws7HzUaft383LZYWmrNB8PDYSCy9L32Zdi5GuhWynxm4GswUXb7uY1UX9aifdprtIxlghqe3JBOnpTCCW/VfPuZgKUGvZ5L3tcmfuqggDthGwxPMTINGpVjidIwv5W4eWV5qrUEgQ+M7tx+z6tFZR5JOS35uWAIhi6KMw== 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=u87CCQvbHMGSsiF5BgUvN7HXd2QcmNhbzZYRJYtdwz4=; b=Lv7W+RXF3WchxO6+vw/k1lITp2hdDl18YqBXWoeKo+x3y3cjzFlgbhN3lefq84rkf4mKM3Nbc6JYTn6BJomzrRN4c+gcfLTNFfMKQvwmv0BNlPcHbyNqZMF6owY3uQkRTKzTqrtlG7gFHj/JhCKrybWWN9pybYgrxfKA2Zy5blzjDpcgK95YMaRlbDUAqDQi7BB6kWjUtzOvl7Wxwn2FeVWxPzrv6Cls7uqciCoAsMX0zGJOQZVuqA0akO3SuguM1ZW/9iKzjlejZlbxpac9g83ya83v43KDCmCOWnMonSTAlRybnUhjE+BvQtNRZ9nD5LEblXI4vdMeUmQeuG9+Mg== 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=u87CCQvbHMGSsiF5BgUvN7HXd2QcmNhbzZYRJYtdwz4=; b=A0PJaPkZgxV9VfQfid1USykMBSNeqIPGbsE9avk3emUbenoXrzl1dctgRzF0ZT6g+PzuvYW3V0igW4NtByBqxJrW6I8lRiZJUe7L4uUMokgCX+gCf6DPxy7VAGrentRGP+qfOZ8mgN0yxj3Y/atNLaGQjbQkS/HLZTWRu6qNWCg= Received: from PA4PR04MB9638.eurprd04.prod.outlook.com (2603:10a6:102:273::20) by PAXPR04MB9139.eurprd04.prod.outlook.com (2603:10a6:102:22e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.24; Mon, 14 Aug 2023 10:39:02 +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; Mon, 14 Aug 2023 10:39:02 +0000 From: David Lin To: Francesco Dolcini CC: "linux-wireless@vger.kernel.org" , Sharvari Harisangam , Pete Hsieh Subject: RE: [EXT] Re: [PATCH v3] wifi: mwifiex: added code to support host mlme. Thread-Topic: [EXT] Re: [PATCH v3] wifi: mwifiex: added code to support host mlme. Thread-Index: AdnLM9yJ3sHx+trUShG5sDbPtsfBhgAN8B0AAAMu0UAAB4TpAAAYtp9AAAwrgIAAivjV8AARBT0AAABe7hA= Date: Mon, 14 Aug 2023 10:39:02 +0000 Message-ID: References: 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_|PAXPR04MB9139:EE_ x-ms-office365-filtering-correlation-id: 1bc77df1-851c-4bb0-c00e-08db9cb2ad3c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yFfCygyr3DnUJdNEcdZIPbu3qtAN0dnECwbAjyl1RTFlj5Rhw3NwyjPEi3JvpAPt2tYY1B1nGo5dKOTy+GU/Hc5zv+4NVdQ//t0cTUQ+iekhWlYXs30f41ij/u1uAvpX8axgZUngtmrD8fnzPM9fAiEUMZ9Eiwb1h43vfBbG6t1ctPwc6DBCXmVotI0dr6+q26JPI88Cl3LiNS6xxZR8Mzqi5OtxMWpsyR0DWC4TlN1AL4t4u00VrctjilDF2YeKmcfsLAvoODV/x/E4CuUyVxubhqr5L4b7olf5yTc2WsyMHj2jyV6ShrXIpKWSYgbvzg64U1b+pOwmfiVogzqML8e6LUmEIDOALxAhjVyQKTM9ahfqMcUklpxCCGUDicQrBgol2VmUGQAQTEhd+wPfsblV2Ny6boA2Eo03EqsOE7+Q1aWw3uGHvN8ooxaaeaXtOK4cVl3jlEmjRy5r65Yfpby5ApHLrQhmmzgFkGGfbkbf3s6Y8o39bY4f1ukK2Xie9JgC/Gm07aMJbZXdeCKDMxLkHzDAKY730mVqwG/3uyaIP5/CCybwqxbioD0JLgHNSnmqge6mVjNBs7htT23d1OIqzv9v3AUgJoJ4+7DGO/T+221lkSt86/B9u1LCnWF1 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)(396003)(376002)(366004)(136003)(39860400002)(346002)(186006)(1800799006)(451199021)(33656002)(83380400001)(86362001)(55016003)(38100700002)(41300700001)(478600001)(38070700005)(66946007)(54906003)(66476007)(66446008)(64756008)(66556008)(76116006)(6916009)(122000001)(9686003)(316002)(8676002)(52536014)(5660300002)(4326008)(8936002)(26005)(6506007)(7696005)(2906002)(53546011)(71200400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?pBtp+xf93r4IVKFvv+zn6vAm196GCZ505K+w8rm24hLHsLf/0pD4uP2w/I1t?= =?us-ascii?Q?m8FtaUq/nZoN8cRpoQa1V1ooPj7swIV7tejEThhGASCBDRJ6YpWkXNluh/03?= =?us-ascii?Q?aZeaadvOf14sTqjbJCl2sYybF3TdNsEiVCcB21K4ChIA9ESZgfsyLPvXtAAZ?= =?us-ascii?Q?/GQvsLQBWvzTJqN62bCCu+mthrs8FHvCjCs14g71kie1dW2Q3Sl5w7wkOQGd?= =?us-ascii?Q?QFheAo9drwMwTKFERQpuV4+dacREEuBe/gEwMWb3FoOMDglt380YmWsJkddv?= =?us-ascii?Q?OR531S9LgW7EVJoDEojjOW7S9z8a9cda5xdJW4uMfsUxlkTGxo5b+3QGsb9p?= =?us-ascii?Q?gQX+mT90STtNbKdCs9BRB7Evc6IKcwRz6XlHabwBMQohj6MgGRCWKLV962O1?= =?us-ascii?Q?ij+l1ntNwXB+Wmv8HLKtza9pBAt+c69NJU34p5dwymoC8eG1YF6WYemKHhY8?= =?us-ascii?Q?j0R47jgv7xIm3YgSue1omLGybXUfPrvTI96q+yp1srGLtRCwDqNu4qac4e4r?= =?us-ascii?Q?oIampjv1cKvL7Y77pxSB3TA/hc89ngogbVJwDb0BBTS1LrkS4sKkZtAISV0/?= =?us-ascii?Q?bVatcjfDwACpZXVtgzc7gwr21J9+4PMDfLmFHOPbTyhEW+X+9FKxTzk/6Os5?= =?us-ascii?Q?rnvaQOtSnNS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YjDcX7?= =?us-ascii?Q?KJfrGqcdJSX1UWi9dc5j5Kkh1NaZUfhiSwpzRuQR?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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: 1bc77df1-851c-4bb0-c00e-08db9cb2ad3c X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Aug 2023 10:39:02.7375 (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: 3ms3ztL8d7B8lgI9h0/aIrinspOQcBlSzE7CiYpJEXG2ygZvUJp5OOfo/KnLcIoy/cKt0GhcI7rfyae99H+TZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9139 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > From: Francesco Dolcini > Sent: Monday, August 14, 2023 6:27 PM > To: David Lin > Cc: Francesco Dolcini ; linux-wireless@vger.kernel.= org; > Sharvari Harisangam ; Pete Hsieh > > Subject: [EXT] Re: [PATCH v3] wifi: mwifiex: added code to support host > mlme. >=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 > On Mon, Aug 14, 2023 at 02:21:51AM +0000, David Lin wrote: > > > From: Francesco Dolcini > > > Sent: Friday, August 11, 2023 4:01 PM > > > To: David Lin > > > Cc: Francesco Dolcini ; > > > linux-wireless@vger.kernel.org; Sharvari Harisangam > > > ; Pete Hsieh > > > > > > Subject: Re: [EXT] Re: [PATCH v3] wifi: mwifiex: added code to > > > support host mlme. > > > On Fri, Aug 11, 2023 at 02:13:43AM +0000, David Lin wrote: > > > > > From: Francesco Dolcini > > > > > Sent: Thursday, August 10, 2023 10:25 PM > > > > > To: David Lin > > > > > Cc: Francesco Dolcini ; > > > > > linux-wireless@vger.kernel.org; Sharvari Harisangam > > > > > ; Pete Hsieh > > > > > > > > > > Subject: Re: [EXT] Re: [PATCH v3] wifi: mwifiex: added code to > > > > > support host mlme. > > > > > > > > > > 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 > > > > > > > > > > > > > > > On Thu, Aug 10, 2023 at 10:51:36AM +0000, David Lin wrote: > > > > > > > From: Francesco Dolcini On Thu, Aug > > > > > > > 10, > > > > > > > 2023 at 02:39:21AM +0000, David Lin wrote: > > > > > > > > 3. Firmware version 2 is needed for this feature. > > > > > > > That would mean that we could just enable it for other Wi-Fi > > > > > > > chip variant that has firmware version 2, after testing it? > > > > > > Yes. But I only tested with IW416. > > > > > > > > > > Can/should we probe the firmware version at runtime, instead of > > > > > hard-coding this? > > > > > > > > Firmware version is reported by firmware after firmware is > downloaded. > > > What's the problem with that? You cannot really do anything till the > > > firmware is loaded? > > > > > > If I understand correctly the possibility to use this feature > > > requires its counterpart to be available on the device firmware, > > > this should be the criteria to use to decide if this functionality sh= ould be > enabled or not. > > > Hard-coding this depending on the actual device does not look > > > correct to me. > > > > > > > If firmware is old and supports firmware v1, you should not enable > > host mlme for the firmware. Firmware version is detected at runtime > > when firmware is loaded. >=20 > What I am trying to say is that in mwifiex we should just decide to enabl= e or > not host mlme at runtime after we know if the firmware support this > functionality. >=20 O.K. I can add the checking in PATCH v4. Thanks for your suggestion. > Francesco