public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iw: survey: add BSS receive time to survey
@ 2026-01-18 12:00 Aleksander Jan Bajkowski
  0 siblings, 0 replies; only message in thread
From: Aleksander Jan Bajkowski @ 2026-01-18 12:00 UTC (permalink / raw)
  To: johannes.berg, linux-wireless, linux-kernel
  Cc: Aleksander Jan Bajkowski, Felix Fietkau

Print channel BSS receive time in survey dump. This patch comes
from OpenWRT. It's been in use for 7 years.

Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
 survey.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/survey.c b/survey.c
index 7f5385e..53cec9d 100644
--- a/survey.c
+++ b/survey.c
@@ -60,6 +60,9 @@ static int print_survey_handler(struct nl_msg *msg, void *arg)
 	if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX])
 		printf("\tchannel receive time:\t\t%llu ms\n",
 			(unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX]));
+	if (sinfo[NL80211_SURVEY_INFO_TIME_BSS_RX])
+		printf("\tchannel BSS receive time:\t%llu ms\n",
+			(unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_TIME_BSS_RX]));
 	if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX])
 		printf("\tchannel transmit time:\t\t%llu ms\n",
 			(unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX]));
-- 
2.47.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-18 12:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-18 12:00 [PATCH] iw: survey: add BSS receive time to survey Aleksander Jan Bajkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox