Copyright 2017. All rights reserved. Advantech Co. Ltd.
Page 29
3.3.1
AP Mode
The example we use nmcli commands to create a hotspot:
User can setting SSID and PASSWORD to Wi-Fi software AP. The example SSID is “testap”,
and PASSWORD is ”qwertyqwerty” , Dial out port eth0_1 is used for the traffic to the
wireless network , NetworkManager will be auto forward to WLAN.
root@FWA-T011:~# nmcli dev wifi hotspot ifname wlan0 ssid "test" password
"testpassword"
Device 'wlan0' successfully activated with '22f042eb-e466-4f79-bd93-6ca85a704924'.
root@FWA-T011:~# nmcli c
NAME UUID TYPE DEVICE
Hotspot 22f042eb-e466-4f79-bd93-6ca85a704924 wifi wlan0
Wired connection 2 1fddbe45-11d8-3672-8993-f4cb1325ca83 ethernet eth0_1
……< only parts of the messages are shown >…..
root@FWA-T011:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 172.17.11.254 0.0.0.0 UG 0 0 0 eth0_1
default 172.17.11.254 0.0.0.0 UG 102 0 0 eth0_1
10.42.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
172.17.10.0 0.0.0.0 255.255.254.0 U 102 0 0 eth0_1
Now user can use a laptop or any Wi-Fi capable device to connect to this software AP to
establish a Wi-Fi connection. In our example, user’s platform shall get dynamic IP assigned if
making Wi-Fi connection is successful.
When use finished, user should be delete hotspot by this command:
root@FWA-T011:~# nmcli c delete "Hotspot"
Connection 'Hotspot' (22f042eb-e466-4f79-bd93-6ca85a704924) successfully deleted.
root@FWA-T011:~# nmcli c
NAME UUID TYPE DEVICE
Wired connection 2 1fddbe45-11d8-3672-8993-f4cb1325ca83 ethernet eth0_1
……< only parts of the messages are shown >…..
3.3.2
Station Mode
User can use FWA-T011-4CA1S as station to connect to the Access Point ,
For example, we use nmcli to connect AP,Linux should response with the following message
indicating software STA had been set up properly: