Tobias Diedrich wrote:
> This patch tries to fix this (but is probably wrong :))
> After applying this patch "iw phy phy0 info" looks good, but
> WiFi Analyzer on my phone still shows a very weak signal for the AP.
> 
> Until I do this:
> root@OpenWrt:/# iw phy phy0 set txpower fixed 0
> root@OpenWrt:/# iw phy phy0 set txpower auto
> 
> And then the signal strength is good.
> 
> iw phy phy0 set txpower fixed|limit still doesn't accept values above 0 for
> some reason though.

Ok, "iw phy phy0 set txpower fixed|limit 2000" does work, I fell
into the 'must be multiple of 100 but I won't give you any helpful
error message to tell you this' trap.

I also now believe the value for max_power below should be
AR5K_TUNE_MAX_TXPOWER/2 (31dBm) (or even better use calibration
data from the eeprom).

Still need to figure out why it boots up with txpower set to 0
though...

Index: compat-wireless-2012-07-16/drivers/net/wireless/ath/ath5k/base.c
===================================================================
--- compat-wireless-2012-07-16.orig/drivers/net/wireless/ath/ath5k/base.c       
2012-08-05 01:42:19.141413438 +0200
+++ compat-wireless-2012-07-16/drivers/net/wireless/ath/ath5k/base.c    
2012-08-05 01:44:19.957568271 +0200
@@ -325,6 +325,8 @@
                if (!ath5k_is_standard_channel(ch, band))
                        continue;
 
+               channels[count].max_power = AR5K_TUNE_MAX_TXPOWER/2;
+
                count++;
        }

-- 
Tobias                                          PGP: http://8ef7ddba.uguu.de
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to