Skip to contentSkip to conversation

iw: survey: add BSS receive time to survey

PATCH New Aleksander Jan Bajkowski 1 participant 1 message Jan 18

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iw: survey: add BSS receive time to survey

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

---
 survey.c | 3 +++
 1 file changed, 3 insertions(+)
survey.c +3 -0
index 7f5385e..53cec9d 100644
@@ -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]));
Signature · 1 line
2.47.3