LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Howto adjust tx power of Atheros AR9285 wireless card (https://www.linuxquestions.org/questions/linux-wireless-networking-41/howto-adjust-tx-power-of-atheros-ar9285-wireless-card-4175428414/)

osubuckeyes 09-21-2012 01:03 PM

Howto adjust tx power of Atheros AR9285 wireless card
 
I have a Lenovo G575 laptop with an Atheros AR9285 wireless card. Booted as Windows 7, the card's tx power is 27 dBm; running Fedora 17 (Kernel 3.5.3-1.fc17.x86_64), it's 15 dBm. A Belkin F5D8053 USB adapter runs at 27 dBm in either Windows or Linux. Neither Windows nor Linux seems to allow me to adjust the power of the Atheros card. How can I get the Atheros card to run at 27 dBm?

camorri 09-22-2012 09:34 AM

I have that card in my netbook, so I did tried some things. The driver is ath9k for that card.
The maximum power I could set is 20dbm. I could reduce it, but not increase it over 20 dbm. I do not have windbloze, so I have no idea what the windoze driver can do. My netbook works fine anywhere I have used it, so 20 dbm on mine is fine. Any value above 20 dbm returns an error. So, my I believe that is the maximum setting for the current driver.

The command to change Tx power is ( as root ) 'iwconfig wlan0 txpower xxdbm' ( no quotes and xx is the new value ).

You might want to read through this bug for ath9k.

-->https://lists.linux-foundation.org/p...er/023416.html

Not sure if this applies to your system or not.

osubuckeyes 09-23-2012 01:33 PM

Thanks, but this does not help:

# iwconfig wlan0 txpower 20
Error for wireless request "Set Tx Power" (8B26) :
SET failed on device wlan0 ; Invalid argument.

# iwconfig wlan0 txpower 20dbm
Error for wireless request "Set Tx Power" (8B26) :
SET failed on device wlan0 ; Invalid argument.

BTW, I get the same error messages when attempting to set it to 19. But if Windows 7 runs at 27 by default, why doesn't Linux run it at 27 by default? Both Window and Linux run my USB adapter at 27.

# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=14 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

camorri 09-23-2012 06:24 PM

Quote:

BTW, I get the same error messages when attempting to set it to 19. But if Windows 7 runs at 27 by default, why doesn't Linux run it at 27 by default? Both Window and Linux run my USB adapter at 27.
Its not linux, its the driver. You could try and install the latest version of ath9k ( stable ). Here is a link for the latest stable release. -->http://linuxwireless.org/en/users/Download/stable/

This is source code. You have to compile the binary, then modprobe the driver. I would recommend if you go this route, you remove the old driver from your system.

I have no ides if fedora has the correct tools installed to compile a driver. You will have to look into that.

osubuckeyes 09-24-2012 02:43 PM

Quote:

Originally Posted by camorri (Post 4787539)
Its not linux, its the driver. You could try and install the latest version of ath9k ( stable ). Here is a link for the latest stable release. -->http://linuxwireless.org/en/users/Download/stable/

This is source code. You have to compile the binary, then modprobe the driver. I would recommend if you go this route, you remove the old driver from your system.

I have no ides if fedora has the correct tools installed to compile a driver. You will have to look into that.

I was unable to compile the binary. I compiled a few kernels about a decade ago, but I have stuck to rpm files since then, so it could be my lack of skills or it could be a lack of tools in Fedora. In any event, I have not succeeded. Given that I get 27 dbm in Windows 7, would it make any sense to try ndiswrapper?

camorri 09-24-2012 04:05 PM

Do you have problems connecting to some access points? If no, I would advise you to leave it alone.

Ndiswrapper does work with some cards, however, some features on some cards will not work. I would only use it if I had no working linux binary. Your choice.

osubuckeyes 09-25-2012 07:57 AM

Quote:

Originally Posted by camorri (Post 4788325)
Do you have problems connecting to some access points? If no, I would advise you to leave it alone.

Ndiswrapper does work with some cards, however, some features on some cards will not work. I would only use it if I had no working linux binary. Your choice.

I have no problem connecting to access points if I am very close to them. It's just an inconvenience to have to use the USB adapter for most purposes.

Thanks for your help.

pizzar0 03-06-2013 10:25 PM

This may be necro... but if anyone still cares, one needs to set the reg(ulatory) domain to one that allows higher txpower settings. (example: 'OB' -> "iw reg set OB")


All times are GMT -5. The time now is 02:14 PM.