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: MultiRole Demo not working

Part Number: WL1837MOD
Other Parts Discussed in Thread: WL1837

We are having trouble getting simultaneous Wifi station and AP to work. We are following instructions in processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

Configuration:
Beaglebone Black + Element14 WL Gateway cape with WL1837
TI SDK 05_01_00_11, arago-base-tisdk-image with packagegroup-arago-tisdk-connectivity, and Enable-TI-WiFi-Bluetooth-am335x-boneblack-WL1837.patch ( link to patch obtained from TI E2E forum post )

The following tests work fine:
- Station only, connecting to 2 GHz and 5 GHz APs using ./sta_connect-ex.sh script and our office WiFi router ( both 2 GHz and 5GHz )
- AP only, either 2 GHz ( hw_mode=g, channel=11 ) or 5 GHz ( hw_mode=a, channel=36 ) connecting from another BBB with same cape & OS.

Does not work:
MultiRole Setup Procedure in processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux
Have tried 2 GHz for both station and ap, 5 GHz for station and ap, 2 GHz for station and 5 GHz for AP

root@am335x-evm:/usr/share/wl18xx# ./ap_start.sh
Configuration file: /usr/share/wl18xx/hostapd.conf
[ 2705.496885] wlan0: deauthenticating from 48:f8:b3:d4:7e:68 by local choice (Reason: 3=DEAUTH_LEAVING)
wlan0: CTRL-EVENT-DISCONNECTED bssid=48:f8:b3:d4:7e:68 reason=3 [ 2705.562957] wlcore: down
locally_generated=1
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
[ 2705.657125] wlcore: down
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn't started

root@am335x-evm:/usr/share/wl18xx# wlan0: SME: Trying to authenticate with 48:f8:b3:d4:7e:68 (SSID=[ 2709.507153] wlan0: authenticate with 48:f8:b3:d4:7e:68
'eqware-5g' freq=5180 MHz)
[ 2709.523190] wlan0: send auth to 48:f8:b3:d4:7e:68 (try 1/3)
[ 2709.620897] wlan0: authenticated
wlan0: Trying to associate with 48:f8:b3:d4:7e:68 (SSID='eqware-5g' freq=5180 MHz)
[ 2709.636636] wlan0: associate with 48:f8:b3:d4:7e:68 (try 1/3)
[ 2709.665871] wlan0: RX AssocResp from 48:f8:b3:d4:7e:68 (capab=0x1011 status=0 aid=5)
[ 2709.704371] wlan0: associated
wlan0: Associated with 48:f8:b3:d4:7e:68
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlan0: WPA: Key negotiation completed with 48:f8:b3:d4:7e:68 [PTK=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to 48:f8:b3:d4:7e:68 completed [id=1 id_str=]
[ 2709.776642] wlcore: Association completed.

It appears to disconnect the station, then fails to start the AP, then re-connects the station.

I also tried to disable ELP according to processors.wiki.ti.com/.../WiLink_Troubleshooting

Ultimately, our desired configuration is 2 GHz station and 5 GHz AP with 8 connected stations, coexisting with bt audio at a low sample rate.

  • Hi Mark,

    Normally the ap role is started on wlan1 and the station one on wlan0.

    git.ti.com/.../ap_start.sh

    It seems like you are starting the AP role on wlan0 as well which causes the station interface (wlan0) to go down?

    Did you modify the ap_start.sh script?

    Best Regards,

    Eyal

  • My apologies. I had changed the device in ap_start.sh after some earlier trouble.

    I restored a clean rootfs and resumed my experiments. I had trouble getting an AP to work in the 5 GHz band:

    IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
    wlan0: IEEE 802.11 Hardware does not support configured channel

    I found that building crda and installing wireless-regdb_2016.06.10-r0_armv7ahf-neon.ipk and crda_3.18-r0_armv7ahf-neon.ipk resolved the problem.

    I now have a 5 GHz AP coexisting with a 2 GHz station connection.

    We will now do a variety of tests, measuring the available bandwidth in this configuration, as well as testing coexistence with bluetooth.