blob: 5b61920db63bb4b5b6dda91f33f9db56ca224514 [file] [log] [blame]
developer42c7a432024-07-12 14:39:29 +08001From a417f83cef66ca22ce0a362e4812954d15721a70 Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: Shayne Chen <shayne.chen@mediatek.com>
3Date: Mon, 25 Dec 2023 11:24:01 +0800
developer42c7a432024-07-12 14:39:29 +08004Subject: [PATCH 06/10] survey bss rx time
developer66e89bc2024-04-23 14:50:01 +08005
6---
7 survey.c | 3 +++
8 1 file changed, 3 insertions(+)
9
10diff --git a/survey.c b/survey.c
11index 7f5385e..53cec9d 100644
12--- a/survey.c
13+++ b/survey.c
14@@ -60,6 +60,9 @@ static int print_survey_handler(struct nl_msg *msg, void *arg)
15 if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX])
16 printf("\tchannel receive time:\t\t%llu ms\n",
17 (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX]));
18+ if (sinfo[NL80211_SURVEY_INFO_TIME_BSS_RX])
19+ printf("\tchannel BSS receive time:\t%llu ms\n",
20+ (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_TIME_BSS_RX]));
21 if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX])
22 printf("\tchannel transmit time:\t\t%llu ms\n",
23 (unsigned long long)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX]));
24--
developer42c7a432024-07-12 14:39:29 +0800252.18.0
developer66e89bc2024-04-23 14:50:01 +080026