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.

AM335x: WLAN Multirole problem

Other Parts Discussed in Thread: WL1271

Hello Respective,

I have wl1271 Wireless device on Sitara AM335x starter kit.

I have tried multirole feature by following below link.

http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_NLCP_Multi_Role_Configuration

but its not working in multirole.

I am able to set first mode successfully, that is I can connect wlan0 to my wifi internet router.

Now I have followed steps to start wlan1 as Access point using hostapd.

All steps are followed in the same sequence of reference url: http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_NLCP_Multi_Role_Configuration (section: Scenario 1)

In that sequence, when we reached to run hostapd to make access point and we are getting below messages from hostapd.

root@am335x-evm:~# hostapd -B /etc/hostapd.conf -P /var/run/hostapd.pid
Configuration file: /etc/hostapd.conf
[  115.780700] wl12xx: down
[  115.783966] wl12xx: open_count=1, add=0, current_fw=2
[  115.790588] wl12xx: Reading FW panic log
[  115.804840] wl12xx: Hardware recovery in progress. FW ver: Rev 6.5.5.0.21_2 pc: 0x0
[  115.812927] wl12xx: down
[  115.828308] ieee80211 phy0: Hardware restart was requested
[  115.835632] wl12xx: open_count=1, add=1, current_fw=0
[  115.840972] wl12xx: state: 0
[  116.309631] wl12xx: firmware booted (Rev 6.3.8.0.111_1)
[  116.315093] wl12xx: Driver version: R5_00_18
[  116.330322] wl12xx: open_count=1, add=1, current_fw=1
[  116.335601] wl12xx: Reading FW panic log
[  116.341094] cfg80211: Calling CRDA for country: US
[  116.348693] wl12xx: Hardware recovery in progress. FW ver: Rev 6.3.8.0.111_1 pc: 0x0
[  116.356842] wl12xx: down
[  116.367004] ieee80211 phy0: Hardware restart was requested
[  116.372772] wl12xx: open_count=1, add=1, current_fw=0
[  116.378051] wl12xx: state: 0
[  116.829528] wl12xx: firmware booted (Rev 6.5.5.0.21_2)
[  116.834899] wl12xx: Driver version: R5_00_18
[  116.851196] wl12xx: ERROR beacon info change failed: -22
[  116.857910] wl12xx: open_count=1, add=1, current_fw=2
[  116.863189] wl12xx: state: 1
[  116.936614] wl12xx: Association completed.
[  116.959960] wl12xx: ERROR beacon info change failed: -22
Could not set channel for kernel driver
wlan1: Unable to setup interface.
rmdir[ctrl_interface[  116.975616] cfg80211: Regulatory domain changed to country: US
]: No such file [  116.982025] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
or directory
[  116.992095] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[  117.001556] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[  117.009826] cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  117.018096] cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  117.026367] cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  117.034606] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[  117.045257] wl12xx: down
[  117.053771] wl12xx: open_count=1, add=0, current_fw=2
[  117.063018] wl12xx: Reading FW panic log
root@am335x-evm:~# [  117.077545] wl12xx: Hardware recovery in progress. FW ver: Rev 6.5.5.0.21_2 pc: 0x0
[  117.085540] wl12xx: down
[  117.100708] ieee80211 phy0: Hardware restart was requested
[  117.107635] wl12xx: open_count=0, add=1, current_fw=0
[  117.112884] wl12xx: state: 0
[  117.579437] wl12xx: firmware booted (Rev 6.3.8.0.111_1)
[  117.584899] wl12xx: Driver version: R5_00_18
[  117.656616] wl12xx: Association completed.

Please help us to verify multiple role feature of wl1271 module, your inputs will help us to get feasibility of wl1271 module.

Thanks,

