Survey: Mark frequency in use according to NL80211_SURVEY_INFO_IN_USE. This patch comes from OpenWRT. Original author: Felix Fietkau Cc: Felix Fietkau <nbd@xxxxxxxxxxx> Signed-off-by: Bruno Randolf <br1@xxxxxxxxxxx> --- survey.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/survey.c b/survey.c index f9f2508..83c54b3 100644 --- a/survey.c +++ b/survey.c @@ -44,8 +44,9 @@ static int print_survey_handler(struct nl_msg *msg, void *arg) } if (sinfo[NL80211_SURVEY_INFO_FREQUENCY]) - printf("\tfrequency:\t%u MHz\n", - nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY])); + printf("\tfrequency:\t%u MHz%s\n", + nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]), + sinfo[NL80211_SURVEY_INFO_IN_USE] ? " [in use]" : ""); if (sinfo[NL80211_SURVEY_INFO_NOISE]) printf("\tnoise:\t\t%d dBm\n", (int8_t)nla_get_u8(sinfo[NL80211_SURVEY_INFO_NOISE])); -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html