Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2465192rdg; Mon, 14 Aug 2023 03:35:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyMXJMOYk35fVTR7kRSpF3yx861rU5nSBHdORuT7QlHysmhyc1tC4BZOokzpYv+90GonF+ X-Received: by 2002:a17:903:441:b0:1bc:682a:b130 with SMTP id iw1-20020a170903044100b001bc682ab130mr7397098plb.27.1692009330591; Mon, 14 Aug 2023 03:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692009330; cv=none; d=google.com; s=arc-20160816; b=GTFMxJg5P/LSLGGYTvUZIi5V/wM88Fr897ozRfqNKvkgDtdpfMhMuEIumouQPTgtq8 c7u2pepA56E0YD5rbkUnNFfdx8ITbQ9JH2A+dCVZrMkc+ypI40uzVnksB8CAqXESKgTd jauqzp0ouRe3fT3mCz324oB981UUuES2JRGPTLZHUXPKSIPeX+jfclcYKpq5USG+gTXW 6dG4kWmmhLsv2trebZLVSLeSgGabPv1N9OaYGdLLxg0zoYz4ALHZ/Ztd57ATWG4ybq91 t8saDjRWtaOCVbsTvRi8G1kOApArhQQgnL/MmPQfN4GiuxEWe+3pLApnrc1OiQ/A5H51 87Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=G5CPVe1/94eevTiIlWXNb6bQVwWazTcBLbhyDuu854s=; fh=0bEubJXGmz7qi7D31JA3MM7Z0f3J3rOSuId7Sj+ZiH8=; b=aOseKkymSwP5yzusAUeVryaLnT+mjBSegAkDYJDIbastRUd1tWvkfMi31wWi3k9fse ijfvOK7Q0kxYfGQde1Sw/4R0qJ+IvGpElYOXJfcFndcLrjwaY7UFYeSIu9cCdanmJks2 cym6h1v+Ok1DbtgCFnF+furC7Q1v1mFJPVwB0BARwQiVBrB67B/34mvxnejKwm5xwUPZ mrWQnIHgn1bLkMQVpHHmG9fjLixHxjyAVbc0YuYK7LdGZ3NyGu3NZ3dZyASU3Eaf8neN Rqz4LxAUa0QkjS4eGh3PJ48IkUXDEBptcE4gkygxiji1pc5ls1UgJsdPv9HCilXUSCWU kgQw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf7-20020a170902fb4700b001b53c722c3fsi7525793plb.597.2023.08.14.03.35.18; Mon, 14 Aug 2023 03:35:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233167AbjHNK2H (ORCPT + 54 others); Mon, 14 Aug 2023 06:28:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbjHNK1f (ORCPT ); Mon, 14 Aug 2023 06:27:35 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8B64E3 for ; Mon, 14 Aug 2023 03:27:31 -0700 (PDT) Received: from gaggiata.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 4AF301F83F; Mon, 14 Aug 2023 12:27:29 +0200 (CEST) Received: from livingston (unknown [192.168.42.11]) by gaggiata.pivistrello.it (Postfix) with ESMTP id E93767FCF2; Mon, 14 Aug 2023 12:27:28 +0200 (CEST) Received: from pivi by livingston with local (Exim 4.96) (envelope-from ) id 1qVUnI-0000rJ-2c; Mon, 14 Aug 2023 12:27:28 +0200 Date: Mon, 14 Aug 2023 12:27:28 +0200 From: Francesco Dolcini To: David Lin Cc: Francesco Dolcini , "linux-wireless@vger.kernel.org" , Sharvari Harisangam , Pete Hsieh Subject: Re: [PATCH v3] wifi: mwifiex: added code to support host mlme. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 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 should 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. What I am trying to say is that in mwifiex we should just decide to enable or not host mlme at runtime after we know if the firmware support this functionality. Francesco