gemini: enable GPIO sysfs interface
[openwrt.git] / package / iw / patches / 100-survey_freq_in_use.patch
1 --- a/survey.c
2 +++ b/survey.c
3 @@ -44,8 +44,9 @@ static int print_survey_handler(struct n
4 }
5
6 if (sinfo[NL80211_SURVEY_INFO_FREQUENCY])
7 - printf("\tfrequency:\t%u MHz\n",
8 - nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]));
9 + printf("\tfrequency:\t%u MHz%s\n",
10 + nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]),
11 + sinfo[NL80211_SURVEY_INFO_IN_USE] ? " [in use]" : "");
12 if (sinfo[NL80211_SURVEY_INFO_NOISE])
13 printf("\tnoise:\t\t%d dBm\n",
14 (int8_t)nla_get_u8(sinfo[NL80211_SURVEY_INFO_NOISE]));
This page took 0.04806 seconds and 5 git commands to generate.