Thanks, Im going to need this !
Good job
To enable "non-US" channels on your wireless card under BT4 (and the new mac80211 stack):
You will need to download a few packages, and programs to enable use of the upper channels of the 802.11b/g spectrum:
download crda and the latest wireless-regdb, both of which can be found at:Code:apt-get install python-m2crypto libgcrypt11 libgcrypt11-dev
http://wireless.kernel.org/en/develo...egulatory/CRDA
Next, extract the wireless-regdb contents:
and copy the file "regulatory.bin" to /usr/lib/crda/Code:tar xvjf wireless-regdb-2008.11.17.tar.bz2 (latest file when I tried this)
Next, untar the CRDA tarball you downloaded:Code:mkdir /usr/lib/crda cp regulatory.bin /usr/lib/crda/
change dir to the resulting crda directory, compile and install:Code:tar xvjf crda-1.0.1.tar.bz2
Copy the file regulatory.rules found in the udev subdirectory under crda to /etc/udev/rules.d/85-regulatory.rulesCode:cd crda-1.0.1 make && make install
Now, you should be able to set your country code using iw:Code:cd udev cp regulatory.rules /etc/udev/rules.d/85-regulatory.rules
(where ## is the ISO Alpha2 code for your country such as DK for Denmark)Code:iw reg set ##
This should open up all the channels that are usable in your particular country.
Use iw to see what frequencies/channels are available:
Code:iw list
Thanks, Im going to need this !
Good job
Thx cybersnper!
Really needed this but there seem to be some typos in what you did here. The problems I am had are the following.
After the first typo on the tar xvzj wireless-regdb-2008.11.17.tar.bz2 – Just a typo. I make the make the dir “crdu” under /usr/lib/ … cool cool. From the untared folder I just copy the new regulatory.bin to the new /usr/lib/crda folder , np.
This is where I don't quite follow you. I now go into /usr/lib/crda and run
make && make install ? All that is in there is the regulatory.bin that I cp over into that folder. Can't find any subdirectory “udev”under crda ether.
I tried this using the same exact wireless-regdb-2008.11.17.tar.bz2 (not the newest one) that you used on BT4.
I am sure I could just go into http://linuxwireless.org/en/developers/Regulatory/CRDA and fix this in no time but maybe others might fall into some of the pitfalls that I did if they follow your tut. Don't want to be a butt wad but this is a "BT4beta HowTo's"
All the best
onryo
Let me explain officer, I am not a hacker. I am a security tester of sorts!
Thx cybr! Reads like a charm now!
Was wondering if you are having the same problems as I have. Everything works fine until I reboot. Then all falls to default. Working off a 32GB USB...yeah I can save. After a quick look it would seem that the kernel is having problems speaking to the userspace events. Or that CRDA is not called right. I am not really sure.
played a little with to see what was up etc.
# udevadm monitor --environment kernel
I can fix this by just doing the following at every reboot
# cp regulatory.rules /etc/udev/rules.d/85-regulatory.rules
# iw reg set SE
This one has me stumped. Any ideas?
Best to ya!
onryo
Let me explain officer, I am not a hacker. I am a security tester of sorts!
I haven't noticed any problem. The rules are still in the /etc/udev/rules.d folder after reboot. I'm in the U.S. so I never worried about how to get it to set to a different regulatory domain permanently. I would guess that you could put the "iw reg set SE" statement into rc.local though.
I'm assuming of course that you are using a distro build that allows changes (i.e. not a live CD/USB).
lol you are assuming rightI'm assuming of course that you are using a distro build that allows changes (i.e. not a live CD/USB).I am using a 16 GB USB that I can save on. No big deal if I quickly need to chuck it into the microwave. I am sure I did something bionicly retarded when I borked the first install. Actully I just only have to do the " iw reg set SE" part.
All the best
onryo!
Let me explain officer, I am not a hacker. I am a security tester of sorts!
I get this:
root@bt:~# iw reg set DK
nl80211 not found.
root@bt:~#
What's wrong?![]()