diff options
author | adrian <adrian@FreeBSD.org> | 2015-01-06 18:25:10 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2015-01-06 18:25:10 +0000 |
commit | de9e60f9e9aeb0f092d21264097820f0ce2ee421 (patch) | |
tree | 6fbd476623181f1a9fad93932b1dc3427ddde245 /sys/net80211/ieee80211_scan.c | |
parent | 89bede2eff3c3f719c21c7a660788dc517c50a27 (diff) | |
download | FreeBSD-src-de9e60f9e9aeb0f092d21264097820f0ce2ee421.zip FreeBSD-src-de9e60f9e9aeb0f092d21264097820f0ce2ee421.tar.gz |
Global-ify channel_type() - this fixes non-debug net80211 builds.
Diffstat (limited to 'sys/net80211/ieee80211_scan.c')
-rw-r--r-- | sys/net80211/ieee80211_scan.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/sys/net80211/ieee80211_scan.c b/sys/net80211/ieee80211_scan.c index 0f23722..f42ddc0 100644 --- a/sys/net80211/ieee80211_scan.c +++ b/sys/net80211/ieee80211_scan.c @@ -260,29 +260,6 @@ ieee80211_scan_update_locked(struct ieee80211vap *vap, } } -/* - * XXX TODO: should be a global method! - */ -static char -channel_type(const struct ieee80211_channel *c) -{ - if (IEEE80211_IS_CHAN_ST(c)) - return 'S'; - if (IEEE80211_IS_CHAN_108A(c)) - return 'T'; - if (IEEE80211_IS_CHAN_108G(c)) - return 'G'; - if (IEEE80211_IS_CHAN_HT(c)) - return 'n'; - if (IEEE80211_IS_CHAN_A(c)) - return 'a'; - if (IEEE80211_IS_CHAN_ANYG(c)) - return 'g'; - if (IEEE80211_IS_CHAN_B(c)) - return 'b'; - return 'f'; -} - void ieee80211_scan_dump_channels(const struct ieee80211_scan_state *ss) { @@ -295,7 +272,7 @@ ieee80211_scan_dump_channels(const struct ieee80211_scan_state *ss) const struct ieee80211_channel *c = ss->ss_chans[i]; printf("%s%u%c", sep, ieee80211_chan2ieee(ic, c), - channel_type(c)); + ieee80211_channel_type_char(c)); sep = ", "; } } |