This patch enables listing DFS related flags when 'ifconfig -v wlanX

list channel' is run. The following new options are introduced:

* D: channel requires DFS
* R: channel has a radar event
* I: channel has detected inteference
* C: the CAC period has completed on a channel that requires it (ie,
  DFS + PASSIVE.)

It's relevant for developing, debugging and using the DFS and
interference options.

Approved by:	re (bz)
This commit is contained in:
Adrian Chadd 2011-07-19 15:22:35 +00:00
parent edf26ab83e
commit 2ad10b365c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224219

View File

@ -3451,10 +3451,21 @@ print_chaninfo(const struct ieee80211_channel *c, int verb)
{
char buf[14];
if (verb)
printf("Channel %3u : %u%c%c%c%c%c MHz%-14.14s",
ieee80211_mhz2ieee(c->ic_freq, c->ic_flags), c->ic_freq,
IEEE80211_IS_CHAN_PASSIVE(c) ? '*' : ' ',
IEEE80211_IS_CHAN_DFS(c) ? 'D' : ' ',
IEEE80211_IS_CHAN_RADAR(c) ? 'R' : ' ',
IEEE80211_IS_CHAN_CWINT(c) ? 'I' : ' ',
IEEE80211_IS_CHAN_CACDONE(c) ? 'C' : ' ',
get_chaninfo(c, verb, buf, sizeof(buf)));
else
printf("Channel %3u : %u%c MHz%-14.14s",
ieee80211_mhz2ieee(c->ic_freq, c->ic_flags), c->ic_freq,
IEEE80211_IS_CHAN_PASSIVE(c) ? '*' : ' ',
get_chaninfo(c, verb, buf, sizeof(buf)));
ieee80211_mhz2ieee(c->ic_freq, c->ic_flags), c->ic_freq,
IEEE80211_IS_CHAN_PASSIVE(c) ? '*' : ' ',
get_chaninfo(c, verb, buf, sizeof(buf)));
}
static int