Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5520819rwb; Wed, 9 Aug 2023 05:36:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGj7qRz4ofTYhRSB9I0cmdut8Eyx+vkuy0pqu2PfuyQv32SPeFLLF80Mv1BQY8IC/giUxHp X-Received: by 2002:a05:6a20:a128:b0:141:a70:6c26 with SMTP id q40-20020a056a20a12800b001410a706c26mr3078979pzk.57.1691584582552; Wed, 09 Aug 2023 05:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691584582; cv=none; d=google.com; s=arc-20160816; b=CB0JecYETmt7Srxv+rJrdu5+GnOI8oHu0f4ROqG/o+giqC/VBYQ7UgKTZYtJslAiIP +g/hFsSGm4dwbHgdQL2F7v7YT2um/lwn+68NknPxnYyam6Atwe/xbEKWZ1qwYw3YPDfF fFr5VS52JDB50PviU0H2vWdWYqtxcA/9aFzp2aVJeWLY8IfCpTIPWKyBQwnJOLCipi9w tJK1Ms/9y17eyvoA6G8GbsNuQ90KfEWcXkSMHuMINRNb6FeYla1bOy8u4k3PlTfbwmc7 DphW0YLNfEps14yvLnLRdSamVn0Qlp7JukIQ7OQHBspMlwOQa/+x6gMdI14Vs2Zn8PcU YNaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=nWwK8CKTUZhgeeQHgcwt/1g76fZqRGLnTnRAA45SNoQ=; fh=mbYwqqxPFFVA9AqmTy+6LLXKGzlnJcHc9ecOuQr+5A8=; b=t0C5xxQiiTsOWFpXJheFkqJxmQdk5eWucYKROFiFwjHEfsPOaeM3tEzN7lRqqNaJDc C14nQoMkXb0rgud6oF79e1q7MBLKk0c1rLG8Cw6Woa+R9yK5O4wYXB3fCrJW/5oxCbYi m35f40DjWE3Lf8XKeDj29DFjN5KyJwoMXicZyVwen/sNCnqT2VYl+bKAeAc5YTVfqCY8 MNVqERQS//EvT9BQo0zZMZbz6b/3FVPxqqq/ZhSWsd8hrIrxhKwQqIe+hSEDwqGAaP4A nS9baZD4NvdvHgBcPHJk9zf98JoZ8dDfMOoStcRhFhEQXdsrtBZAPBCvgJTQXRq1qauT DWLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=VW3Xd7Ok; 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=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18-20020a056a00189200b0065dfb27ee3fsi9377387pfh.246.2023.08.09.05.36.14; Wed, 09 Aug 2023 05:36:22 -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=@sipsolutions.net header.s=mail header.b=VW3Xd7Ok; 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=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232242AbjHIMXa (ORCPT + 56 others); Wed, 9 Aug 2023 08:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231426AbjHIMX3 (ORCPT ); Wed, 9 Aug 2023 08:23:29 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F8D01BDA for ; Wed, 9 Aug 2023 05:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=nWwK8CKTUZhgeeQHgcwt/1g76fZqRGLnTnRAA45SNoQ=; t=1691583809; x=1692793409; b=VW3Xd7OkYfR/7U9iIhdGPUOnm/G+oq88FvKdvcshmLBbHtb xZwSDc257/shma1J8yRgfozDLywi6eUKPYTXrH/nmK37epAPYcQPLnFFK1fVDqe9KVKYU5d7fAjge SF3v/bJEMfZrZk0o/Xq3XE8F+FIR7Z1zx6kCnnrmonD51lt492X4dxIzDawejPVD2raYWJ4X9Vq53 KamXOI7eubDvN3GqQX7LbHQj6fWoKHTFNedn/fDS7xAg0/PuHgyCjQElaMPI90VZf+NowN2W6F2hh hW17IXyjKojNYz+Xmvei/jFfAROVZfsFuaJ2OPSnpeBr5VTYYK5pOwDFjBNmpCRw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qTiDm-00Ecxs-37; Wed, 09 Aug 2023 14:23:27 +0200 Message-ID: Subject: Re: [PATCH v2] wifi: mwifiex: added code to support host mlme. From: Johannes Berg To: David Lin , "linux-wireless@vger.kernel.org" Cc: Sharvari Harisangam , Pete Hsieh Date: Wed, 09 Aug 2023 14:23:24 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 Please see https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes#commit_messages > 3. The code is enabled and tested with IW416. > There is no guarantee for other chips. That seems misleading - it's not even enabled for other chips, is it? Or are you saying that there are multiple variants of sd8979, and only one of them is supported?! In that case you need to detect it. Also, it seems like you likely need to detect the firmware version that has the support, not just the hardware? > +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c > @@ -331,6 +331,7 @@ static const struct mwifiex_sdio_device mwifiex_sdio_= sd8786 =3D { > .can_dump_fw =3D false, > .can_auto_tdls =3D false, > .can_ext_scan =3D false, > + .host_mlme =3D false, probably better to not have all the =3Dfalse lines that are default anyway? This is the only one enabling it afaict: > static const struct mwifiex_sdio_device mwifiex_sdio_sd8978 =3D { > @@ -408,6 +413,7 @@ static const struct mwifiex_sdio_device mwifiex_sdio_= sd8978 =3D { > .fw_dump_enh =3D true, > .can_auto_tdls =3D false, > .can_ext_scan =3D true, > + .host_mlme =3D true, > }; johannes