PERFORCE change 156423 for review
Weongyo Jeong
weongyo at FreeBSD.org
Tue Jan 20 03:05:06 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=156423
Change 156423 by weongyo at weongyo_ws on 2009/01/20 11:04:42
add knobs to set or read `contry code' and `regdomain'.
Affected files ...
.. //depot/projects/vap/sys/dev/usb/if_uath.c#7 edit
Differences ...
==== //depot/projects/vap/sys/dev/usb/if_uath.c#7 (text+ko) ====
@@ -112,9 +112,18 @@
#include <dev/usb/if_uathreg.h>
#include <dev/usb/if_uathvar.h>
+SYSCTL_NODE(_hw_usb, OID_AUTO, uath, CTLFLAG_RW, 0, "USB Atheros");
+
+static int uath_countrycode = CTRY_DEFAULT; /* country code */
+SYSCTL_INT(_hw_usb_uath, OID_AUTO, countrycode, CTLFLAG_RW, &uath_countrycode,
+ 0, "country code");
+TUNABLE_INT("hw.usb.uath.countrycode", &uath_countrycode);
+static int uath_regdomain = 0; /* regulatory domain */
+SYSCTL_INT(_hw_usb_uath, OID_AUTO, regdomain, CTLFLAG_RD, &uath_regdomain,
+ 0, "regulatory domain");
+
#ifdef UATH_DEBUG
int uath_debug = 0;
-SYSCTL_NODE(_hw_usb, OID_AUTO, uath, CTLFLAG_RW, 0, "USB Atheros");
SYSCTL_INT(_hw_usb_uath, OID_AUTO, debug, CTLFLAG_RW, &uath_debug, 0,
"uath debug level");
TUNABLE_INT("hw.usb.uath.debug", &uath_debug);
@@ -415,6 +424,9 @@
IEEE80211_C_SHSLOT | /* short slot time supported */
IEEE80211_C_WPA; /* 802.11i */
+ /* put a regulatory domain to reveal informations. */
+ uath_regdomain = sc->sc_devcap.regDomain;
+
bands = 0;
setbit(&bands, IEEE80211_MODE_11B);
setbit(&bands, IEEE80211_MODE_11G);
More information about the p4-projects
mailing list