After countless hours, days, and months scouring the interwebz, so many failed attempts to get the maximum performance out of my wireless adapter. I finally came across a old thread with the most in dept details on how to successfully manipulate as the title states ALFA's AWUS036NHA (Atheros AR9271) Tx power limit to a full 30 dbm. This happens to be a locked down version I purchased from ( http://www.data-alliance.net/servlet...-1000mW/Detail ). Before i get into this very easy quick and strait forward procedure I would like to point out that this is for education purposes only I am not encouraging you to break any laws, you should consult your country's transmit signal ordnance regulations. I take no credit on this guide I wanna give mad props to the guy who wrote this particular guide, their where only like 2 other guides they where very confusing this guide is full. I Took the liberty of copy and pasting basically the whole guide and highlighting key parts note you can pretty much copy and paste these commands into your terminal(s).



A. Install needed packages:

apt-get install python-m2crypto libgcrypt11 libgcrypt11-dev libnl-dev

B. We will now download and extract needed code in a new directory:

open a terminal

1.type cd

2.type mkdir wifichanges

3.type cd wifichanges

4.type wget http://wireless.kernel.org/download/...-1.1.3.tar.bz2 (latest as of 8/14/13)

5.type tar xvjf crda-1.1.3.tar.bz2

6.type wget https://www.kernel.org/pub/software/....02.13.tar.bz2

7.type tar xvjf wireless-regdb-2013.02.13.tar.bz2
8. close terminal

C. Okay now we will edit the db.txt file in the folder wireless-regdb-2013.02.13.tar.bz2 this text file happens to be the file that sets the regional settings

1. Open a terminal
2.type cd '/root/wifichanges/wireless-regdb-2013.02.13'
NOTE
that my user name is root and will differ from yours

3.type ~/wifichanges/wireless-regdb-2013.02.13#leafpad '/root/wifichanges/wireless-regdb-2013.02.13/db.txt'
NOTE
okay basically in at this stage you should see ~/wifichanges/wireless-regdb-2013.02.13#l highlighted in blue after you have
cd the folder so what you should only be typing is leafpad '/root/wifichanges/wireless-regdb-2013.02.13/db.txt' remeber to leave a space after you type the word leafpad this will open up the text file basically what you want to do is copy country BO settings which is

(2402 - 2482 @ 40), (N/A, 30)
(5735 - 5835 @ 40), (N/A, 30)

after you copy that by obviously right clicking and highlighting you will go to the very first country which is Country 00 and highlight those settings and paste in that spot you will also have to do this for country GB example given.



country 00:
(2402 - 2472 @ 40), (3, 20)
# Channel 12 - 13.
(2457 - 2482 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
# Channel 14. Only JP enables this and for 802.11b only
(2474 - 2494 @ 20), (3, 20), PASSIVE-SCAN, NO-IBSS, NO-OFDM
# Channel 36 - 48
(5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
# NB: 5260 MHz - 5700 MHz requies DFS
# Channel 149 - 165
(5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
It Should end up Looking Like this
country 00:
(2402 - 2482 @ 40), (N/A, 30)
(5735 - 5835 @ 40), (N/A, 30)

country GB
(2402 - 2482 @ 40), (N/A, 30)
(5735 - 5835 @ 40), (N/A, 30)


D. Open a Terminal

1.type cd '/root/wifichanges/wireless-regdb-2013.02.13'
:~/wifichanges/wireless-regdb-2013.02.13#make what we want to do here is after the folder is cd just type make
You should now see a new regulatory.bin file in your wireless-regdb directory.
2. Close terminal

E. Open a Terminal

Note since this is my only wifi adapter i went ahead and deleted my original crda folder you dont have to do this step if you already have a crda folder but it helped when i deleted mines.

1.type cd /

2.type cd usr

3.type cd lib

4.type sudo mkdir crda
5. close terminal

F. Now we just need to copy the 2 regulatory.bin files to /usr/lib/crda
highlighting them and coping from wireless-regdb-2013.02.13 folder directly works nothing special here


1. From wireless-regdb-2013.02.13 folder Copy any .pem files you see to the crda pubkeys directory inside crda-1.1.3 folder

(Do this for each .pem) usually just 2 files just highlight them and copy from 1 folder to the other if you got lost remember that both the crda-1.1.3 folder and the wireless-regdb-2013.02.13 will both be inside the wifichanges folder located in you home root it dosn't get any easier than that


G.
1.type Open a Terminal

2.type cd '/root/wifichanges/crda-1.1.3'
~/wifichanges/crda-1.1.3#make clean Note<once the folder is cd type make clean this is very important. I was stuck before I realized to do this.

3.type make type make after you type make clean

4.type make install type make install after you type make

5. Reboot your machine

H. Now open a terminal

1.type iwconfig to check your dbm and type iw reg get to see your region setting

Thanks for reading this i tryed to make it as easy as possible heres the link to the thread i got this from i dont know if its computer ocd or just the need to overclock.net everything all the time but l0l it worked for me