summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/regdomain.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-07 01:12:51 +0000
committersam <sam@FreeBSD.org>2009-02-07 01:12:51 +0000
commitc62011ba00341d5a1e3cc6a902d286bf8401940b (patch)
tree4698028debb79dbf45c2a60ff20ed46a427e954a /sbin/ifconfig/regdomain.c
parent62ae6534058dd97c0a502011b65ee5ef0611bc85 (diff)
downloadFreeBSD-src-c62011ba00341d5a1e3cc6a902d286bf8401940b.zip
FreeBSD-src-c62011ba00341d5a1e3cc6a902d286bf8401940b.tar.gz
Regulatory fixups:
o add missing channel flags for ECM, indoor, and outdoor constraints o use HT capabilities to short-circuit HT20/HT40 channel construction o rewrite 1/2 and 1/4 width channel handling yet again; previously we assumed there was a full-width version of the channel in the calibration table but that's not always true (e.g. for the Public Safety Band), now we first check the calibration table for the exact channel we want then fall back to the heuristics we used before o fix HT channel construction; wasn't adjusting band edges for HT40 channel bandwidth requirements
Diffstat (limited to 'sbin/ifconfig/regdomain.c')
-rw-r--r--sbin/ifconfig/regdomain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/ifconfig/regdomain.c b/sbin/ifconfig/regdomain.c
index e5d1734..a06ba55 100644
--- a/sbin/ifconfig/regdomain.c
+++ b/sbin/ifconfig/regdomain.c
@@ -208,6 +208,9 @@ decode_flag(struct mystate *mt, const char *p, int len)
FLAG(IEEE80211_CHAN_108A),
FLAG(IEEE80211_CHAN_108G),
#undef FLAG
+ { "ECM", 3, REQ_ECM },
+ { "INDOOR", 6, REQ_INDOOR },
+ { "OUTDOOR", 7, REQ_OUTDOOR },
};
int i;
OpenPOWER on IntegriCloud