Thank you misterx.
I have already tried to set the system to BO following these steps:
iw reg set BO
and checking it:
root@kali:~# iw reg get
country BO:
(2402 - 2482 @ 40), (N/A, 30)
(5735 - 5835 @ 40), (N/A, 30)
The problem is that when i try to set the tx power (or the channel) different from the standard reg setting i got an error:
root@kali:~# iwconfig wlan0 txpower 21
Error for wireless request "Set Tx Power" (8B26) :
SET failed on device wlan0 ; Invalid argument.
root@kali:~# iwconfig wlan0 channel 12
Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlan0 ; Invalid argument.
It is like the adapter doesn't accept the reg change.
In the following the outputs of several commands that may help you to understand:
root@kali:~# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Frequency:2.457 GHz Access Point: Not-Associated
Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Encryption key:off
Power Management:off
root@kali:~# dmesg
.
.
.
[ 45.509154] usb 1-1: new high-speed USB device number 2 using ehci_hcd
[ 45.750384] usb 1-1: New USB device found, idVendor=0bda, idProduct=817f
[ 45.750388] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 45.750391] usb 1-1: Product: ALFA AWUS036NHR
[ 45.750393] usb 1-1: SerialNumber: 00e04c000001
[ 47.248722] cfg80211: Calling CRDA to update world regulatory domain
[ 47.421014] cfg80211: World regulatory domain updated:
[ 47.421017] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 47.421019] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 47.421020] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 47.421021] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 47.421022] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 47.421023] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 47.624476] rtl8192cu: Chip version 0x10
[ 51.346420] rtl8192cu: MAC address: 00:c0:ca:52:c5:b3
[ 51.346424] rtl8192cu: Board Type 1
[ 51.351968] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 51.352010] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[ 51.353227] usbcore: registered new interface driver rtl8192cu
[ 51.432803] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[ 51.476054] rtlwifi: wireless switch is on
[ 52.951495] rtl8192cu driver version=v4.0.2_9000.20130911
[ 52.951497] build time: Dec 12 2013 08:35:07
[ 52.951500] Error: Driver 'rtl8192cu' is already registered, aborting...
[ 53.150758] rtl8192cu: MAC auto ON okay!
[ 54.940023] rtl8192cu: Tx queue select: 0x05
[ 58.564326] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 71.152294] VBoxGuest: VBoxGuestCommonGuestCapsAcquire: pSession(0xf3e9f610), OR(0x0), NOT(0xffffffff), flags(0x0)
[ 234.838849] cfg80211: Calling CRDA for country: BO
[ 234.844101] cfg80211: Regulatory domain changed to country: BO
[ 234.844104] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 234.844106] cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 3000 mBm)
[ 234.844107] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)