Compiling OpenWRT from trunk, I've found that there are issues with
setting txpower on AR2417:
- No txpower setting in LuCI gui
- iw phy phy0 info shows 0dBm for all channels regardless of regdomain

[    9.332000] cfg80211: Calling CRDA to update world regulatory domain
[    9.340000] cfg80211: World regulatory domain updated:
[    9.344000] cfg80211:   (start_freq - end_freq @ bandwidth), 
(max_antenna_gain, max_eirp)
[    9.352000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.360000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 
2000 mBm)
[    9.364000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 
2000 mBm)
[    9.372000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.380000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)

root@OpenWrt:/# iw phy phy0 info
Wiphy phy0
        Band 1:
                Frequencies:
                        * 2412 MHz [1] (0.0 dBm)
                        * 2417 MHz [2] (0.0 dBm)
                        * 2422 MHz [3] (0.0 dBm)
                        * 2427 MHz [4] (0.0 dBm)
                        * 2432 MHz [5] (0.0 dBm)
                        * 2437 MHz [6] (0.0 dBm)
                        * 2442 MHz [7] (0.0 dBm)
                        * 2447 MHz [8] (0.0 dBm)
                        * 2452 MHz [9] (0.0 dBm)
                        * 2457 MHz [10] (0.0 dBm)
                        * 2462 MHz [11] (0.0 dBm)
                        * 2467 MHz [12] (0.0 dBm)
                        * 2472 MHz [13] (0.0 dBm)
                        * 2484 MHz [14] (disabled)


One issue seems to be fallout from
http://git.kernel.org/?p=linux/kernel/git/linville/wireless-next.git;a=commitdiff;h=eccc068e8e84c8fe997115629925e0422a98e4de
AFAICS max_power for the channels is never set and thus
min(chan->max_power, chan->max_reg_power) is 0.

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.

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;
+
                count++;
        }
 

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

Reply via email to