FAQ: How do I check if I'm successfully connected to a WiFi network?


  • administrators

    For the Omega2, there's a few ways to check:

    1 - iwconfig

    Running iwconfig will print several lines, but it will include a section like this:

    apcli0    RTWIFI SoftAP  ESSID:"myNetworkName"
              Mode:Managed  Channel=11  Access Point: 00:25:9C:13:9B:6B
              Bit Rate=72 Mb/s
    

    This will indicate if the Omega is successfully connected to a network and if so, the network's SSID and the router's MAC address.

    In the above example output:

    • The Omega is successfully connected
    • Network's SSID is myNetworkName
    • The router's MAC address is 00:25:9C:13:9B:6B

    2 - ifconfig

    Running ifconfig will also print many lines, but there will be a section for apcli0 that looks something like this:

    apcli0    Link encap:Ethernet  HWaddr 42:A3:6B:00:F0:4F
              inet addr:192.168.1.103  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::40a3:6bff:fe00:f04f/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:882 errors:0 dropped:0 overruns:0 frame:0
              TX packets:304 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:133372 (130.2 KiB)  TX bytes:24022 (23.4 KiB)
    

    You can also run ifconfig apcli0 to just get this output.

    This will output data related to the Omega's connection with the WiFi network, here you'll be able to see if an IP address is assigned or not.
    Note that the statistics displayed here are not accurate.

    • If the inet addr part is not blank, then the Omega has successfully connected to the wifi network and has been given an IP address. In the case above, that IP address is 192.168.1.103.
    • If the inet addr part is blank, the Omega has not connected to the WiFi network.

    3 - ap_client logs

    Running logread | grep ap_client will list the output of the WiFi driver middleware. The output will let you know if the Omega is associated, and if so, the MAC address of the AP:

    Fri Oct 19 19:58:58 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
    Fri Oct 19 19:58:58 2018 kern.info ap_client: Scanning for networks...
    Fri Oct 19 19:59:00 2018 kern.info ap_client: network 0:  3 myNetwork 00:35:9d:13:9b:6d WPA2PSK (AES) -60
    Fri Oct 19 19:59:00 2018 kern.info ap_client: network 1:  6 notMyNetwork 00:26:50:9e:3e:09 WEP () -62
    Fri Oct 19 19:59:00 2018 kern.info ap_client: network 2:  9 NopeNotMe 8c:68:c8:a7:49:3c WPA2PSK (AES) -63
    Fri Oct 19 19:59:00 2018 kern.info ap_client: network 3:  3   fa:8f:ca:31:e1:64 NONE () -64
    Fri Oct 19 19:59:00 2018 kern.info ap_client: Found configured network, trying to associate (essid: myNetwork, bssid: 00:35:9d:13:9b:6d,)
    Fri Oct 19 19:59:01 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
    Fri Oct 19 19:59:02 2018 kern.info ap_client: 'apcli0' assoc: no, mac: 00:00:00:00:00:00
    Fri Oct 19 19:59:03 2018 kern.info ap_client: 'apcli0' assoc: yes, mac: 00:35:9d:13:9b:6d
    Fri Oct 19 19:59:03 2018 kern.info ap_client: Interface 'apcli0' successfully associated to network (3 checks)
    Fri Oct 19 19:59:11 2018 kern.info ap_client: 'apcli0' assoc: yes, mac: 00:35:9d:13:9b:6d
    Thu Nov 22 00:21:26 2018 kern.info ap_client: 'apcli0' assoc: yes, mac: 00:35:9d:13:9b:6d
    Thu Nov 22 00:21:26 2018 kern.info ap_client: 'apcli0' assoc: yes, mac: 00:35:9d:13:9b:6d
    Thu Nov 22 00:21:26 2018 kern.info ap_client: 'apcli0' assoc: yes, mac: 00:35:9d:13:9b:6d
    Thu Nov 22 00:21:26 2018 kern.info ap_client: 'apcli0' assoc: yes, mac: 00:35:9d:13:9b:6d
    Thu Nov 22 00:21:26 2018 kern.info ap_client: 'apcli0' assoc: yes, mac: 00:35:9d:13:9b:6d
    

    More Useful Resources

    A few more useful resources on the Omega's WiFi:

    Asking for Help

    If you're still having issues connecting to a WiFi network and would like to ask the community for help, running

    wifisetup debug
    

    will create a log file, /tmp/wifidebug.log, with information helpful for troubleshooting the issue.

    Share this file when posting on the community (of course, you can filter out sensitive information like network passwords).



Looks like your connection to Community was lost, please wait while we try to reconnect.