Date: Mon, 11 Apr 2011 07:32:51 +0800 From: Adrian Chadd <adrian.chadd@gmail.com> To: freebsd-wireless@freebsd.org Subject: Submission: lib80211 (regulatory domain code) and wlanreg tool Message-ID: <BANLkTikvj4E9NP2x2grrM61gEhSJ0mB0CA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikvj4E9NP2x2grrM61gEhSJ0mB0CA>