Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6074607rdb; Mon, 18 Sep 2023 03:28:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlGb4o8rHCyKV2p37z/xhDURxHh1i+Gh5Xd7UJjy0PLlm+fvl6bawFQrEURAyjOtPZS+vC X-Received: by 2002:a17:902:d2c1:b0:1bb:d586:d29a with SMTP id n1-20020a170902d2c100b001bbd586d29amr17419239plc.34.1695032937745; Mon, 18 Sep 2023 03:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695032937; cv=none; d=google.com; s=arc-20160816; b=X59y6UOf9qo8yoOcqce6+2WKzQ6bPCOZMgpXIxJDRQQYMZ5I5FPh061nEVgS1p7HQc C4QDecOrpACEGeA75jtISubvfcHbYmwyH+xnYnzCONHLKv37olTqwXhf72TD88iU+PyL iMpDPdmaP6A0scnKvIe5M13nKHECIv2kj7HgSsnzjcCZvoZ/F+r7QPibpxwC0f6nrOF2 qW5tmMithhEyAyc7VfglYjdwaCFLd3mCuGfYd+lse8CW/RpsCC8wqRj+uvQB7cGX9Xwy 1ujTmoGTmPDgucgHB4ZK8COrUChamzHO0ZzaYzHkPKVR/C4+oY5seAexDX25iiq4E329 sFyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=FlPiBPfzITX9DL6CLizuq7axBo1alK0pRSm4MYPYv3g=; fh=+PqxC9wMXsAX8aUOveipGFTHMU7KSZQp5mIVzCtXaSE=; b=l3+AQSd6g7iFryB4ncWmA1rTyo7+NmGRVkc2Z2KrYdS6SnBi+6r2Sz9qgChFOVIyz4 +apUQ6/qxBxGiowG5FKR4COIMdJvv8L5EijstxTL8er8AyUHqTpBHSElF0gJ9CTIg5y8 Hq7SgSp/cL3u89X2wRGvkTywEc4i4uuCoqY+LMdGcz4tDYeMJjKkKihOS3N/fvPsfmGL 1CkUUyDiD4Dca8Yy+SeHVU+xAECvOPY7I7DfkCghC5m1guoc/QL68/4NVhVt3XDkV7fe 2J9NeoQenxhWc4m0Th0fLqLtHYjoIgzfcysLGAoP+ekB4Io+5KzRwRiZeEMqTDdKxpa5 nhcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Pn6cVnHJ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id w29-20020a63161d000000b005649d5fc097si5251985pgl.820.2023.09.18.03.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 03:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Pn6cVnHJ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nbd.name Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 993C680309B2; Mon, 18 Sep 2023 03:15:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238024AbjIRKPP (ORCPT + 57 others); Mon, 18 Sep 2023 06:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240942AbjIRKPM (ORCPT ); Mon, 18 Sep 2023 06:15:12 -0400 Received: from nbd.name (nbd.name [46.4.11.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70EB9A6 for ; Mon, 18 Sep 2023 03:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FlPiBPfzITX9DL6CLizuq7axBo1alK0pRSm4MYPYv3g=; b=Pn6cVnHJi0SpybljT7FfkA7/09 w3of3jRwPEDPwFXs9kpiEK9KP41TzKbTTXZLZ5FmzIVKg0Fcb77dvmoQx+mYgAa+ftBo+z1ioOPMX PGscbWl6FdgVon7eXMf0lXRCXkS2Vdxlfx3kWMJd1cdu5qUvuOcsAr7ulZc3PxYzVbBI=; Received: from p54ae986d.dip0.t-ipconnect.de ([84.174.152.109] helo=nf.local) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qiBHG-003vhL-Tc; Mon, 18 Sep 2023 12:14:50 +0200 Message-ID: Date: Mon, 18 Sep 2023 12:14:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/4] wifi: mt76: mt7996: Add mcu commands for getting sta tx statistic Content-Language: en-US To: Yi-Chia Hsieh , Johannes Berg Cc: Lorenzo Bianconi , Ryder Lee , Shayne Chen , Evelyn Tsai , Money Wang , Peter Chiu , Benjamin Lin , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org References: <7554d0a64ff480f1a185f381a59799158fe8bf23.1693549298.git.yi-chia.hsieh@mediatek.com> From: Felix Fietkau Autocrypt: addr=nbd@nbd.name; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4kYMI78h1TSaxmtImEAnjFPYJYVsxrhay92jisYc7z5R/76AaELfF6RCjjGeP wdalulG+erWju710Bif7E1yjYVWeA/9Wd1lsOmx6uwwYgNqoFtcAunDaMKi9xVQW18FsUusM TdRvTZLBpoUAy+MajAL+R73TwLq3LnKpIcCwftyQXK5pEDKq57OhxJVv1Q8XkA9Dn1SBOjNB l25vJDFAT9ntp9THeDD2fv15yk4EKpWhu4H00/YX8KkhFsrtUs69+vZQwc0cRmVsaXggRmll dGthdSA8bmJkQG5iZC5uYW1lPsJgBBMRAgAgBQJGoeQnAhsjBgsJCAcDAgQVAggDBBYCAwEC HgECF4AACgkQ130UHQKnbvXsvgCgjsAIIOsY7xZ8VcSm7NABpi91yTMAniMMmH7FRenEAYMa VrwYTIThkTlQzsFNBEah5FQQCACMIep/hTzgPZ9HbCTKm9xN4bZX0JjrqjFem1Nxf3MBM5vN CYGBn8F4sGIzPmLhl4xFeq3k5irVg/YvxSDbQN6NJv8o+tP6zsMeWX2JjtV0P4aDIN1pK2/w VxcicArw0VYdv2ZCarccFBgH2a6GjswqlCqVM3gNIMI8ikzenKcso8YErGGiKYeMEZLwHaxE Y7mTPuOTrWL8uWWRL5mVjhZEVvDez6em/OYvzBwbkhImrryF29e3Po2cfY2n7EKjjr3/141K DHBBdgXlPNfDwROnA5ugjjEBjwkwBQqPpDA7AYPvpHh5vLbZnVGu5CwG7NAsrb2isRmjYoqk wu++3117AAMFB/9S0Sj7qFFQcD4laADVsabTpNNpaV4wAgVTRHKV/kC9luItzwDnUcsZUPdQ f3MueRJ3jIHU0UmRBG3uQftqbZJj3ikhnfvyLmkCNe+/hXhPu9sGvXyi2D4vszICvc1KL4RD aLSrOsROx22eZ26KqcW4ny7+va2FnvjsZgI8h4sDmaLzKczVRIiLITiMpLFEU/VoSv0m1F4B FtRgoiyjFzigWG0MsTdAN6FJzGh4mWWGIlE7o5JraNhnTd+yTUIPtw3ym6l8P+gbvfoZida0 TspgwBWLnXQvP5EDvlZnNaKa/3oBes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabwkkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCeMncXpbbWNT2AtoAYICrKyX5R3iMAoMhw cL98efvrjdstUfTCP2pfetyN In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 03:15:43 -0700 (PDT) On 01.09.23 08:30, Yi-Chia Hsieh wrote: > Per peer Tx/Rx statistic can only be obtained by querying WM when WED is > on. This patch switches to periodic event reporting in the case of WED > being enabled. > > Signed-off-by: Yi-Chia Hsieh > --- > v2: split series > --- > .../wireless/mediatek/mt76/mt76_connac_mcu.h | 15 ++++ > .../net/wireless/mediatek/mt76/mt7996/mac.c | 5 ++ > .../net/wireless/mediatek/mt76/mt7996/main.c | 15 ++++ > .../net/wireless/mediatek/mt76/mt7996/mcu.c | 68 +++++++++++++++++++ > .../net/wireless/mediatek/mt76/mt7996/mcu.h | 26 +++++++ > .../wireless/mediatek/mt76/mt7996/mt7996.h | 1 + > 6 files changed, 130 insertions(+) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.h b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.h > index 078f82858621..5aece2046a9d 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7996/mcu.h > +++ b/drivers/net/wireless/mediatek/mt76/mt7996/mcu.h > @@ -153,6 +153,32 @@ struct mt7996_mcu_mib { > __le64 data; > } __packed; > > +struct mt7996_mcu_all_sta_info_event { > + u8 rsv[4]; > + __le16 tag; > + __le16 len; > + u8 more; > + u8 rsv2; > + __le16 sta_num; > + u8 rsv3[2]; > + > + union { > + struct { > + __le16 wlan_idx; > + u8 rsv[2]; > + __le32 tx_bytes[IEEE80211_NUM_ACS]; > + __le32 rx_bytes[IEEE80211_NUM_ACS]; > + } adm_stat[]; > + > + struct { > + __le16 wlan_idx; > + u8 rsv[2]; > + __le32 tx_msdu_cnt; > + __le32 rx_msdu_cnt; > + } msdu_cnt[]; > + }; > +} __packed; With this, I'm getting compiler errors like this one: mcu.h:171:19: error: flexible array member in union - Felix