aws4embeddedlinux/meta-aws

Mesh not supported

elockman opened this issue · 2 comments

I am building a linux image with yocto for the SAMA5D2-XULT board.
I am trying to assign mesh type to an RT5370 USB wifi device.
This worked in the past, but mesh is no longer supported for some reason.

root@sama5d2-xplained:~# iw wlan0 interface add mesh0 type mp mesh_id mymesh
**command failed: Operation not supported (-95)**

iw list yields:

        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor

I suspect my mesh config is not being applied properly with the new Linux-mchp version.

I am building with linux-mchp_5.10.80

my linux-mchp_5.10.80.bbappend file includes:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = " file://xult_dts.patch;patch=1"
SRC_URI_append += " file://defconfig.patch"

and the defconfig patch includes:

diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_defconfig
--- a/arch/arm/configs/at91_dt_defconfig
+++ b/arch/arm/configs/at91_dt_defconfig
@@ -263,3 +263,6 @@
 # CONFIG_SCHED_DEBUG is not set
 # CONFIG_FTRACE is not set
 CONFIG_DEBUG_USER=y
+# MESH CHANGES
+CONFIG_MAC80211_MESH=y
+CONFIG_BRIDGE=y

The image builds, but the mesh configuration does not seem to stick.

Additional info:
I am using RT5370 USB WiFi module with rt2800usb driver.

Unplugging and plugging in the module, shows that Linux is recognizing the module

root@sama5d2-xplained:~# usb 1-2: USB disconnect, device number 2
usb 1-2: new high-speed USB device number 3 using atmel-ehci
usb 1-2: New USB device found, idVendor=148f, idProduct=5370, bcdDevice= 1.01
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2: Product: 802.11 n WLAN
usb 1-2: Manufacturer: Ralink
usb 1-2: SerialNumber: 1.0
usb 1-2: reset high-speed USB device number 3 using atmel-ehci
ieee80211 phy4: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
ieee80211 phy4: rt2x00_set_rf: Info - RF chipset 5370 detected
ieee80211 phy4: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
ieee80211 phy4: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36

I've also removed it with rmmod and reinstalled with modprobe
rmmod rt2800usb
modprobe rt2800usb nohwcrypt=0

lsmod shows the driver is installed.

root@sama5d2-xplained:~# lsmod
Module                  Size  Used by
rt2800usb              24576  0
8021q                  20480  0
usb_f_acm              12288  1
u_serial               16384  1 usb_f_acm
g_serial               12288  0
libcomposite           32768  2 g_serial,usb_f_acm
rt2800lib             102400  1 rt2800usb
crc_ccitt              12288  1 rt2800lib
rt2x00usb              16384  1 rt2800usb
rt2x00lib              40960  3 rt2800lib,rt2800usb,rt2x00usb
mac80211              368640  3 rt2800lib,rt2x00lib,rt2x00usb
cfg80211              278528  2 rt2x00lib,mac80211
atmel_usba_udc         20480  0

Issue was meant to be posted in meta-atmel