This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WL1837MOD: Mesh interface issue

Part Number: WL1837MOD
Other Parts Discussed in Thread: AM5728,

Hello,

We use WL1837MOD and AM5728 for our wifi solution. I have been trying to add mesh interface using below command but I got below errors:

iw phy phy0 interface add mesh0 type mp
command failed: Operation not supported (-95)

I have enabled Mesh support in linux and updated all WL packages to latest. Can someone please help me where I am doing it wrong?

Thanks,

Divyeshkumar

  • Hi ,
    Please make sure CONFIG_MAC80211_MESH is set to 'y' in kernel configuration .

    Thanks
    Saurabh
  • Hi Saurabh,

    Thanks for the quick response. I did enable Mesh support by that config parameter in the kernel. Here's my .config for that part:

    CONFIG_BT_HCIUART=y

    CONFIG_BT_HCIUART_H4=y

    CONFIG_BT_HCIUART_BCSP=y

    # CONFIG_BT_HCIUART_ATH3K is not set

    # CONFIG_BT_HCIUART_LL is not set

    # CONFIG_BT_HCIUART_3WIRE is not set

    # CONFIG_BT_HCIUART_INTEL is not set

    # CONFIG_BT_HCIUART_BCM is not set

    # CONFIG_BT_HCIUART_QCA is not set

    # CONFIG_BT_HCIBCM203X is not set

    # CONFIG_BT_HCIBPA10X is not set

    # CONFIG_BT_HCIBFUSB is not set

    # CONFIG_BT_HCIVHCI is not set

    CONFIG_BT_MRVL=m

    CONFIG_BT_MRVL_SDIO=m

    CONFIG_BT_WILINK=m

    # CONFIG_AF_RXRPC is not set

    CONFIG_FIB_RULES=y

    CONFIG_WIRELESS=y

    CONFIG_CFG80211=m

    CONFIG_NL80211_TESTMODE=y

    # CONFIG_CFG80211_DEVELOPER_WARNINGS is not set

    # CONFIG_CFG80211_REG_DEBUG is not set

    # CONFIG_CFG80211_CERTIFICATION_ONUS is not set

    CONFIG_CFG80211_DEFAULT_PS=y

    # CONFIG_CFG80211_DEBUGFS is not set

    # CONFIG_CFG80211_INTERNAL_REGDB is not set

    CONFIG_CFG80211_CRDA_SUPPORT=y

    # CONFIG_CFG80211_WEXT is not set

    # CONFIG_LIB80211 is not set

    CONFIG_MAC80211=m

    CONFIG_MAC80211_HAS_RC=y

    CONFIG_MAC80211_RC_MINSTREL=y

    CONFIG_MAC80211_RC_MINSTREL_HT=y

    # CONFIG_MAC80211_RC_MINSTREL_VHT is not set

    CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y

    CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"

    CONFIG_MAC80211_MESH=y

    CONFIG_MAC80211_LEDS=y

    # CONFIG_MAC80211_DEBUGFS is not set

    # CONFIG_MAC80211_MESSAGE_TRACING is not set

    # CONFIG_MAC80211_DEBUG_MENU is not set

    CONFIG_MAC80211_STA_HASH_MAX_SIZE=0

    # CONFIG_WIMAX is not set

    CONFIG_RFKILL=y

    CONFIG_RFKILL_LEDS=y

    CONFIG_RFKILL_INPUT=y

    CONFIG_RFKILL_REGULATOR=y

    CONFIG_RFKILL_GPIO=y

    # CONFIG_NET_9P is not set

    # CONFIG_CAIF is not set

    # CONFIG_CEPH_LIB is not set

    # CONFIG_NFC is not set

    # CONFIG_LWTUNNEL is not set

    CONFIG_HAVE_BPF_JIT=y

    Please advise me if anything else I am missing here.

    Thanks,

    Divyeshkumar

  • Hi,
    Can you pls provide more h/w , s/w details
    - what h/w / EVM are you using ?
    - linux kernel version ?
    - WiLink8 driver/firmware version ?

    Thanks
    Saurabh
  • Sure,

    Here are the details:

    - what h/w / EVM are you using ? - I am using custom HW based on AM5728. We have Wi-Fi and BT work OK

    - linux kernel version ? - Linux version 4.4.52-g0b07074fe6

    - WiLink8 driver/firmware version? -

    • wlconf - R8.7SP2
    • wpa_supplicant - R8.7SP3
    • wl18xx-firmware - R8.7SP1

    - iw version 4.7

    - wlcore: PHY firmware version: Rev 8.2.0.0.240 

    - wlcore: firmware booted (Rev 8.9.0.0.75)

    - hostapd: v2.5-devel

    I can see an object files under net/wireless for mesh, which means mesh is compiled in the kernel too.

    Please let me know if need any other info.

    Thanks,

    Divyeshkumar

  • Hi Saurabh,

    Can you please advise me the next steps?

    Thanks,
    Divyeshkumar
  • Hi,
    - I see you are using different version of driver / firmware etc. Can you pls update update driver and related binaries to R8.7_SP3
    and re-test processors.wiki.ti.com/.../WL18xx_System_Build_Scripts
    - can you pls share output of ifconfig
    - can you run mesh start script in /usr/share/wl18xx and share the output .

    Thanks
    Saurabh
  • Saurabh,

    I don't think we have an issue with the versions of driver/firmware as this are same versions I am using in one of our AM335x based devices and it's working fine. 

    - can you pls share output of ifconfig - 

    lo        Link encap:Local Loopback   
             inet addr:127.0.0.1  Mask:255.0.0.0
             inet6 addr: ::1/128 Scope:Host
             UP LOOPBACK RUNNING  MTU:65536  Metric:1
             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1  
             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    wlan0     Link encap:Ethernet  HWaddr a8:1b:6a:8d:7e:58   
             UP BROADCAST MULTICAST  MTU:1500  Metric:1
             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000  
             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

     

    - can you run mesh start script in /usr/share/wl18xx and share the output -

    root@raymond-gdm:/usr/share/wl18xx# ./mesh_start.sh  
    adding mesh0 interface
    command failed: Operation not supported (-95)
    random: Could not open entropy file /usr/share/wl18xx/entropy.bin for writing
    Successfully initialized wpa_supplicant
    Could not read interface mesh0 flags: No such device
    nl80211: Driver does not support authentication/association or connect commands
    nl80211: deinit ifname=mesh0 disabled_11b_rates=0
    Could not read interface mesh0 flags: No such device
    mesh0: Failed to initialize driver interface
    random: Could not open entropy file /usr/share/wl18xx/entropy.bin for writing
    SIOCSIFADDR: No such device
    mesh0: ERROR while getting interface flags: No such device
    SIOCSIFNETMASK: No such device
    root@raymond-gdm:/usr/share/wl18xx#

     

    Thanks,

    Divyeshkumar

  • Hi,
    Is there a reason why you are running different versions of driver / firmware etc . ? What is different b/w working and non-working scenario ? Can you pls compare kernel configuration b/w the 2 ?

    Saurabh
  • Hi,

    We have two device base, one is AM572x based and other is AM335x based. The AM335x based device has Mesh working and it uses Linux version 4.9.41-ge3a80a1c5c. I am building the OS visa openembedded and the versions are defined in those recipes.

    Thanks,
    Divyeshkumar
  • Hi,
    pls check the kernel configuration b/w both setups. What kernel version is your AM572x setup running ?

    Saurabh
  • Hi,

    The kernel config I shared below is for AM572x, and I believe we only need CONFIG_MAC80211, CONFIG_MAC80211_MESH for Mesh support in kernel. Kernel version is: Linux version 4.4.52-g0b07074fe6

    Thanks,
    Divyeshkumar
  • Hi ,
    run verify_kernel_config.sh( inside build utils ) to ensure your kernel has all necessary configurations enabled. Argument to script is kernel def config file. Also update drivers to R8.7_SP3 as stated before.

    Thanks
    Saurabh