Submission: lib80211 (regulatory domain code) and wlanreg tool
Adrian Chadd
adrian.chadd at gmail.com
Sun Apr 10 23:32:52 UTC 2011
I'd appreciate some feedback on the following patch.
http://people.freebsd.org/~adrian/ath/lib80211-1.diff
It implements the following:
* extract out the regulatory database code from ifconfig, call it "lib80211"
;
* add a new includedir, /usr/include/lib80211/ ;
* add a tool, wlanreg, which prints out the regulatory information for a
given SKU/country.
Example output:
[adrian at pcbsd-3114]/data/freebsd/mips/head/src/tools/tools/net80211/wlanreg(268)%
./wlanreg sku SR9
SKU: SR9
Freq range Width Separation Power DFS Power Antenna Gain
Flags
912 - 917 MHz 20 MHz 5 MHz 30 dBm 30 dBm 0.00 dBm
2ghz dyn gsm
907 - 922 MHz 10 MHz 5 MHz 30 dBm 30 dBm 0.00 dBm
2ghz dyn gsm half
907 - 922 MHz 5 MHz 5 MHz 30 dBm 30 dBm 0.00 dBm
2ghz dyn gsm quarter
I'll patch ifconfig to use the lib80211 library/includes in a follow-up
commit, so code isn't duplicated.
Thanks!
Adrian
More information about the freebsd-wireless
mailing list