iw: update to 0.9.21, add support for showing the in-use flag for survey data
[openwrt.git] / package / iw / patches / 100-survey_freq_in_use.patch
1 --- a/survey.c
2 +++ b/survey.c
3 @@ -46,6 +46,8 @@ static int print_survey_handler(struct n
4         if (sinfo[NL80211_SURVEY_INFO_FREQUENCY])
5                 printf("\tfrequency:\t%u MHz\n",
6                         nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]));
7 +       if (sinfo[NL80211_SURVEY_INFO_IN_USE])
8 +               printf("\tin use\n");
9         if (sinfo[NL80211_SURVEY_INFO_NOISE])
10                 printf("\tnoise:\t\t%d dBm\n",
11                         (int8_t)nla_get_u8(sinfo[NL80211_SURVEY_INFO_NOISE]));