Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 11:05:02 GMT
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 156423 for review
Message-ID:  <200901201105.n0KB5220056501@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=156423

Change 156423 by weongyo@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901201105.n0KB5220056501>