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: Enable the WIFI WPS in LInux on WL1831wifi module

Part Number: WL1831MOD


Tool/software: Linux

Hi all,

Now I want to enable WPS AP in linux in that WL1831wifi module.
Can you provide some ideas.

Thanks and Regards,
VinothS

  • Our WiFi apps expert will get back to you shortly.
  • Hi , Yes you can enable wps in AP mode on WiLink8 . Please consult ftp.netbsd.org/.../README-WPS

    Saurabh
  • Hi Saurabh,

    Thanks for your reply.

    I followed and already enable those configuration in that android.conf as well as hotspot.conf. But, i didn't get any response.
    So, provide some ideas.

    Regards,
    VinothS.
  • VinothS,
    Please explain how you are testing this along with error logs . On linux platform

    Saurabh
  • Hi Saurabh,

    Still now, we are try in that GUI only.
    But, We don't get any response.
    So, through command we are try for wps.

    I got the error while trying this command on command line interface(CLI)

    root@sabresd_6dq:/ # hostapd_cli wps_pbc
    Failed to connect to hostapd - wpa_ctrl_open: No such file or directory


    How to solve this.?

    Regards,
    VinothS,

  • VinothS,
    As per above command , hostadp_cli never connected to hostapd - hence wps was never tested .
    how do you know WiLink8 is running in AP mode ?
    pls share output of 'ifconfig'
    pls consult link : processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

    Saurabh
  • Hi Saurabh,

    Thank you for your reply.

    I followed the README-WPS file for try in CLI.
    After enable the hotspot i checked this one.


    root@sabresd_6dq:/ # ifconfig
    wlan0 Link encap:Ethernet HWaddr 5C:31:3E:E1:39:58
    inet addr:192.168.43.1 Bcast:192.168.43.255 Mask:255.255.255.0
    UP BROADCAST RUNNING 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

    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:0
    RX bytes:0 TX bytes:0

    can0 Link encap:UNSPEC
    UP RUNNING NOARP MTU:16 Metric:1
    RX packets:1 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:10
    RX bytes:8 TX bytes:0
    Interrupt:142




    Regards,

    VinothS,
  • Hi , I don't believe you are running WiLink8 in AP mode. pls run ap_start.sh as mentioned in this link : processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

    Thanks
    Saurabh
  • Hi Saurabh,

    This one used wpa_cli command for waiting server.

    But, in my case hostapd_cli command wait for client.

    I saw that user information when i try "hostapd_cli -?".

    root@sabresd_6dq:/ # hostapd_cli -?                                          

    hostapd_cli v2.5-devel-6.0.1

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

    usage: hostapd_cli [-p<path>] [-i<ifname>] [-hvB] [-a<path>] \

                      [-G<ping interval>] [command..]

    Options:

      -h           help (show this usage text)

      -v           shown version information

      -p<path>     path to find control sockets (default: /var/run/hostapd)

      -a<file>     run in daemon mode executing the action file based on events

                   from hostapd

      -B           run a daemon in the background

      -i<ifname>   Interface to listen on (default: first interface found in the

                   socket path)

    Commands:

      mib                  get MIB variables (dot1x, dot11, radius)

      sta <addr>           get MIB variables for one station

      all_sta              get MIB variables for all stations

      new_sta <addr>       add a new station

      deauthenticate <addr>  deauthenticate a station

      disassociate <addr>  disassociate a station

      sa_query <addr>      send SA Query to a station

      wps_pin <uuid> <pin> [timeout] [addr]  add WPS Enrollee PIN

      wps_check_pin <PIN>  verify PIN checksum

      wps_pbc              indicate button pushed to initiate PBC

      wps_cancel           cancel the pending WPS operation

      wps_ap_pin <cmd> [params..]  enable/disable AP PIN

      wps_config <SSID> <auth> <encr> <key>  configure AP

      wps_get_status       show current WPS status

      get_config           show current configuration

      help                 show this usage help

      interface [ifname]   show interfaces/select interface

      level <debug level>  change debug level

      license              show full hostapd_cli license

      quit                 exit hostapd_cli

    Means when i try "wps_pbc" command

    wpa_crtl_open no such file or directory.

    I have the doubt, i was set like that in "hostapd.conf" file.

    ctrl_interface = /var/run/hostapd

    How to solve this.?

    These are under README-WPS file.

    android.googlesource.com/.../README-WPS

    Thanks & Regards,

    VinothS,

  • Hi , Are you able to start WL8 in AP mode ? Can you pls specify the command you ran to start it in Access Point mode ?

    Saurabh
  • Hi,

    I was used these command.

    1. hostapd_cli

    2. hostapd_cli wps_pbc

    3. hostapd_cli wps_pin

    These are the commands for making AP(WPS server).

    Regards,

    VinothS.

  • Hi,

    I was used these command.

    1. hostapd_cli

    2. hostapd_cli wps_pbc

    3. hostapd_cli wps_pin

    These are the commands for making AP(WPS server).

    Regards,

    VinothS.
  • Hi ,
    As mentioned in previous responses - you need to start WL8 in AP mode first. To do so i shared wiki link : processors.wiki.ti.com/.../WiLink8_WLAN_Demo:_Linux

    cd /usr/share/wl18xx
    ./ap_start.sh

    Thanks,
    Saurabh