Skip to main content

Frequency and Power

Fastest way​

iw <wlan1> set txpower 30
iwconfig <wlan1> txpower 30
bccmd psget 0x0017

Old way​

Increasing​

Get the TX power

iw dev
iw list (theorical max power)
iw reg get (country rules)

The chipset should be linked to GB and the power sould be 20dBm.

cd /opt/
git clone git://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git
cd wireless-regdb/
mkdir backup

Edit db.txt by the following file which has been modified to set the global (country 00) and the GB country power to 30dBm.

Attachment
make
mv /lib/crda/regulatory.bin /opt/wireless-regdb/backup
cp regulatory.bin /lib/crda/regulatory.bin
cp $USER.key.pub.pem /lib/crda/pubkeys
reboot

From this point the country rules should be changed.

ip link set wlan1 down
iw dev wlan1 set txpower fixed 30mBm
ip link set wlan1 up
iw dev

Cleaning​

Set the TX-Power to the original value (20mBm).

cp /opt/wireless-regdb/backup/regulatory.bin /lib/crda/regulatory.bin
rm /lib/crda/pubkeys/$USER.key.pub.pem
reboot
ip link set wlan1 down
iw dev wlan1 set txpower fixed 20mBm
ip link set wlan1 up
iw dev

Fast change after first time​

cd /opt/wireless-regdb/
cp regulatory.bin /lib/crda/regulatory.bin
cp $USER.key.pub.pem /lib/crda/pubkeys
reboot
ip link set wlan1 down
iw dev wlan1 set txpower fixed 30mBm
ip link set wlan1 up
iw dev