- printf("\tfrequency:\t%u MHz\n",
- nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]));
-+ if (sinfo[NL80211_SURVEY_INFO_IN_USE])
-+ printf("\tin use\n");
+- 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]" : "");