I've tried using a script which takes down wlan0 before doing the operation to change the txpower.
Code:
#!/bin/bash
echo " taking down wlan0"
ifconfig wlan0 down
sleep 2
echo "setting Region to Bolivia"
iw reg set BO
sleep 2
echo "setting TxPower to 30"
iw dev wlan0 set txpower 30
sleep 2
echo "starting wlan0"
ifconfig wlan0 up ion
echo "pulling wlan0 interface up"
iwconfig
sleep 2
echo "Goodbye"
After "setting TxPower to 30" I get
Code:
Invalid parameter: 30
I get the same result if I change the value to 20 or even something below 15. Setting the region to Canada gives same results. If I add the 'fixed' parameter, I get 'Operation not supported' again. iwconfig shows that the TxPower is still set to 15. Something is preventing changes...