Modify

Opened 4 years ago

Closed 4 years ago

#15397 closed defect (fixed)

Tx power setting removed from mac80211, possibly due to r40293 regulatory database change

Reported by: hnyman Owned by: developers
Priority: highest Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: mac80211 regulatory Cc:

Description

The radio Tx power selection has disappeared from Luci in my ar71xx/wndr3700 build between revisions 40029 and 40295. Also iw list shows only 0.0 dbm as the power. Luci shows 3 dbm as the one applied.

Looking into the changes between 40029-40295, there are not many suspects, so the regulatory database update r40293 seems a likely culprit. Other less likely possibility is the kernel update to 3.10.34.

Kernel log shows, how 0.0 dbm is set for World, US and FI. FI log here:

[   24.460000] cfg80211: Calling CRDA for country: FI
[   24.460000] cfg80211: Regulatory domain changed to country: FI
[   24.470000] cfg80211:  DFS Master region: ETSI
[   24.470000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   24.480000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (2000 mBi, 0 mBm)
[   24.490000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (2000 mBi, 0 mBm)
[   24.500000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (2000 mBi, 0 mBm)
[   24.500000] cfg80211:   (5490000 KHz - 5710000 KHz @ 80000 KHz), (2700 mBi, 0 mBm)
[   24.510000] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (4000 mBi, 0 mBm)

Output of iwinfo and iw list for both revisions. (only wlan0/phy0)

BARRIER BREAKER (Bleeding Edge, r40295)
 -----------------------------------------------------
root@OpenWrt:~# iwinfo
wlan0     ESSID: "HNWLAN"
          Access Point: xxxxxxxxxxxxxxxxxxx
          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: 168C:0029 168C:A095 [Atheros AR9223]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy0
root@OpenWrt:~# iw list
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: 0x11ce
                        HT20/HT40
                        SM Power Save disabled
                        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] (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)
        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

The old working 40029 produces otherwise similar info, but power levels are normal:

BARRIER BREAKER (Bleeding Edge, r40029)
 -----------------------------------------------------
root@OpenWrt2:~# iwinfo
wlan0     ESSID: "HNWLAN"
          Access Point: xxxxxxxxxx
          Mode: Master  Channel: 9 (2.452 GHz)
          Tx-Power: 20 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: 168C:0029 168C:A095 [Atheros AR9223]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy0

root@OpenWrt2:~# iw list
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: 0x11ce
                        HT20/HT40
                        SM Power Save disabled
                        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] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 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}}}

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by hnyman

One additional comment:
the regulatory database change apparently included a format change.
Earlier the power argument was given as (min, max), now it is only (max), at least for most countries. (I did not check the whole file.)

That is probably affecting the parsing of the values and causing this problem.

E.g Finland:

 country FI: DFS-ETSI
-        (2402 - 2482 @ 40), (N/A, 20)
-        (5170 - 5250 @ 80), (N/A, 20)
-        (5250 - 5330 @ 80), (N/A, 20), DFS
-        (5490 - 5710 @ 80), (N/A, 27), DFS
-        # 60 gHz band channels 1-4, ref: Etsi En 302 567
-        (57240 - 65880 @ 2160), (N/A, 40), NO-OUTDOOR
+        (2402 - 2482 @ 40), (20)
+        (5170 - 5250 @ 80), (20)
+        (5250 - 5330 @ 80), (20), DFS
+        (5490 - 5710 @ 80), (27), DFS
+        # 60 gHz band channels 1-4, ref: Etsi En 302 567
+        (57240 - 65880 @ 2160), (40), NO-OUTDOOR

comment:2 Changed 4 years ago by anonymous

+1 This breaks setting the txpower to any higher level than the hardware minimum (3dB in my case, barely enough to get a signal at 10 meters distance). Reverting to the previous regdb.txt version fixes this.

comment:3 Changed 4 years ago by jow

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

Should be fixed with r40296

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.