OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Martin Weinelt - 25.11.2019

FS#2629 - iwinfo fails to query infos via nl80211 on Archer C7 v2

TP-Link Archer C7 v2
OpenWrt 19.07 (f97d2351e2c1282cdfa0e5126bd6eef56d0e8252)

Iwinfo fails to query nl80211 and falls back to the generic wext interface and therefore offers little information.

I’ve attached the strace output in the file “out” and the config used to build this image.

root@OpenWrt:/tmp# strace -s 100 -f -o out -x $(which iwinfo)
radio0_vlan101 ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Master  Channel: unknown (unknown)
          Tx-Power: 23 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: wext  HW Mode(s): 802.11a
          Hardware: 168C:003C 0000:0000 [Generic WEXT]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: no  PHY name: radio0_vlan101

radio0_vlan110 ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Master  Channel: unknown (unknown)
          Tx-Power: 23 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: wext  HW Mode(s): 802.11a
          Hardware: 168C:003C 0000:0000 [Generic WEXT]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: no  PHY name: radio0_vlan110

radio0_vlan130 ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Master  Channel: unknown (unknown)
          Tx-Power: 23 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: wext  HW Mode(s): 802.11a
          Hardware: 168C:003C 0000:0000 [Generic WEXT]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: no  PHY name: radio0_vlan130

radio1_vlan101 ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Master  Channel: unknown (unknown)
          Tx-Power: 17 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: wext  HW Mode(s): 802.11bg
          Hardware: unknown [Generic WEXT]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: no  PHY name: radio1_vlan101

radio1_vlan130 ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Master  Channel: unknown (unknown)
          Tx-Power: 17 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: wext  HW Mode(s): 802.11bg
          Hardware: unknown [Generic WEXT]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: no  PHY name: radio1_vlan130
   out (50.7 KiB)
   .config (226 KiB)
Admin
Jo-Philipp Wich commented on 25.11.2019 20:08

Please provide the output of “uci show wireless“ and “ls -l /sys/class/net“ and “./scripts/diffconfig.sh“ from the buildroot

Martin Weinelt commented on 25.11.2019 20:34

Thanks for looking into this. Information below.

# ls -l /sys/class/net
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 br-lan -> ../../devices/virtual/net/br-lan
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 br-vlan101 -> ../../devices/virtual/net/br-vlan101
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 br-vlan110 -> ../../devices/virtual/net/br-vlan110
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 br-vlan130 -> ../../devices/virtual/net/br-vlan130
lrwxrwxrwx    1 root     root             0 Jan  1  1970 eth0 -> ../../devices/platform/ahb/19000000.eth/net/eth0
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 eth0.101 -> ../../devices/virtual/net/eth0.101
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 eth0.110 -> ../../devices/virtual/net/eth0.110
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 eth0.130 -> ../../devices/virtual/net/eth0.130
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 eth0.2 -> ../../devices/virtual/net/eth0.2
lrwxrwxrwx    1 root     root             0 Jan  1  1970 eth1 -> ../../devices/platform/ahb/1a000000.eth/net/eth1
lrwxrwxrwx    1 root     root             0 Nov 22 00:11 eth1.1 -> ../../devices/virtual/net/eth1.1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx    1 root     root             0 Nov 25 18:36 radio0_vlan101 -> ../../devices/pci0000:00/0000:00:00.0/net/radio0_vlan101
lrwxrwxrwx    1 root     root             0 Nov 25 18:36 radio0_vlan110 -> ../../devices/pci0000:00/0000:00:00.0/net/radio0_vlan110
lrwxrwxrwx    1 root     root             0 Nov 25 18:36 radio0_vlan130 -> ../../devices/pci0000:00/0000:00:00.0/net/radio0_vlan130
lrwxrwxrwx    1 root     root             0 Nov 25 18:36 radio1_vlan101 -> ../../devices/platform/ahb/ahb:apb/18100000.wmac/net/radio1_vlan101
lrwxrwxrwx    1 root     root             0 Nov 25 18:36 radio1_vlan130 -> ../../devices/platform/ahb/ahb:apb/18100000.wmac/net/radio1_vlan130
Martin Weinelt commented on 25.11.2019 21:23

As blocktrron discovered the problem is the interface name.

radio0_vlan101 doesn't work while radia0_vlan101 works.

Not sure what to make of this.

Admin
Jo-Philipp Wich commented on 26.11.2019 07:40

Please try the attached patch.

Martin Weinelt commented on 26.11.2019 08:45

Yep, that makes it work. Thank you.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing