[FS#3856] Totolink x5000r - wifi autodetection incompatible with iwinfo/luci
OpenWrt Bugs
openwrt-bugs at lists.openwrt.org
Sun Jun 6 10:38:44 PDT 2021
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Radosław Gancarz (rgrgrg)
Attached to Project - OpenWrt/LEDE Project
Summary - Totolink x5000r - wifi autodetection incompatible with iwinfo/luci
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - openwrt-21.02
Due in Version - Undecided
Due Date - Undecided
Details - Device: x5000r on OpenWrt 21.02.0-rc1
Device: x5000r on OpenWrt 21.02.0-rc2
Autogenerated wifi configuration results in:
* inability to set frequency in LUCI
* channel analysis in LUCI shows only radio0 with incorrect frequency (radio0 is 2.4GHz, channel analysis shows chart for 5GHz)
* iwinfo returns results only for 'iwinfo radio0 ...', but results are taken from phy1 (which belongs to radio1)
wifi down;rm /etc/config/wireless;wifi config;wifi up;sleep 5;echo radio0;iwinfo radio0 info; echo radio1;iwinfo radio1 info
'radio0' is disabled
'radio1' is disabled
'radio0' is disabled
'radio1' is disabled
radio0
radio0 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Unknown Channel: unknown (unknown)
Center Channel 1: unknown 2: unknown
Tx-Power: unknown Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: unknown
Type: nl80211 HW Mode(s): 802.11nac
Hardware: 14C3:7915 14C3:7915 [MediaTek MT7915E]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy1
radio1
No such wireless device: radio1
Generated device sections:
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
option htmode 'HT20'
option disabled '1'
config wifi-device 'radio1'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0+1'
option htmode 'VHT80'
option disabled '1'
Enabling radios and editing files manually gives working configuration.
** Workaround **
Removing path and forcing correct phys makes luci/iwinfo happy.
Fixed device section:
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option disabled_path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0
option phy 'phy0'
option htmode 'HT20'
option disabled '1'
config wifi-device 'radio1'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option disabled_path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0
option phy 'phy1'
option htmode 'VHT80'
option disabled '1'
Result of iwinfo:
root at ap01:~# echo radio0;iwinfo radio0 info; echo radio1;iwinfo radio1 info
radio0
radio0 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Unknown Channel: unknown (unknown)
Center Channel 1: unknown 2: unknown
Tx-Power: unknown Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: unknown
Type: nl80211 HW Mode(s): 802.11bgn
Hardware: 14C3:7915 14C3:7915 [MediaTek MT7915E]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy0
radio1
radio1 ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Unknown Channel: unknown (unknown)
Center Channel 1: unknown 2: unknown
Tx-Power: unknown Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: unknown
Type: nl80211 HW Mode(s): 802.11nac
Hardware: 14C3:7915 14C3:7915 [MediaTek MT7915E]
TX power offset: none
Frequency offset: none
Supports VAPs: yes PHY name: phy1
More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3856
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the openwrt-bugs
mailing list