From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E5ECC83F12 for ; Tue, 29 Aug 2023 06:36:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbjH2Gf3 (ORCPT ); Tue, 29 Aug 2023 02:35:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233696AbjH2GfX (ORCPT ); Tue, 29 Aug 2023 02:35:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D01A1185 for ; Mon, 28 Aug 2023 23:35:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 53A2F63DD8 for ; Tue, 29 Aug 2023 06:35:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86DA1C433C8; Tue, 29 Aug 2023 06:35:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693290919; bh=h15yCxDP+AAVrnEMRaUoiOk0FC3Rz5ZP/Z8yABXlJPI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bJAIBH64mj/nBe/HjNBr71EtO5QfyspviHg+ZHTaBzYZvVQGOURh7AeEVB/7KUV28 vge5oQ6wdS8aB4IZlZxtog23+q0xiMQXbaw7aEMofZfK4nByJpCmwGqDRIKr1ShXze voxKHuYLaxfWe7soye6DcWaciQk1q6RzQ2KYK1kZ6idgD4amGQaMe3NflTdzwKeuc4 7+MzL0pvlh5pxlFhlwrIe56oiNIBE/M+oirBKPs++TYuZqlhOO1lcQDElAJO+lmumq Ow7m5HaVeXrnyriwwSuryDmFwyXZehHo8t8YlJSdsx3PfsFwUlxqqZMJ1aXezeczIH Umv+HHf9IvdmA== From: Kalle Valo To: Yi-Chia Hsieh Cc: Felix Fietkau , Johannes Berg , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Evelyn Tsai , Money Wang , Peter Chiu , Benjamin Lin , , Subject: Re: [PATCH 5/6] wifi: mac80211: export ieee80211_tpt_led_trig_tx/rx for driver References: <09f0cb7f314a08eddb77298411d965ad30a847bb.1692983967.git.yi-chia.hsieh@mediatek.com> <8d18b7ac7fc394c310c0f2730da9ee7e955a9860.1692983967.git.yi-chia.hsieh@mediatek.com> Date: Tue, 29 Aug 2023 09:36:28 +0300 In-Reply-To: <8d18b7ac7fc394c310c0f2730da9ee7e955a9860.1692983967.git.yi-chia.hsieh@mediatek.com> (Yi-Chia Hsieh's message of "Fri, 25 Aug 2023 10:47:08 -0700") Message-ID: <87il8ytkwj.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Yi-Chia Hsieh writes: > Whenever the H/W path is enabled and traffic is in the binding state, > mac80211 is not aware of the traffic. Consequently, the LED does not > blink for that reason. > > The ieee80211_tpt_led_trig_tx/rx functions are exported for the driver > so that we can report the tx and rx bytes from the driver when > the H/W path is being used. > > Signed-off-by: Yi-Chia Hsieh > --- > include/net/mac80211.h | 17 +++++++++++++++++ > net/mac80211/led.c | 18 ++++++++++++++++++ > net/mac80211/led.h | 18 ------------------ > net/mac80211/rx.c | 2 +- > net/mac80211/tx.c | 4 ++-- > 5 files changed, 38 insertions(+), 21 deletions(-) The mac80211 patch should be first in the patchset to get more visibility. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches