Modify

Opened 4 years ago

Closed 3 years ago

#15581 closed defect (fixed)

low txpower on TL-WR841N V9 and it can't be changed

Reported by: sergi.trujillo Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: other Version: Trunk
Keywords: wr841n, wr841n, Tp-Link, v9, Cc:

Description

Tests i do:

root@OpenWrt#uci show wireless.radio0.txpower
wireless.radio0.txpower=27

root@OpenWrt# iwinfo
wlan0     ESSID: "xxxxx"
          Access Point: C0:4A:00:XX:XX:XX
          Mode: Master  Channel: 3 (2.422 GHz)
          '''Tx-Power: 21 dBm'''  Link Quality: unknown/70
          Signal: unknown  Noise: -95 dBm
          Bit Rate: unknown
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

On my Samsung S3 with Wifi Analyzer installed at 2 meters I receive between -84, -87 dBm

root@OpenWrt#uci set wireless.radio0.txpower=3
root@OpenWrt#wifi
(wait some seconds)

root@OpenWrt# iwinfo
wlan0     ESSID: "xxxxx"
          Access Point: C0:4A:00:XX:XX:XX
          Mode: Master  Channel: 3 (2.422 GHz)
          '''Tx-Power: 3 dBm'''  Link Quality: unknown/70
          Signal: unknown  Noise: -95 dBm
          Bit Rate: unknown
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

On my Samsung S3 with Wifi Analyzer installed at 2 meters I receive between -84, -87 dBm (the same result).

On the same router with original firmware On my Samsung S3 with Wifi Analyzer installed at 2 meters I receive between -53 , -56 dBm

I add some other info:

root@OpenWrt# iw phy phy0 info
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        Coverage class: 0 (up to 0m)
        Device supports AP-side u-APSD.
        Device supports T-DLS.
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * WDS
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x11ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-15
                Frequencies:
                        * 2412 MHz [1] (30.0 dBm)
                        * 2417 MHz [2] (30.0 dBm)
                        * 2422 MHz [3] (30.0 dBm)
                        * 2427 MHz [4] (30.0 dBm)
                        * 2432 MHz [5] (30.0 dBm)
                        * 2437 MHz [6] (30.0 dBm)
                        * 2442 MHz [7] (30.0 dBm)
                        * 2447 MHz [8] (30.0 dBm)
                        * 2452 MHz [9] (30.0 dBm)
                        * 2457 MHz [10] (30.0 dBm)
                        * 2462 MHz [11] (30.0 dBm)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
        valid interface combinations:
                 * #{ managed, WDS } <= 2048, #{ AP, mesh point } <= 8, #{ IBSS } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 2048, #channels <= 1, STA/AP BI must match
                 * #{ IBSS, AP, mesh point } <= 1,
                   total <= 1, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz }

        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing

root@OpenWrt# cat /proc/cpuinfo
system type             : Qualcomm Atheros QCA9533 rev 1
machine                 : TP-LINK TL-WR841N/ND v9
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 366.18
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

Attachments (0)

Change History (12)

comment:1 Changed 4 years ago by bittorf@…

which OpenWrt-revision?

comment:2 Changed 4 years ago by sergi.trujillo

Sorry,

root@OpenWrt# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt"
DISTRIB_RELEASE="Bleeding Edge"
DISTRIB_REVISION="r40512"
DISTRIB_CODENAME="barrier_breaker"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt Barrier Breaker r40512"
DISTRIB_TAINTS="no-all"

comment:3 Changed 4 years ago by anonymous

Confirmed in my own.

comment:4 Changed 4 years ago by anonymous

same on attitude_adjustment ...
totaly poor wifi signal

comment:5 Changed 4 years ago by piffall@…

I have compiled the revision 40555 with "Atheros wireless debugging" enabled for some more info.

Setting tx power:

 ~# iw phy0 set txpower fixed 2000

Debug:

