Author Topic: Alfa AWUS036NHA - 2W (33 dBm) Configuration  (Read 10386 times)

nix8

  • Newbie
  • *
  • Posts: 5
    • View Profile
on: October 29, 2014, 08:51:18 AM
I thought I'd share this for anyone else with using an Alfa AWUS036NHA. This is by far my all-around favorite Alfa adapter, and one of the greatest features is the ability to set transmission power to 33 dBm, which is roughly ~2,000mW.

By default, a maximum of 30dBm can be achieved by registering the device to a supporting country, such as 'iw reg set BO'. Attempting to set the tx-power above 30dBm will fail unless the wireless regulatory binary is modified and rebuilt.

Note that this will only work with wireless adapters that support a tx-power of 33dBm (2,000 mW).

Let's get to it.

cd /tmp

Download CRDA & Wireless Regulation DB
wget http://wireless.kernel.org/download/crda/crda-1.1.3.tar.bz2
wget https://www.kernel.org/pub/software/network/wireless-regdb/wireless-regdb-2014.10.07.tar.gz


Extract Files
tar jxvf crda-1.1.3.tar.bz2
tar zxvf wireless-regdb-2014.10.07.tar.gz


Modify the regulatory database (db.txt)
cd wireless-regdb-2014.10.07
nano db.txt


You will see a list of country codes followed by wireless frequency ranges and the maximum tx-power. In the following example, GB is the country, and 20 is equal to 20dBm. You can use the command 'iw reg get' to find which country code your wireless adapter is set to.

root@0x00:/# iw reg get
country GB:


Now modify the country your wireless adapter is coded to like so:

Original:
country GB: DFS-ETSI
        (2402 - 2482 @ 40), (20)
        (5170 - 5250 @ 80), (20)
        (5250 - 5330 @ 80), (20), DFS
        (5490 - 5710 @ 80), (27), DFS
        # 60 gHz band channels 1-4, ref: Etsi En 302 567
        (57240 - 65880 @ 2160), (40), NO-OUTDOOR


Modified:      
country GB: DFS-ETSI
        (2402 - 2482 @ 40), (33)
        (5170 - 5250 @ 80), (33)
        (5250 - 5330 @ 80), (33), DFS
        (5490 - 5710 @ 80), (33), DFS
        # 60 gHz band channels 1-4, ref: Etsi En 302 567
        (57240 - 65880 @ 2160), (40), NO-OUTDOOR


I also modified the global configuration (country code 00) along with GB to 33dBm. Save the file after modifications.

Build the regulatory database:
make

Make /usr/lib/crda and copy files over
mkdir /usr/lib/crda
cp -avr /lib/crda /usr/lib/crda
cp regulatory.bin /usr/lib/crda/regulatory.bin


Copy keys over to the /crda-1.3.3/pubkeys directory
cp *.pem ../crda-1.1.3/pubkeys/
cd ../crda-1.1.3


Make && make install
make
make install


Reboot
reboot

And the result..
« Last Edit: October 29, 2014, 01:35:37 PM by ZEROF »



drego85

  • Global Moderator
  • Full Member
  • *****
  • Posts: 128
    • View Profile
    • Andrea Draghetti
Reply #1 on: October 29, 2014, 10:23:03 AM
Thanks nix8! :D

Andrea Draghetti
Personal Blog


ZEROF

  • Hero Member
  • *****
  • Posts: 1247
    • View Profile
    • Pen Tester
Reply #2 on: October 29, 2014, 01:36:13 PM
Nice one, i just edit your post to resize photo ;).


Don't ask, read : http://wiki.backbox.org
or just run sudo rm -rf /*


FIOM

  • Newbie
  • *
  • Posts: 5
    • View Profile
Reply #3 on: November 05, 2014, 12:16:37 PM
hi :)
tnx for share !!! in my bbox4x32 worked previous install:
apt-get install libnl-dev
apt-get install python-m2crypto
##apt-get install python-dev ####optional