source: branches/backfire/package/iw/patches/100-survey_freq_in_use.patch @ 23733

Last change on this file since 23733 was 23733, checked in by nbd, 6 years ago

merge mac80211, iw, hostapd from trunk to backfire

File size: 516 bytes
  • survey.c

    a b static int print_survey_handler(struct n 
    4444        } 
    4545 
    4646        if (sinfo[NL80211_SURVEY_INFO_FREQUENCY]) 
    47                 printf("\tfrequency:\t%u MHz\n", 
    48                         nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY])); 
     47                printf("\tfrequency:\t%u MHz%s\n", 
     48                        nla_get_u32(sinfo[NL80211_SURVEY_INFO_FREQUENCY]), 
     49                        sinfo[NL80211_SURVEY_INFO_IN_USE] ? " [in use]" : ""); 
    4950        if (sinfo[NL80211_SURVEY_INFO_NOISE]) 
    5051                printf("\tnoise:\t\t%d dBm\n", 
    5152                        (int8_t)nla_get_u8(sinfo[NL80211_SURVEY_INFO_NOISE])); 
Note: See TracBrowser for help on using the repository browser.