Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2640668pxb; Mon, 17 Jan 2022 02:41:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJx27KN6HYvgxQYQxIXV8uCopJKwwt27JGrYA2mX2dQtBTm4laTwLcllqM0inLbyqqfeRW7S X-Received: by 2002:a63:a741:: with SMTP id w1mr18759773pgo.620.1642416067855; Mon, 17 Jan 2022 02:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642416067; cv=none; d=google.com; s=arc-20160816; b=x4E3miX4rTiDS+u3eqFRGfPZGDr75MkwIT+BPLi6sR2HWcAlDvyigN/hKfBcW/j1JB +RyNPOz4qVwKFdGjxRAeGlOeCiR/ge8awmn/N1qUb+Z5oinFjRboJgJKQz1jYx1NHbjf v/vnoTLwPjzMkdYHSMGMstAmVg9CYLwNwX5v2CfTRnDySFHkAgpREhzQq3c3Eblrl+VW MZ+fE2zCDaKVUcfGHyW9hUu/k0gBsAKagF4h/4OsysZ3EKhX6bXq9IKrMLIZL7h0rc3k lPHcnwsUsB3mbOdzCKt5VSbR2vW2RpH+/a1/W6JDr4yNQIm0CGT6Aim4mdtFITgtg0JX EHDA== 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=FO5tkZmy22NkbKU2dul0FG3+gD/sjSDxEBiaRQ5ArCU=; b=lJiWTNwECsjUmgohLtlUnHfjWPh2iFlzvs8haMMkEinBtMthtr01o8s7y+oTWmH/S2 myei25edvUtKCjN2cUqT8BigJyUfuWQeGSbZq+6CClfa+u2lV+3CfqvfRrGQk0ipIaTB /96veM0k8ae4TiRFnXXTRtuTwoVgcvXImedND1jyLyX1q1/tpabdlht/g/oUI5SGN5H6 qd7kVV6td6f5c/wHK/Vkri2A7uirV7KA8uZqIXAvum1+v/HRqK8KotPJDmEWNHp6mYm3 FeNWPdKWiiZagA+Ml5eL/38dz7aCmOw1ZKa3GqMI1rxZSwUEiLUsk9pvDe5mW/8N1lKY 7a3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IlQKKkH6; 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 u1si18181399ple.224.2022.01.17.02.40.53; Mon, 17 Jan 2022 02:41:07 -0800 (PST) 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=IlQKKkH6; 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 S233702AbiAPU6u (ORCPT + 70 others); Sun, 16 Jan 2022 15:58:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiAPU6t (ORCPT ); Sun, 16 Jan 2022 15:58:49 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 598B1C061574 for ; Sun, 16 Jan 2022 12:58:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EE658B80D9C for ; Sun, 16 Jan 2022 20:58:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6B09C36AE3; Sun, 16 Jan 2022 20:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642366726; bh=b8dQhnGnvWLP7U/MmPTUM1aIKqvPsaHrXfIFNfa0hoA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IlQKKkH6NjjUnTRWVWt7bTWutKIY48SQgfDgjTe7YItrIFYoWeajiGsVPSXtO2sm6 LJhAwGW8rdPiuhZCs+2DgppgD+D4/oSQVbIgiQ9zc8hLOOFKm0iKxH3IJF/MsLdg9t kxe5nDJyJqVhTvpZITuHISAYNECfkr6H9JSFj4CX9OxdkFce4h9wN/3EkiaDHNc2Kh hCoOPaN5p2fS1/aZzyVMebzMDpyHqYPkPt7wR5Q49qwrnMtQ+YbFYuCMG2mklcBnCp 0vkVvKhICyjo26gzsbMvx54wOO7K2i+GNaSvOKOapRB5u4U0doZY4rAFv94Sl632bt PsCQ88oK+ssmw== Date: Sun, 16 Jan 2022 21:58:42 +0100 From: Lorenzo Bianconi To: Ryder Lee Cc: nbd@nbd.name, lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, sean.wang@mediatek.com Subject: Re: [PATCH 4/5] mt76: connac: move he radiotap parsing in connac module Message-ID: References: <5fdb8db1f02ffdacd554b7db531cf7719399cbdd.camel@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="B+lTE28PY6x2jOAV" Content-Disposition: inline In-Reply-To: <5fdb8db1f02ffdacd554b7db531cf7719399cbdd.camel@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --B+lTE28PY6x2jOAV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Sun, 2022-01-16 at 13:43 +0100, Lorenzo Bianconi wrote: > > Move HE radiotap parsing code in mt76-connac module since it is > > shared > > between mt7921 and mt7915 drivers. > >=20 > > Signed-off-by: Lorenzo Bianconi > > --- > > .../net/wireless/mediatek/mt76/mt76_connac.h | 2 + > > .../wireless/mediatek/mt76/mt76_connac_mac.c | 168 ++++++++++++++++ > > .../wireless/mediatek/mt76/mt76_connac_mac.h | 4 + > > .../net/wireless/mediatek/mt76/mt7915/mac.c | 175 +--------------- > > - >=20 > [...] >=20 > > +mt76_connac_mac_decode_he_mu_radiotap(struct sk_buff *skb, __le32 > > *rxv) > > +{ > > + struct mt76_rx_status *status =3D (struct mt76_rx_status *)skb- > > >cb; > > + static const struct ieee80211_radiotap_he_mu mu_known =3D { > > + .flags1 =3D HE_BITS(MU_FLAGS1_SIG_B_MCS_KNOWN) | > > + HE_BITS(MU_FLAGS1_SIG_B_DCM_KNOWN) | > > + HE_BITS(MU_FLAGS1_CH1_RU_KNOWN) | > > + HE_BITS(MU_FLAGS1_SIG_B_SYMS_USERS_KNOWN) | > > + HE_BITS(MU_FLAGS1_SIG_B_COMP_KNOWN), > > + .flags2 =3D HE_BITS(MU_FLAGS2_BW_FROM_SIG_A_BW_KNOWN) | > > + HE_BITS(MU_FLAGS2_PUNC_FROM_SIG_A_BW_KNOWN), >=20 > I think hardware doesn't report MU_FLAGS2_PUNC_FROM_SIG_A_BW_KNOWN and > MU_FLAGS1_SIG_B_COMP_KNOWN. Should align mt7915 here. ack, thx for point this out. @Sean: can you please confirm it? Regards, Lorenzo >=20 > Ryder >=20 --B+lTE28PY6x2jOAV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYeSHAgAKCRA6cBh0uS2t rLzhAP9+kYBTz08W5sEWU2zfbv9MjHgHeV3ngm0b3I+cPrgbbAEA+UGECTGsIR78 o7vsXZTIAf0NbdCjvm8Iwi3nWRT0Lgg= =Y8ZX -----END PGP SIGNATURE----- --B+lTE28PY6x2jOAV--