Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp925522rdb; Fri, 1 Dec 2023 02:15:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHsD2sJ18XywuHEGGRVfoI5Qw6Bq98dnaBNINjSZm+3zYXGvJgxOdFpD07dXn2sq2nHaCZ X-Received: by 2002:a81:ac02:0:b0:5d3:9b16:f479 with SMTP id k2-20020a81ac02000000b005d39b16f479mr4148659ywh.24.1701425742641; Fri, 01 Dec 2023 02:15:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701425742; cv=none; d=google.com; s=arc-20160816; b=oqvyPLSXFmcFdouuBFqqtHMr1aeZ7pb6BHyfU4Q14GSS/izN5JoR8BJ5JRzDB6oO7h d/G+jbJykLX3wfDJS7uNpPwtg//hGuxIz9X0UaatW+T8Pmktq2+G0NsiKOTEvrXhtkAv 6r3bokoCemIew0EC2l5D4Gc7v7JRocDL8f4YEgRRxlo7+lEkRfg+7VHZiP/3FJYsHLWH 4dN4WLlWg7A+UrIrNXYCUo6C9y2Aa5xASFYq+sy1wUZHOBe4pX6LZqcmtN+4S3qB7XK8 hrNL8DcUnZC7nD3i3lc1yci6hgnYWl0qd02mT7WB6hUtMHOH/msPX0dZO1em7jm3/aqC MzUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=utdbL+vTz9z38hXr21T3WmLDOQKOTsXwjkrYPgNfOrI=; fh=2GZY/U2AYZSRm52+t8rjg0AVUvtkiHh4KhGZiS9fuqU=; b=SUT+NV5/edpzqx6fCgp7q6Ytdx8ACM1bNz84N77aUr6cESQ1NpDSsE9jH5jnHVGG6E N15lzIc/1msetzpIOXW3WWcBGF7YES+hpkdcTwgOLO27xkQ0Ja9bn+uReAnAdSC8otAk eB2TYhmmc1a9ERLGx9EAHxEKOSZ3xKg3pQxBO3T2BdUuuhDlcq3RE6uOsAaagxCvw1KS hpNRxuPJj6PqKnVRd7UQPAuMr5pLQOTKk0zlmyckS7IoTmAhXi4MfxOlf0gZtpMZs22v Fh/fFkx/8cmSWiTq2MuxB2IQ88NjhNxiCu0Ysku1gohB9b89QWAb3FntXgKWZyMrXUVh BHLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-272-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-272-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y17-20020ad45311000000b0067aa11dededsi120023qvr.414.2023.12.01.02.15.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 02:15:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-272-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-272-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-272-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4FDF31C20ABA for ; Fri, 1 Dec 2023 10:15:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14D78208C3; Fri, 1 Dec 2023 10:15:40 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE64884; Fri, 1 Dec 2023 02:15:35 -0800 (PST) Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 732F220645; Fri, 1 Dec 2023 11:15:33 +0100 (CET) Date: Fri, 1 Dec 2023 11:15:31 +0100 From: Francesco Dolcini To: David Lin Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, briannorris@chromium.org, kvalo@kernel.org, francesco@dolcini.it, tsung-hsien.hsieh@nxp.com Subject: Re: [PATCH v7 02/12] wifi: mwifiex: fixed group rekey issue for WPA3. Message-ID: References: <20231128083115.613235-1-yu-hao.lin@nxp.com> <20231128083115.613235-3-yu-hao.lin@nxp.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231128083115.613235-3-yu-hao.lin@nxp.com> On Tue, Nov 28, 2023 at 04:31:05PM +0800, David Lin wrote: > If host mlme is enabled, gropu rekey offload should be disabled. > > Signed-off-by: David Lin > --- > drivers/net/wireless/marvell/mwifiex/cfg80211.c | 3 +++ > drivers/net/wireless/marvell/mwifiex/main.c | 4 ++++ > drivers/net/wireless/marvell/mwifiex/util.c | 7 +++++++ > 3 files changed, 14 insertions(+) > > diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c > index 40c39e4765f7..3d59e6a441b9 100644 > --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c > +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c > @@ -3657,6 +3657,9 @@ static int mwifiex_set_rekey_data(struct wiphy *wiphy, struct net_device *dev, > if (!ISSUPP_FIRMWARE_SUPPLICANT(priv->adapter->fw_cap_info)) > return -EOPNOTSUPP; > > + if (priv->adapter->host_mlme) > + return 0; this is a fixup of the previous patch, you should not introduce an issue and fix it in the following patch. Please make it correct in the first place fixing up that patch. > + > return mwifiex_send_cmd(priv, HostCmd_CMD_GTK_REKEY_OFFLOAD_CFG, > HostCmd_ACT_GEN_SET, 0, data, true); > } > diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c > index d99127dc466e..3bebb6c37604 100644 > --- a/drivers/net/wireless/marvell/mwifiex/main.c > +++ b/drivers/net/wireless/marvell/mwifiex/main.c > @@ -802,6 +802,10 @@ mwifiex_bypass_tx_queue(struct mwifiex_private *priv, > "bypass txqueue; eth type %#x, mgmt %d\n", > ntohs(eth_hdr->h_proto), > mwifiex_is_skb_mgmt_frame(skb)); > + if (ntohs(eth_hdr->h_proto) == ETH_P_PAE) > + mwifiex_dbg(priv->adapter, MSG, > + "key: send EAPOL to %pM\n", > + eth_hdr->h_dest); this is just debug code, at a first glance not sure i > diff --git a/drivers/net/wireless/marvell/mwifiex/util.c b/drivers/net/wireless/marvell/mwifiex/util.c > index 23675c1cecae..ff1b2f162c30 100644 > --- a/drivers/net/wireless/marvell/mwifiex/util.c > +++ b/drivers/net/wireless/marvell/mwifiex/util.c > @@ -482,8 +482,15 @@ mwifiex_process_mgmt_packet(struct mwifiex_private *priv, > return 0; > > if (ieee80211_is_deauth(ieee_hdr->frame_control)) { > + mwifiex_dbg(priv->adapter, MSG, > + "auth: receive deauth from %pM\n", > + ieee_hdr->addr3); ditto > priv->auth_flag = 0; > priv->auth_alg = 0xFFFF; > + } else { > + mwifiex_dbg(priv->adapter, MSG, > + "assoc: receive disasso from %pM\n", > + ieee_hdr->addr3); ditto