aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig/regdomain.h
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2009-02-07 01:12:51 +0000
committerSam Leffler <sam@FreeBSD.org>2009-02-07 01:12:51 +0000
commit47ee60ebbe41adc513ef7e00d6ae48246a394640 (patch)
tree4698028debb79dbf45c2a60ff20ed46a427e954a /sbin/ifconfig/regdomain.h
parent1447dcd43515114aaedcac570bd4189ed713d85e (diff)
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
Notes
Notes: svn path=/head/; revision=188258
Diffstat (limited to 'sbin/ifconfig/regdomain.h')
-rw-r--r--sbin/ifconfig/regdomain.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/ifconfig/regdomain.h b/sbin/ifconfig/regdomain.h
index 05ddb620b172..cfc2be02f1fb 100644
--- a/sbin/ifconfig/regdomain.h
+++ b/sbin/ifconfig/regdomain.h
@@ -45,6 +45,13 @@ struct freqband {
LIST_ENTRY(freqband) next;
};
+/* private flags, don't pass to os */
+#define REQ_ECM 0x1 /* enable if ECM set */
+#define REQ_INDOOR 0x2 /* enable only for indoor operation */
+#define REQ_OUTDOOR 0x4 /* enable only for outdoor operation */
+
+#define REQ_FLAGS (REQ_ECM|REQ_INDOOR|REQ_OUTDOOR)
+
struct netband {
const struct freqband *band; /* channel list description */
uint8_t maxPower; /* regulatory cap on tx power (dBm) */