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.

Linux/WL1831MOD: WL1831 has AP Mod in WPS support ? or NOT ?

Part Number: WL1831MOD
Other Parts Discussed in Thread: WL1831

Tool/software: Linux

Hi All,

I Want to implement the WPS in AP mode for the Android Marshmallow.

Android source already having the WPS Client access.

I referred the following conversation in TI

https://e2e.ti.com/support/wireless_connectivity/wilink_wifi_bluetooth/f/307/t/603487

I have also verified the firmware file - TIInit_11.8.32.bts. I didnt get any info about WPS in AP mode.

I just want to confirm that whether the WL1831 chip will support WPS in AP mode ?

  • Hi ,
    Yes WiLink8 supports WPS in AP mode. Pls consult section 1.3 : www.ti.com/.../swru423a.pdf
    BTS file is for Bluetooth and not WiFi . FYI: We do our testing on Linux .

    Thanks,
    Saurabh
  • Hi Saurabh Narang,

    Thanks for the response.

    I am following this below link to enable WPS in AP mode.

    processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

    I just followed the README-WPS file for hostapd.conf Configuration

    While Running the ap_start.sh , I m getting the below log

    ap_start.sh  app/         
    root@sabresd_6dq:/system # ./ap_start.sh                                       
    wpa_supplicant state:
    hostapd state:
    loading driver
    insmod: failed to load /system/lib/modules/wlcore_sdio.ko: File exists
    setting regulatory domain
    not a valid ISO/IEC 3166-1 alpha2
    Special non-alpha2 usable entries:
            00      World Regulatory domain
    global
    country 00: DFS-UNSET
            (2402 - 2472 @ 40), (6, 20), (N/A)
            (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
            (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
            (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
            (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
            (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
            (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
            (57240 - 63720 @ 2160), (N/A, 0), (N/A)

    creating new interface
    wlcore: down
    loading hostapd
    init: no such service 'hostapd_bin'
    enable interface
    wlcore: PHY firmware version: Rev 8.2.0.0.232
    wlcore: firmware booted (Rev 8.9.0.0.48)
    IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    wlan0     Link encap:Ethernet  HWaddr 5C:31:3E:E1:2D:9F
              inet addr:192.168.43.1  Bcast:192.168.43.255  Mask:255.255.255.0
              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 TX bytes:0

    starting dhcp deamon
    root@sabresd_6dq:/system # ./ap_start.sh[53]: udhcpd: not found
    init: Untracked pid 2314 exited with status 127

     

    Help me to resolve this Issue.

  • Hi ,
    The instructions provided in the link above are for Linux OS . All instructions may not directly apply to Android. As I mentioned before, we do our testing on Linux . You may enable hotspot using Android GUI , make sure hostapd is running and then launch hostapd_cli to test wps pbc

    Saurabh
  • Hi Saurabh Narang,

    Thanks for reply.

    As per you said, I verified that the hostapd is running with TOP command

    Here is the log for that,

    2006 0 0% S 11 845516K 25672K bg bluetoot org.codeaurora.bluetooth

    2143 0 0% Z 1 0K 0K fg wifi hostapd

    107 1 0% S 1 0K 0K fg root mmcqd/3boot1

    2 0 0% S 1 0K 0K fg root kthreadd

    3 0 0% S 1 0K 0K fg root ksoftirqd/0

    4 0 0% S 1 0K 0K fg root kworker/0:0

    Then, If I lanch hostapd_cli , its not connecting

    root@sabresd_6dq:/ # hostapd_cli

    hostapd_cli v2.5-devel-6.0.1

    Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi> and contributors

    This software may be distributed under the terms of the BSD license.

    See README for more details.

    Could not connect to hostapd – re-trying

    Kindly help me to resolve this issue.

  • Hi ,
    You haven't mentioned the interface argument for hostapd_cli . please use 'hostapd_cli -i <interface>' where <interface> is hotspot/ap interface

    Thanks
    Saurabh
  • Hi Saurabh Narang,

    I  am getting the Same result by mentioning the Interface. Please find the below log.

    root@sabresd_6dq:/ # hostapd_cli -i wlan0
    hostapd_cli v2.5-devel-6.0.1
    Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi> and contributors

    This software may be distributed under the terms of the BSD license.
    See README for more details.


    Could not connect to hostapd - re-trying
  • Hi ,
    In this case you will need to debug this at your end since we don't see this issue on Linux . Pointers :
    - run netcfg and check if wlan0 is station or AP interface .
    - how did you confirm if AP/hostspot was running ok ?

    Thanks,
    Saurabh
  • Hi Saurabh,
    => In station and AP mode it shows only wlan0.
    => We establish connection with other device (connect from any phone) to confirm AP/hotspot working successfully.

    Is your testing completed on linux.?

    Regards,
    karthi
  • Karthi ,
    Did you try this with super user access ? enter 'su' and then enter 'hostapd_cli - i wlan0' .
    Yes, we do all our testing on linux

    Thanks
    Saurabh
  • Hi Saurabh,
    I'm using super user access only.
    root@sabresd_6dq:/ #

    Could you please make it fast on WPS testing and give me the procedure. We need to complete soon.

    Regards,
    karthi
  • Hi , We don't test it on Android . We don't see this issue on Linux and it is not related to WiLink8 . You will need to debug this at your end.

    Thanks
    Saurabh
  • Hi Saurabh,
    Can you give me the linux test procedure for following task:
    => How to turn on the Hotspot
    => How to run the WPS

    Can you give me the commands and respective result logs.


    Regards,
    Karthi
  • Hi ,
    On linux we run scripts to start AP mode . Details: processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

    snapshot below:

    root@am335x-evm:/usr/share/wl18xx# ./ap_start.sh
    adding wlan1 interface
    Configuration file: /usr/share/wl18xx/hostapd.conf
    WPS: ignore_broadcast_ssid configuration forced WPS to be disabled
    [245061.701927] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
    wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
    [245061.956408] cfg80211: Regulatory domain changed to country: US
    [245061.962414] cfg80211: DFS Master region: FCC
    [245061.966705] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [245061.981174] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
    [245061.989329] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (N/A)
    [245062.005081] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
    [245062.015226] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2300 mBm), (0 s)
    [245062.027139] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
    [245062.037767] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
    Using interface wlan1 with hwaddr de:ad:be:ef:00:10 and ssid "ringtest"
    [245062.073121] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
    wlan1: interface state COUNTRY_UPDATE->ENABLED
    wlan1: AP-ENABLED

    root@am335x-evm:/usr/share/wl18xx#
    root@am335x-evm:/usr/share/wl18xx# hostapd_cli -i wlan1
    hostapd_cli v2.6-devel-R8.7_SP1
    Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributors

    This software may be distributed under the terms of the BSD license.
    See README for more details.



    Interactive mode

    > >

    > >

    Thanks
    Saurabh
  • Hi ,

    wps  pbc command output below . Station connects successfully to WiLink8 Hotspot using  wps pbc. 

    root@am335x-evm:/usr/share/wl18xx# hostapd_cli -i wlan1

    hostapd_cli v2.6-devel-R8.7_SP1

    Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributors

    This software may be distributed under the terms of the BSD license.

    See README for more details.

    Interactive mode

    > > wps_pbc

    wlan1: WPS-PBC-ACTIVE

    <3>WPS-PBC-ACTIVE

    OK

    wlan1: STA 54:4a:16:38:37:93 IEEE 802.11: authenticated

    wlan1: STA 54:4a:16:38:37:93 IEEE 802.11: associated (aid 1)

    wlan1: CTRL-EVENT-EAP-STARTED 54:4a:16:38:37:93

    wlan1: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1

    wlan1: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=254

    <3>AP-STA-DISCONNECTED 54:4a:16:38:37:93

    <3>WPS-ENROLLEE-SEEN 54:4a:16:38:37:93 5d2b61f5-f663-5a39-8378-ba0654ec14dc 0-00000000-0 0x2388 4 1 [Sitara]

    <3>WPS-ENROLLEE-SEEN 54:4a:16:38:37:93 5d2b61f5-f663-5a39-8378-ba0654ec14dc 0-00000000-0 0x2388 4 1 [Sitara]

    <3>CTRL-EVENT-EAP-STARTED 54:4a:16:38:37:93

    <3>CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1

    <3>CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=254

    wlan1: WPS-REG-SUCCESS 54:4a:16:38:37:93 5d2b61f5-f663-5a39-8378-ba0654ec14dc

    wlan1: WPS-PBC-DISABLE

    wlan1: WPS-SUCCESS

    wlan1: CTRL-EVENT-EAP-FAILURE 54:4a:16:38:37:93

    wlan1: STA 54:4a:16:38:37:93 IEEE 802.1X: authentication failed - EAP type: 0 (unknown)

    wlan1: STA 54:4a:16:38:37:93 IEEE 802.1X: Supplicant used different EAP type: 254 (expanded)

    wlan1: STA 54:4a:16:38:37:93 IEEE 802.11: authenticated

    wlan1: STA 54:4a:16:38:37:93 IEEE 802.11: associated (aid 1)

    wlan1: AP-STA-CONNECTED 54:4a:16:38:37:93

    wlan1: STA 54:4a:16:38:37:93 WPA: pairwise key handshake completed (RSN)

    <3>WPS-REG-SUCCESS 54:4a:16:38:37:93 5d2b61f5-f663-5a39-8378-ba0654ec14dc

    <3>WPS-PBC-DISABLE

    <3>WPS-SUCCESS

    <3>CTRL-EVENT-EAP-FAILURE 54:4a:16:38:37:93

    <3>AP-STA-CONNECTED 54:4a:16:38:37:93

     


    Thanks 

    Saurabh

  • Hi Saurabh,
    Can you attach your ./ap_start.sh for my reference.


    Regards,
    Karthi
  • Hi ,
    For scripts you can clone git.ti.com/.../wl18xx-target-scripts and checkout branch sitara-scripts

    Thanks
    Saurabh
  • Hi Saurabh,

    Thank you for your replay,

    Can you provide the actual script in which you had done your testing

    I am not sure that my script is working properly


    Regards,
    Karthi