iw: survey: add BSS receive time to survey
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.
Cc Felix Fietkau <[email protected]>
Signed-off-by Aleksander Jan Bajkowski <[email protected]>
--- survey.c | 3 +++ 1 file changed, 3 insertions(+)
survey.c +3 -0
@@ -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