From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795984923; b=ro2jTVuIB1KJW59y5dj4tSvWKBKXEU21xf7uWe4ndMlkExoTDl0j5yiHZ+oBMPxaASzm 3LGRffw6RDb+k9MI8eH9Q3qphjJ/58GIObk2O0bkfcRq+ZZC5rc/NpbMyvf2V+V7Y74Om qqxQT0hk4CyyfPNU5AZqSjhdK4/cHaqEV1E8iaVAPyQsy6E8kGzo7fZnxgKXYCoFrgE8b oHSvXWaglVqXvGqoJIsWT4WyNO6Fz9vXTdRLnOo1EwYCD7kBVGUe7dh5gcSvAyGbFZ/kd P+YqNI4AGcYyGUfKIeyqsqfxdIFgGKZX1K0814xoyt8KvD6CcUjpwoeT8IsWCV8tqDA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795984923; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=kpoPxkfPy91SHSxQ1k87nn7jXOLCG4kuKZh/LfjAMaQ=; b=gCcwJLFOh73roDJHEfmLkrl5Ja2pQXDD1rHTc9cuozyzH1AjsqxBrGB2W4daJC0xGw5E e7nDoXB/3Op7YxMhWdS6rkYS/B6yE5SeSEg9LSZckO0TKGFh/AeUzWxWKc6y7CHsQ3fLZ SQofYKPdwTgK8GV4aitTK314l83x0Ef4R9yhJkauxw8FN3zlHvIzaZ1owvILkcHyIOSli DFcfYdcrlGkXmVo4QQTlon93VO7cFO0ZmWaMI2ptg1FklbHFVJlrKrFTsoALXQmrsncYc ndeIXpplm9yIJUs5A0ZH6el98rMpYOTn8Kw5R7jaXZOLEF4yrxss/Rh7IGRMA175p3Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M6OBsPqV; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1E02606A31C for ; Sun, 29 Nov 2026 20:42:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M6OBsPqV Received: by smtp.kernel.org (Postfix) with ESMTPSA id 061CE1F000C1; Sun, 29 Nov 2026 20:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795984923; bh=kpoPxkfPy91SHSxQ1k87nn7jXOLCG4kuKZh/LfjAMaQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=M6OBsPqVpNncdQx8iCEqEYf3htBXQlGA8QC99X6BjBW7L+mC64sAFk1lw37nwT5wy 2026B3psLhr0kp6TEU9D+VLhQe2Mx+tf9KPh58tt1oXWkV9WtfhKzfbChDwQg3iEs3 909AU4281wG425o0qF7DYRN+c5lzAiu6Z7TCJB8r70RTTSOCEDf0gMkE3Ril8flEdr B+m0kXXqs5OhabvG4goGTJYazsWduTSbmwAQp4IVz5gDfrp1jyrUi2WvqW7RNBlDcW VJe9AMjADnu2U1AvFX+V2lcW5Xeztkb52TSLeq9/7IQtsQQTJe7YoeyjJB83VtAg6s swwdqWVjKa7Pg== Date: Sun, 29 Nov 2026 21:42:01 +0100 From: Lorenzo Bianconi To: Felix Fietkau Cc: linux-wireless@vger.kernel.org Subject: Re: [PATCH mt76-next 05/20] wifi: mt76: mt7996: name the link and the error of a failed key install Message-ID: References: <20261129193131.3367661-1-nbd@nbd.name> <20261129193131.3367661-5-nbd@nbd.name> X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5B4jCUfXpqMcL+Qt" Content-Disposition: inline In-Reply-To: <20261129193131.3367661-5-nbd@nbd.name> --5B4jCUfXpqMcL+Qt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > mt7996_key_iter() installs the keys of an interface or a station on a > link that is added. If an install fails, it warns without the key, the > link or the error. mac80211 still holds the key as uploaded, so it does > not encrypt frames for that link in software. >=20 > Print the key index, the link and the error in the warning. >=20 > Signed-off-by: Felix Fietkau Reviewed-by: Lorenzo Bianconi > --- > drivers/net/wireless/mediatek/mt76/mt7996/main.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/main.c b/drivers/n= et/wireless/mediatek/mt76/mt7996/main.c > index 5b0f6f931de4..62b24f87d980 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7996/main.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7996/main.c > @@ -295,6 +295,7 @@ mt7996_key_iter(struct ieee80211_hw *hw, struct ieee8= 0211_vif *vif, > void *data) > { > struct mt7996_key_iter_data *it =3D data; > + int err; > =20 > if (sta !=3D it->sta) > return; > @@ -302,7 +303,9 @@ mt7996_key_iter(struct ieee80211_hw *hw, struct ieee8= 0211_vif *vif, > if (key->link_id >=3D 0 && key->link_id !=3D it->link_id) > return; > =20 > - WARN_ON(mt7996_set_hw_key(hw, it->cmd, vif, sta, it->link_id, key)); > + err =3D mt7996_set_hw_key(hw, it->cmd, vif, sta, it->link_id, key); > + WARN(err, "key %d not installed on link %u: %d\n", key->keyidx, > + it->link_id, err); > } > =20 > static void mt7996_vif_link_teardown(struct mt7996_phy *phy, > --=20 > 2.47.3 >=20 >=20 --5B4jCUfXpqMcL+Qt Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCawyOGQAKCRA6cBh0uS2t rD+wAP9xsLh8oeZ13aQU8vgTQKDfb0H+0vfyc7VBOk7/9JlH7gEAoQIH2KY70a9G gDjLEP9KOltlvrbMwn7jZSI+NjmPhgY= =/G5W -----END PGP SIGNATURE----- --5B4jCUfXpqMcL+Qt--