kernel: [ 7389.320000] ath: phy0: Set power: 20
kernel: [ 7389.320000] ath: phy0: TPC[00] 0x00000028
kernel: [ 7389.320000] ath: phy0: TPC[01] 0x00000028
kernel: [ 7389.320000] ath: phy0: TPC[02] 0x00000022
kernel: [ 7389.320000] ath: phy0: TPC[03] 0x0000001e
kernel: [ 7389.320000] ath: phy0: TPC[04] 0x00000028
kernel: [ 7389.320000] ath: phy0: TPC[05] 0x00000028
kernel: [ 7389.320000] ath: phy0: TPC[06] 0x00000028
kernel: [ 7389.320000] ath: phy0: TPC[07] 0x00000028
kernel: [ 7389.320000] ath: phy0: TPC[08] 0x00000024
kernel: [ 7389.320000] ath: phy0: TPC[09] 0x00000024
kernel: [ 7389.320000] ath: phy0: TPC[10] 0x00000020
kernel: [ 7389.320000] ath: phy0: TPC[11] 0x0000001e
kernel: [ 7389.320000] ath: phy0: TPC[12] 0x0000001c
kernel: [ 7389.320000] ath: phy0: TPC[13] 0x0000001a
kernel: [ 7389.320000] ath: phy0: TPC[14] 0x00000020
kernel: [ 7389.320000] ath: phy0: TPC[15] 0x0000001e
kernel: [ 7389.320000] ath: phy0: TPC[16] 0x0000001c
kernel: [ 7389.320000] ath: phy0: TPC[17] 0x0000001a
kernel: [ 7389.320000] ath: phy0: TPC[18] 0x00000020
kernel: [ 7389.320000] ath: phy0: TPC[19] 0x00000020
kernel: [ 7389.320000] ath: phy0: TPC[20] 0x0000001c
kernel: [ 7389.320000] ath: phy0: TPC[21] 0x00000014
kernel: [ 7389.320000] ath: phy0: TPC[22] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[23] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[24] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[25] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[26] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[27] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[28] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[29] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[30] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[31] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[32] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[33] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[34] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[35] 0x00000000
kernel: [ 7389.320000] ath: phy0: LOOP-Mode ctlMode 0 < 3, isHt40CtlMode 0, EXT_ADDITIVE 0
kernel: [ 7389.320000] ath: phy0: LOOP-Ctlidx 0: cfgCtl 0x12 pCtlMode 0x01 ctlIndex 0x11 chan 2412
kernel: [ 7389.320000] ath: phy0: SEL-Min ctlMode 0 pCtlMode 1 2xMaxEdge 32 sP 34 minCtlPwr 32
kernel: [ 7389.320000] ath: phy0: LOOP-Mode ctlMode 1 < 3, isHt40CtlMode 0, EXT_ADDITIVE 0
kernel: [ 7389.320000] ath: phy0: LOOP-Ctlidx 0: cfgCtl 0x12 pCtlMode 0x02 ctlIndex 0x11 chan 2412
kernel: [ 7389.320000] ath: phy0: LOOP-Ctlidx 1: cfgCtl 0x12 pCtlMode 0x02 ctlIndex 0x12 chan 2412
kernel: [ 7389.320000] ath: phy0: SEL-Min ctlMode 1 pCtlMode 2 2xMaxEdge 26 sP 34 minCtlPwr 26
kernel: [ 7389.320000] ath: phy0: LOOP-Mode ctlMode 2 < 3, isHt40CtlMode 0, EXT_ADDITIVE 0
kernel: [ 7389.320000] ath: phy0: LOOP-Ctlidx 0: cfgCtl 0x12 pCtlMode 0x05 ctlIndex 0x11 chan 2412
kernel: [ 7389.320000] ath: phy0: LOOP-Ctlidx 1: cfgCtl 0x12 pCtlMode 0x05 ctlIndex 0x12 chan 2412
kernel: [ 7389.320000] ath: phy0: LOOP-Ctlidx 2: cfgCtl 0x12 pCtlMode 0x05 ctlIndex 0x15 chan 2412
kernel: [ 7389.320000] ath: phy0: SEL-Min ctlMode 2 pCtlMode 5 2xMaxEdge 24 sP 34 minCtlPwr 24
kernel: [ 7389.320000] ath: phy0: TPC[00] 0x0000001a
kernel: [ 7389.320000] ath: phy0: TPC[01] 0x0000001a
kernel: [ 7389.320000] ath: phy0: TPC[02] 0x0000001a
kernel: [ 7389.320000] ath: phy0: TPC[03] 0x0000001a
kernel: [ 7389.320000] ath: phy0: TPC[04] 0x00000020
kernel: [ 7389.320000] ath: phy0: TPC[05] 0x00000020
kernel: [ 7389.320000] ath: phy0: TPC[06] 0x00000020
kernel: [ 7389.320000] ath: phy0: TPC[07] 0x00000020
kernel: [ 7389.320000] ath: phy0: TPC[08] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[09] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[10] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[11] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[12] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[13] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[14] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[15] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[16] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[17] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[18] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[19] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[20] 0x00000018
kernel: [ 7389.320000] ath: phy0: TPC[21] 0x00000014
kernel: [ 7389.320000] ath: phy0: TPC[22] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[23] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[24] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[25] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[26] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[27] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[28] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[29] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[30] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[31] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[32] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[33] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[34] 0x00000000
kernel: [ 7389.320000] ath: phy0: TPC[35] 0x00000000
kernel: [ 7389.320000] ath: phy0: ch=0 f=2412 low=2412 -21 h=2412 -21
kernel: [ 7389.320000] ath: phy0: ch=1 f=2412 low=2412 -18 h=2412 -18
kernel: [ 7389.320000] ath: phy0: ch=2 f=2412 low=2412 0 h=2412 0
kernel: [ 7389.320000] ath: phy0: for frequency=2412, calibration correction = -21 -18 0
kernel: [ 7389.340000] ath: phy0: slot: 0 tsf: 832716811 tsftu: 813200
kernel: [ 7389.340000] ath: phy0: Transmitting beacon for slot: 0
kernel: [ 7389.350000] ath: phy0: disable IER
kernel: [ 7389.350000] ath: phy0: enable IER
kernel: [ 7389.350000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.360000] ath: phy0: disable IER
kernel: [ 7389.360000] ath: phy0: enable IER
kernel: [ 7389.360000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.360000] ath: phy0: slot: 1 tsf: 832729622 tsftu: 813212
kernel: [ 7389.380000] ath: phy0: slot: 2 tsf: 832742420 tsftu: 813225
kernel: [ 7389.400000] ath: phy0: slot: 3 tsf: 832755201 tsftu: 813237
kernel: [ 7389.420000] ath: phy0: slot: 4 tsf: 832768001 tsftu: 813250
kernel: [ 7389.440000] ath: phy0: slot: 5 tsf: 832780855 tsftu: 813262
kernel: [ 7389.460000] ath: phy0: disable IER
kernel: [ 7389.460000] ath: phy0: enable IER
kernel: [ 7389.460000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.460000] ath: phy0: slot: 6 tsf: 832793601 tsftu: 813275
kernel: [ 7389.480000] ath: phy0: slot: 7 tsf: 832806402 tsftu: 813287
kernel: [ 7389.500000] ath: phy0: slot: 0 tsf: 832819201 tsftu: 813300
kernel: [ 7389.500000] ath: phy0: Transmitting beacon for slot: 0
kernel: [ 7389.510000] ath: phy0: disable IER
kernel: [ 7389.510000] ath: phy0: enable IER
kernel: [ 7389.510000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.520000] ath: phy0: slot: 1 tsf: 832832003 tsftu: 813312
kernel: [ 7389.540000] ath: phy0: slot: 2 tsf: 832844859 tsftu: 813325
kernel: [ 7389.560000] ath: phy0: disable IER
kernel: [ 7389.560000] ath: phy0: enable IER
kernel: [ 7389.560000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.560000] ath: phy0: disable IER
kernel: [ 7389.560000] ath: phy0: enable IER
kernel: [ 7389.560000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.560000] ath: phy0: slot: 3 tsf: 832857607 tsftu: 813337
kernel: [ 7389.580000] ath: phy0: slot: 4 tsf: 832870403 tsftu: 813350
kernel: [ 7389.600000] ath: phy0: slot: 5 tsf: 832883201 tsftu: 813362
kernel: [ 7389.620000] ath: phy0: slot: 6 tsf: 832896002 tsftu: 813375
kernel: [ 7389.650000] ath: phy0: slot: 7 tsf: 832908812 tsftu: 813387
kernel: [ 7389.660000] ath: phy0: disable IER
kernel: [ 7389.660000] ath: phy0: enable IER
kernel: [ 7389.660000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.670000] ath: phy0: slot: 0 tsf: 832921606 tsftu: 813400
kernel: [ 7389.670000] ath: phy0: Transmitting beacon for slot: 0
kernel: [ 7389.680000] ath: phy0: disable IER
kernel: [ 7389.680000] ath: phy0: enable IER
kernel: [ 7389.680000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.690000] ath: phy0: slot: 1 tsf: 832934410 tsftu: 813412
kernel: [ 7389.710000] ath: phy0: slot: 2 tsf: 832947220 tsftu: 813425
kernel: [ 7389.730000] ath: phy0: slot: 3 tsf: 832960020 tsftu: 813437
kernel: [ 7389.750000] ath: phy0: slot: 4 tsf: 832972820 tsftu: 813450
kernel: [ 7389.760000] ath: phy0: disable IER
kernel: [ 7389.760000] ath: phy0: enable IER
kernel: [ 7389.760000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.770000] ath: phy0: slot: 5 tsf: 832985623 tsftu: 813462
kernel: [ 7389.790000] ath: phy0: slot: 6 tsf: 832998401 tsftu: 813475
kernel: [ 7389.810000] ath: phy0: slot: 7 tsf: 833011202 tsftu: 813487
kernel: [ 7389.830000] ath: phy0: slot: 0 tsf: 833024001 tsftu: 813500
kernel: [ 7389.830000] ath: phy0: Transmitting beacon for slot: 0
kernel: [ 7389.840000] ath: phy0: disable IER
kernel: [ 7389.840000] ath: phy0: enable IER
kernel: [ 7389.840000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.850000] ath: phy0: slot: 1 tsf: 833036804 tsftu: 813512
kernel: [ 7389.870000] ath: phy0: disable IER
kernel: [ 7389.870000] ath: phy0: enable IER
kernel: [ 7389.870000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.870000] ath: phy0: disable IER
kernel: [ 7389.870000] ath: phy0: enable IER
kernel: [ 7389.870000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.870000] ath: phy0: slot: 2 tsf: 833049607 tsftu: 813525
kernel: [ 7389.890000] ath: phy0: slot: 3 tsf: 833062402 tsftu: 813537
kernel: [ 7389.910000] ath: phy0: slot: 4 tsf: 833075202 tsftu: 813550
kernel: [ 7389.930000] ath: phy0: slot: 5 tsf: 833088001 tsftu: 813562
kernel: [ 7389.950000] ath: phy0: slot: 6 tsf: 833100802 tsftu: 813575
kernel: [ 7389.970000] ath: phy0: disable IER
kernel: [ 7389.970000] ath: phy0: enable IER
kernel: [ 7389.970000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7389.970000] ath: phy0: slot: 7 tsf: 833113602 tsftu: 813587
kernel: [ 7389.990000] ath: phy0: slot: 0 tsf: 833126401 tsftu: 813600
kernel: [ 7389.990000] ath: phy0: Transmitting beacon for slot: 0
kernel: [ 7390.010000] ath: phy0: disable IER
kernel: [ 7390.010000] ath: phy0: enable IER
kernel: [ 7390.010000] ath: phy0: AR_IMR 0x81810175 IER 0x1
kernel: [ 7390.010000] ath: phy0: slot: 1 tsf: 833139208 tsftu: 813612

Scan result at 1 meter distance:

...
Quality=35/70  Signal level=-75 dBm 
...

comment:6 Changed 4 years ago by anonymous

信号不好

comment:7 Changed 4 years ago by lynxis

Patch is pending.

comment:8 Changed 4 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r40695

comment:9 Changed 4 years ago by sergi.trujillo

GOOD JOB!
I compiled last trunk and this problem was solved!

Thank all!

comment:10 Changed 4 years ago by anonymous

Great job, problem been solved for me too.

comment:11 Changed 3 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reproduce the problem.

Does not support 12,13 channels,luci page display Rssi -35,Wireless Net View display -57,But the signal is poor.

Router and Wireless Adapter Distance 2m

WIFI NIC:BCM4323/AR9170

comment:12 Changed 3 years ago by nbd

  • Resolution set to fixed
  • Status changed from reopened to closed

what you're describing seems to be a different problem, so it should get a separate ticket with a better description

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.