3 @@ -44,12 +44,27 @@ static int print_survey_handler(struct n
6 if (sinfo[NL80211_SURVEY_INFO_FREQUENCY])
7 - printf("\tfrequency:\t%u MHz%s\n",
8 + printf("\tfrequency:\t\t\t%u MHz%s\n",
9 nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]),
10 sinfo[NL80211_SURVEY_INFO_IN_USE] ? " [in use]" : "");
11 if (sinfo[NL80211_SURVEY_INFO_NOISE])
12 - printf("\tnoise:\t\t%d dBm\n",
13 + printf("\tnoise:\t\t\t\t%d dBm\n",
14 (int8_t)nla_get_u8(sinfo[NL80211_SURVEY_INFO_NOISE]));
15 + if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME])
16 + printf("\tchannel active time:\t\t%lld ms\n",
17 + (int64_t)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME]));
18 + if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY])
19 + printf("\tchannel busy time:\t\t%lld ms\n",
20 + (int64_t)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_BUSY]));
21 + if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY])
22 + printf("\textension channel busy time:\t%lld ms\n",
23 + (int64_t)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_EXT_BUSY]));
24 + if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX])
25 + printf("\tchannel receive time:\t\t%lld ms\n",
26 + (int64_t)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_RX]));
27 + if (sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX])
28 + printf("\tchannel transmit time:\t\t%lld ms\n",
29 + (int64_t)nla_get_u64(sinfo[NL80211_SURVEY_INFO_CHANNEL_TIME_TX]));