Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2884526pxj; Sun, 23 May 2021 14:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrEzc95P9wiO8s0oxUnVboK3/pJABPHSBHD/AG0NLbg9mbw0MHR18kMT7TJZvmItnPQw3B X-Received: by 2002:a17:906:843:: with SMTP id f3mr8435618ejd.84.1621804860950; Sun, 23 May 2021 14:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621804860; cv=none; d=google.com; s=arc-20160816; b=z98G9AzoUL4ohomF2rSQipvpqkvNPqck96doY764u1mtj+z3L6ZQ1A1nP84UaxIOZd lP3OVNyU9PP4lVfgDkZ0bDCdlnlIxBtBUWCBSC31IWMb5R+QbSdVVj6HsB+K4mMAi7CA xREQkET4ea+G6AMs7R6q/wE6pIXp0/AXbRpw3WtGLajqC3t5kkqmPhjtc6RwCKYgbzIX s7HY+qyGIngrzkOzRcN3HZoC8SP9A70iKDh/VOMGGeme67rVSOa3Iv3z5U+RqNRnS6A3 PjEipUqLdc8UzhZQekaL2NlZaP8PRleVOLqVHyCobj7f0BCEPS3c9J5vvHuap4juMSoI H8/g== 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:dkim-signature; bh=m9tQsBK8MhtjigLQnalSzwmsWXS7iUEohEYDcISuPe8=; b=Mqk5DQsoJyNF3DhNanmmkEGPSwQeCOsjqEXuynnpgd/P84dJQjiPRVX+SzZUySi7kT f6H/wjQSkxiLwn0S2WJ32An4uKEtIlekPMQv++5T9C/92M1uwIKsDP4eOoVrlSLqNWhB e1BBOukHq2XtcU2x4GLLV0npAJWy9jP5inOvhix/6xNbfqO3cnZo2b6yQJR8tl5UMN4K Mr3bSo9wsyII8J8XOTkbBHKePDm0L3w3r1OaQZ2lZB+jo9DuaTCE7LL0qdKkYSfnS6FF lRaelueXMyEpLaQMzQjiwmPKp6+lukC7xXjfl/grrWuKwBvkMIJd3sCK4y947ACZJnVn 7t2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPNBp3KS; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb5si3839198edb.276.2021.05.23.14.20.37; Sun, 23 May 2021 14:21:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPNBp3KS; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231969AbhEWVUJ (ORCPT + 99 others); Sun, 23 May 2021 17:20:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:50392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231976AbhEWVUJ (ORCPT ); Sun, 23 May 2021 17:20:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A36F261168; Sun, 23 May 2021 21:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621804722; bh=C3M5g3u/UxfJb6k1YxdamazUj6bL9RjogZwbzmkrhMY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RPNBp3KSlH00ML7RSyU/T9g8sINSOZq+IMi+11REb+gf8rifArIb0cwXJAKl2QUhI MYWHTlZ/IgNe/0Nyc1HiuCm6tly4K/um2LnFpihxbycVqUT+18OvYvS+fvxi2nQN1F 9VwcAZV3eeC3S03zdNZu4v1DLJ17zOVflQ8kDRPJrZt9Vl47vrYiobU4tdIFj4c1/x BYV76O1N79wSXUgQCZibyVkiOVsLpNxlxY3likYFT/qiHJ4bUY7fYAFf0PapFejw/E ShAJbLQmkH7xDs0IyMP3AfxZTsBEZ/uSYm2PT3wWpgQ1KO/UWZsxESF62njUwMC+0g a/040ho9bxREw== Date: Sun, 23 May 2021 23:18:37 +0200 From: Lorenzo Bianconi To: sean.wang@mediatek.com Cc: nbd@nbd.name, lorenzo.bianconi@redhat.com, Soul.Huang@mediatek.com, YN.Chen@mediatek.com, Leon.Yen@mediatek.com, Eric-SY.Chang@mediatek.com, Deren.Wu@mediatek.com, km.lin@mediatek.com, robin.chiu@mediatek.com, ch.yeh@mediatek.com, posh.sun@mediatek.com, Eric.Liang@mediatek.com, Stella.Chang@mediatek.com, jemele@google.com, yenlinlai@google.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] mt76: mt7921: fix UC entry is being overwritten Message-ID: References: <1621495354-4130-1-git-send-email-sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="a65hvaA3CeNihl8+" Content-Disposition: inline In-Reply-To: <1621495354-4130-1-git-send-email-sean.wang@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --a65hvaA3CeNihl8+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > From: Deren Wu >=20 > Fix UC entry is being overwritten by BC entry >=20 > Fixes: 36fcc8cff592 ("mt76: mt7921: introduce mt7921_mcu_sta_add routine") > Signed-off-by: Deren Wu > Signed-off-by: YN Chen > Signed-off-by: Sean Wang > --- > drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c b/drive= rs/net/wireless/mediatek/mt76/mt76_connac_mcu.c > index 73359defa176..f3decc59a6fe 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c > +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c > @@ -875,10 +875,13 @@ int mt76_connac_mcu_add_sta_cmd(struct mt76_phy *ph= y, > if (IS_ERR(skb)) > return PTR_ERR(skb); > =20 > - mt76_connac_mcu_sta_basic_tlv(skb, info->vif, info->sta, info->enable); > - if (info->enable && info->sta) > - mt76_connac_mcu_sta_tlv(phy, skb, info->sta, info->vif, > - info->rcpi); > + if (info->sta) { > + mt76_connac_mcu_sta_basic_tlv(skb, info->vif, info->sta, > + info->enable); > + if (info->enable) > + mt76_connac_mcu_sta_tlv(phy, skb, info->sta, > + info->vif, info->rcpi); > + } with this patch we are changing the mt7663 behaviour since we run mt76_connac_mcu_add_sta_cmd() in mt7615_remove_interface() with enable =3D false and sta =3D NULL. Can you please confirm you are not introducing any regression in mt7663? Regards, Lorenzo > =20 > sta_wtbl =3D mt76_connac_mcu_add_tlv(skb, STA_REC_WTBL, > sizeof(struct tlv)); > --=20 > 2.25.1 >=20 --a65hvaA3CeNihl8+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYKrGngAKCRA6cBh0uS2t rGmTAP0Q7j+zTudPGyKeq5cEHlichR+GkkNv1O1Rtz51VTroEwD9Ex/lnIyGNEhZ ELQ0A3F97+318Pvo9Kjefy4zj/eJrgw= =tC3Q -----END PGP SIGNATURE----- --a65hvaA3CeNihl8+--