Girish

  • Hi Girish,

    It appears that your driver is out of date. Downloading the latest SDK should solve the problem.

  • Hi Victor Lin,

    Thanks for quick answer,

    I tried with new sdk ti-sdk-am335x-evm-06.00.00.00.

    Now the Station mode Asscociation is completed in single shot, but when we try for making AP then it throws error

    The logs are below

    root@am335x-evm:~# ifconfig eth0 down


    root@am335x-evm:~# ifconfig wlan0 10.99.14.26 netmask 255.255.255.0 up


    root@am335x-evm:~# iw wlan0 interface add wlan1 type managed            

                                                        
    root@am335x-evm:~# ifconfig wlan1 10.4.30.34 netmask 255.255.255.0 up
    [  155.872894] wl12xx: state: 2


    0 -B@am335x-evm:~# wpa_supplicant -d -Dnl80211 -c/etc/wpa_supplicant.conf -iwlan0 -B
    wpa_supplicant v2.0-devel-R8.xx_Build-313
    random: Trying to read entropy from /dev/random
    Successfully initialized wpa_supplicant
    Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
    Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
    Reading configuration file '/etc/wpa_supplicant.conf'
    ctrl_interface='/var/run/wpa_supplicant'
    update_config=1
    wps_cred_processing=2
    Priority group 0
       id=0 ssid='Mylan_AWU'
       id=1 ssid='DIRECT-jI'
       id=2 ssid='DIRECT-lW'
       id=3 ssid='DIRECT-aQ'
       id=4 ssid='DIRECT-s2'
    nl80211: interface wlan0 in phy phy2
    rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
    nl80211: Set mode ifindex 6 iftype 2 (STATION)
    nl80211: Subscribe to mgmt frames with non-AP handle 0xf1c80
    nl80211: Register frame type=0xd0 nl_handle=0xf1c80
    nl80211: Register frame match - hexdump(len=2): 04 0a
    nl80211: Register frame type=0xd0 nl_handle=0xf1c80
    nl80211: Register frame match - hexdump(len=2): 04 0b
    nl80211: Register frame type=0xd0 nl_handle=0xf1c80
    nl80211: Register frame match - hexdump(len=2): 04 0c
    nl80211: Register frame type=0xd0 nl_handle=0xf1c80
    nl80211: Register frame match - hexdump(len=2): 04 0d
    nl80211: Register frame type=0xd0 nl_handle=0xf1c80
    nl80211: Register frame match - hexdump(len=6): 04 09 50 6f 9a 09
    nl80211: Register frame type=0xd0 nl_handle=0xf1c80
    nl80211: Register frame match - hexdump(len=5): 7f 50 6f 9a 09
    nl80211: Register frame type=0xd0 nl_handle=0xf1c80
    nl80211: Register frame match - hexdump(len=1): 06
    nl80211: Register frame type=0xd0 nl_handle=0xf1c80
    nl80211: Register frame match - hexdump(len=2): 0a 07
    netlink: Operstate: linkmode=1, operstate=5
    nl80211: Using driver-based off-channel TX
    nl80211: Supports Probe Response offload in AP mode
    nl80211: driver param='(null)'
    nl80211: Regulatory information - country=00
    nl80211: 2402-2472 @ 40 MHz
    nl80211: 2457-2482 @ 20 MHz
    nl80211: 2474-2494 @ 20 MHz
    nl80211: 5170-5250 @ 40 MHz
    nl80211: 5735-5835 @ 40 MHz
    wlan0: Own MAC address: 00:18:32:ba:a4:90
    wpa_driver_nl80211_set_key: ifindex=6 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=6 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=6 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
    wpa_driver_nl80211_set_key: ifindex=6 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
    wlan0: RSN: flushing PMKID list in the driver
    nl80211: Flush PMKIDs
    WPS: Set UUID for interface wlan0
    WPS: UUID based on MAC address - hexdump(len=16): e6 75 6e 5b 96 e5 57 cf 83 e5 28 a5 c4 de 45 a7
    EAPOL: SUPP_PAE entering state DISCONNECTED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: KEY_RX entering state NO_KEY_RECEIVE
    EAPOL: SUPP_BE entering state INITIALIZE
    EAP: EAP entering state DISABLED
    EAPOL: Supplicant port status: Unauthorized
    EAPOL: Supplicant port status: Unauthorized
    Using existing control interface directory.
    P2P: Own listen channel: 6
    P2P: Random operating channel: 81:11
    P2P: Add operating class 81
    P2P: Channels - hexdump(len=11): 01 02 03 04 05 06 07 08 09 0a 0b
    wlan0: Added interface wlan0
    wlan0: State: DISCONNECTED -> DISCONNECTED
    wpa_driver_nl80211_set_operstate: operstate 0->0 (DORMANT)
    netlink: Operstate: linkmode=-1, operstate=5
    Daemonize..
    root@am335x-evm:~# [  221.344635] wl12xx: Association completed.

    root@am335x-evm:~# hostapd -B /etc/hostapd.conf -P /var/run/hostapd.pid
    Configuration file: /etc/hostapd.conf
    [  262.165924] wl12xx: removing interface 00:18:32:ba:a4:91
    [  262.174713] wl12xx: state: 2
    Could not set channel for kernel[  262.191009] wl12xx: removing interface 00:18:32:ba:a4:91
     driver
    wlan1: Unable to setup interface.
    root@am335x-evm:~#

    root@am335x-evm:~# iw wlan0 link
    Connected to 28:c6:8e:3f:44:14 (on wlan0)
            SSID: My_Nw
            freq: 2417
            RX: 132824 bytes (912 packets)
            TX: 1024 bytes (13 packets)
            signal: -73 dBm
            tx bitrate: 1.0 MBit/s

            bss flags:      short-preamble short-slot-time
            dtim period:    1
            beacon int:     100
    root@am335x-evm:~#

    root@am335x-evm:~# udhcpc -i wlan0
    udhcpc (v1.20.2) started
    Sending discover...
    Sending select for 10.99.14.182...
    Lease of 10.99.14.182 obtained, lease time 1209600
    /etc/udhcpc.d/50default: Adding DNS 192.168.6.50
    /etc/udhcpc.d/50default: Adding DNS 10.102.1.122
    root@am335x-evm:~#

    So what i do next

    Regards

    Girish

  • Girish,

    Can you post the hostapd.conf file? The default softAP interface used in the SDK is wlan0, which interferes with your wlan0, which is already set to STA mode.

  • Hi Victor Lin,

    Please find attached 7167.hostapd.cfg hostapd.conf as you asked.

    Today, we have tried to check multirole (Station + P2P). Here also same issue, not able to perform multi role.

    Steps Performed on EVM1:

    MAC EVM1: wlan0 00:18:32:ba:a4:90 and wlan1 00:18:32:ba:a4:91

    MAC EVM2: 00:01:33:88:44:74

    1. Connected to station using WPA UI default application. 

    2. Disabled  power saver mode by -> iw wlan0 set power_save off

    Started continues ping for this interface by Ubuntu host machine to know connectivity while processing below steps.

    3. Started wlan1 in managed mode by -> iw wlan0 interface add wlan1 type managed 

    4. Set wlan1 IP by ->  ifconfig wlan1 192.168.3.3 up

    5. Started wpa supplcant for P2P -> wpa_supplicant -d -Dnl80211 -c/etc/p2p.conf -iwlan1 -B

    Attached 2275.evm1_p2p.cfg

    Up to here steps are repeated for EVM2 on wlan0 with different p2p.conf. Attached 5658.evm2_p2p.cfg.

    6. Started wpa_cli (On EVM1, I got attached

    root@am335x-evm:~# wpa_cli 
    wpa_cli v2.0-devel-R8.xx_Build-313
    Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> and contributors
    
    This software may be distributed under the terms of the BSD license.
    See README for more details.
    
    
    Selected interface 'wlan1'
    
    Interactive mode
    
    > [ 2431.372314] wl12xx: removing interface 00:18:32:ba:a4:91
    [ 2431.377868] wl12xx: removing interface 00:18:32:ba:a4:90
    [ 2431.386108] ieee80211 phy2: Hardware restart was requested
    [ 2431.392242] wl12xx: state: 0
    [ 2431.863800] wl12xx: firmware booted (Rev 6.3.10.0.135)
    [ 2431.876007] wl12xx: state: 2
    [ 2431.930908] wl12xx: Association completed.
    [ 2431.953948] wl12xx: ERROR no active RX BA session on tid: 0
    
    
     output)

    7. in wpa_cli:  executed  commands: p2p_find, p2p_peers, here We are able to get other EVM MAC address on both EVM.  (Output logs on EVM1 Attached

    root@am335x-evm:~# wpa_cli 
    wpa_cli v2.0-devel-R8.xx_Build-313
    Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> and contributors
    
    This software may be distributed under the terms of the BSD license.
    See README for more details.
    
    
    Selected interface 'wlan1'
    
    Interactive mode
    
    > [ 2431.372314] wl12xx: removing interface 00:18:32:ba:a4:91
    [ 2431.377868] wl12xx: removing interface 00:18:32:ba:a4:90
    [ 2431.386108] ieee80211 phy2: Hardware restart was requested
    [ 2431.392242] wl12xx: state: 0
    [ 2431.863800] wl12xx: firmware booted (Rev 6.3.10.0.135)
    [ 2431.876007] wl12xx: state: 2
    [ 2431.930908] wl12xx: Association completed.
    [ 2431.953948] wl12xx: ERROR no active RX BA session on tid: 0
    
    
    )

    8. Now tried to connect other EVM1 inside wpa_cli by -> p2p_connect 00:01:33:88:44:74 pbc auth go_intent=7

    Attached output log of above command at EVM1:

    > p2p_connect 00:01:33:88:44:74 pbc auth go_intent=7
    OK
    > [ 2548.490844] wl12xx: WARNING Unable to flush all TX buffers, timed out (timeout 500 ms
    [ 2557.500854] wl12xx: WARNING Unable to flush all TX buffers, timed out (timeout 500 ms
    [ 2558.180847] wl12xx: WARNING Unable to flush all TX buffers, timed out (timeout 500 ms
    <3>P2P-FIND-STOPPED 
    <3>P2P-GO-NEG-SUCCESS 
    [ 2562.572692] wl12xx: removing interface 00:18:32:ba:a4:91
    [ 2562.591339] wl12xx: state: 2
    <3>Failed to start AP functionality
    
    <3>P2P-GROUP-FORMATION-FAILURE 
    <3>P2P-GROUP-REMOVED wlan1 GO
    
    > > 
    > 
    > 
    > 
    <5>P2P: Expiring old peer entry 00:01:33:88:44:74
    <3>P2P-DEVICE-LOST p2p_dev_addr=00:01:33:88:44:74
    
    > > 
    
    
     

    9. On other board EVM2, p2p_connect executed -> p2p_connect 00:18:32:ba:a4:91 pbc

    Output log of above command execution at EVM2 is attached here 

    > 
    > p2p_connect 00:18:32:ba:a4:91 pbc
    OK
    <3>P2P-GO-NEG-SUCCESS 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>CTRL-EVENT-SCAN-RESULTS 
    <3>WPS-AP-AVAILABLE 
    <3>P2P-GROUP-FORMATION-FAILURE 
    <3>P2P-GROUP-REMOVED wlan0 client
    <3>CTRL-EVENT-SCAN-RESULTS 
    
    <3>WPS-TIMEOUT Requested operation timed out
    <3>P2P-DEVICE-LOST p2p_dev_addr=00:18:32:ba:a4:91
    
    
    


    Conclusion: 

    We strickly have followed the steps given on OMAP wiki but in that, we are not able to connect wifi with station every time, where else from UI application its get connected easily.

    Secondly, we failed to test multirole (Station+AP) or (Station+P2P) by following wiki page steps, please refer above steps and its logs.

    P2P in single role working perfectly, but in multirole its not working as expected.


    Regards

    Girish

  • Hi Girish ,

    Have you got any solution of above problem . I am also stuck at the same point. Please help if you have found any workaround.

    Regards

    Bharat

  • Hi Bharat,

    Can you tell me what driver/firmware versions you are using?

    Regards,
    Gigi Joseph.