OpenWrt Forum Archive

Topic: iwinfo patch to detect wrt3200acm chipsets

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

It looks like a small patch to iwinfo may be needed to properly detect and report the chipsets in the wrt3200acm.
This trivial patch (untested) against the latest iwinfo git tree should work:

diff --git a/hardware.txt b/hardware.txt
index 81b31cf..098551f 100644
--- a/hardware.txt
+++ b/hardware.txt
@@ -59,3 +59,5 @@
0x1814 0x3052 0x1814 0x0008    0      0  "RaLink"   "Rt3052"
0x1814 0x3352 0x1814 0x000c    0      0  "RaLink"   "Rt3352"
0x11ab 0x2a55 0x11ab 0x0000    0      0  "Marvell"  "88W8864"
+0x11ab 0x2b40 0x11ab 0x0000    0      0  "Marvell"  "88W8964"
+0x02df 0x9135 0x0000 0x0000    0      0  "Marvell"  "88W8887"

Hi Enginerd,

I need a patch for QCA9880 chipset, because iwinfo in my Openwrt didn't get any useful Wi-Fi data as I described in

https://forum.openwrt.org/viewtopic.php?id=73747

Do you think the problem is caused by hardware.txt in iwinfo, how can I crosscheck it?

Thanks for your time and sharing!

KH wrote:

Hi Enginerd,

I need a patch for QCA9880 chipset, because iwinfo in my Openwrt didn't get any useful Wi-Fi data as I described in

https://forum.openwrt.org/viewtopic.php?id=73747

Do you think the problem is caused by hardware.txt in iwinfo, how can I crosscheck it?

Thanks for your time and sharing!

The file /usr/share/libiwinfo/hardware.txt is read by iwinfo at runtime.
So you can test things right now if you ssh to your device, add the
needed chipset info to the end of the file, and then see if iwinfo will
now work as expected.  You don't have to compile anything to test.

Thanks Enginerd ; )

After added the chipset info into hardware.txt, the only update is "Hardware" in iwinfo, other fields remains "unknown" or nil, so quite sure the problem is not caused by hardware.txt... ;(

root@openwrt:~# iwinfo wifi1 info
wifi1     ESSID: unknown
          Access Point: 00:00:00:00:00:00
          Mode: Unknown  Channel: unknown (unknown)
          Tx-Power: unknown  Link Quality: unknown/unknown
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: qcawifi  HW Mode(s): 802.11anac
          Hardware: 168C:003C 0000:0000 [Qualcomm Atheros KH-QCA9880]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: wifi1
root@openwrt:~# iwinfo ath1 info
ath1      ESSID: "openwrt"
          Access Point: -
          Mode: Master  Channel: 128 (5.640 GHz)
          Tx-Power: 25 dBm  Link Quality: 94/94
          Signal: -97 dBm  Noise: -95 dBm
          Bit Rate: 0.3 MBit/s
          Encryption: none
          Type: qcawifi  HW Mode(s): 802.11anac
          Hardware: unknown [Generic Atheros]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: wifi1

The discussion might have continued from here.