Which package should be rebuild to show correct information of iwinfo of Morse Interface?

Hi,

I have rebuilt and installed three packages
libiwinfo-data_2023-05-10
libiwinfo20210430_2023-05-10
iwinfo_2023-05-10

but the information of Morse interface is not showed correctly as

wlan1 ESSID: unknown
Access Point: 90:03:71:52:9E:70
Mode: Master Channel: 149 (5.745 GHz) HT Mode: VHT80
Center Channel 1: 155 2: unknown
Tx-Power: 21 dBm Link Quality: unknown/70
Signal: unknown Noise: unknown
Bit Rate: unknown
Encryption: unknown
Type: nl80211 HW Mode(s): 802.11ac/n
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: yes PHY name: phy3

During building process, we also uninstalled and reinstalled feeds with override for expat openocd and iwinfo before making the build.

So, please let me know if I missed some future step/package to make the iwinfo worked correctly with Morse interface?

BR
MQ

Just to clarify, are you saying that you ran the following?

./scripts/feeds update
./scripts/feeds install
./scripts/feeds uninstall iwinfo
./scripts/feeds install -f -p morse iwinfo

If so, can you share the output of cat /usr/share/libiwinfo/devices.txt on the device? You should see "morse,mm610x-spi" 0 0 "Morse Micro" "HaLow WiFi" at the bottom of it!

If the Morse Micro entry is not present in devices.txt, then the OpenWrt build root probably hasn’t updated its package index correctly, and you may need to delete the openwrt/tmp directory and run the ./scripts/feeds commands again.
I will double check tomorrow that the specific version you’re using definitely has the SPI entry in it. I note that I’m currently checking 2023-07-01. Will confirm as soon as I can!

If the entry is present, then it may be that the device isn’t being recognised. For SPI devices, iwinfo can only match against a device tree compatible as it doesn’t get a VID/PID pair like SDIO or USB. So please ensure your device tree has the compatible specified.

1 Like

On the devices.txt file, we have


....
0x325B 0x0206 0x0000 0x0000    0      0  "Morse Micro" "HaLow WiFi"
0x325B 0x0306 0x0000 0x0000    0      0  "Morse Micro" "HaLow WiFi"


# USB devices
# 0x0000 | 0x0000 | vendor id | product id | ...
0x0000 0x0000 0x0e8d 0x7961    0      0  "MediaTek" "MT7921AU"

For the device tree, currently we are using the mapping like below

// spi
&qupv3_se1_spi {
	status = "okay";
	#address-cells = <1>;
	#size-cells = <0>;
	mm6108: mm6108@0 {
		compatible = "morse,mm610x-spi";
		reg = <0>;
		spi-irq-gpios = <&tlmm 103 GPIO_ACTIVE_HIGH>;
		reset-gpios = <&tlmm 101 GPIO_ACTIVE_HIGH>;
		power-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
		status = "okay";
	};
};

Hi Arien,

I have tried to build the version 2023-07-01 and can see the expected information, It seems the previous version is missing the SPI piece of code. I am using this version instead so no worry about the previous issue.

wlan1     ESSID: unknown
          Access Point: 90:03:71:52:9E:70
          Mode: Master  Channel: 40 (922.000 MHz)  HT Mode: HT40
          Center Channel 1: 40 2: unknown
          Tx-Power: 21 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: unknown
          Type: dot11ah  HW Mode(s): 802.11ah
          Hardware: embedded [Morse Micro HaLow WiFi]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy1
1 Like

Nice to see the update solved it!