blob: 915997fcf2bf0b4e28b03faeee10867e545c00c7 [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From c8d3c48f01b0007f7eeb132fb8bc0d2c0cb85ed7 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
developer05f3b2b2024-08-19 19:17:34 +08004Subject: [PATCH 08/13] 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