Docs
Search…
Wifi on the Antsle Nano
Setting up WiFi on the nano works and allows you to use the connection on a system level. However, it does not work as Interface in antMan, i.e. cannot be used to configure a bridged NIC. Since WiFi is generally less reliable and slower than Ethernet, it is generally not advised to use it.
You can easily configure a WiFi connection on the Antsle Nano using wpa_supplicant, which should be pre-installed on your Antsle Nano, follow the steps below on the command line.
    1.
    Edit /etc/wpa_supplicant/wpa_supplicant.conf and add a network={…} block to it.
Example:
1
ctrl_interface=/var/run/wpa_supplicant
2
ctrl_interface_group=wheel
3
network={
4
ssid="MyNetwork"
5
scan_ssid=1
6
key_mgmt=WPA-PSK
7
psk="topsecret"
8
}
Copied!
Field
Description
ssid
Network name (as announced by the access point). An ASCII or hex string enclosed in quotation marks.
ssid_scan
SSID scan technique; 0 (default) or 1. Technique 0 scans for the SSID using a broadcast Probe Request frame while 1 uses a directed Probe Request frame. Access points that cloak themselves by not broadcasting their SSID require technique 1, but beware that this scheme can cause scanning to take longer to complete.
key_mgmt
List of acceptable key management protocols; one or more of:
WPA-PSK (WPA pre-shared key), WPA-EAP (WPA using EAP
authentication), IEEE8021X (IEEE 802.1x using EAP authentication
and, optionally, dynamically generated WEP keys), NONE (plaintext
or static WEP keys). If not set this defaults to "WPA-PSK
WPA-EAP".
psk
WPA preshared key used in WPA-PSK mode. The key is specified as 64 hex digits or as an 8-63 character ASCII passphrase. ASCII passphrases are converted to a 256-bit key using the network SSID by the wpa_passphrase utility.
2. Edit /etc/sysconfig/wpa_supplicant to make sure you add -iwlan0 to specify the correct interface.
1
# Use the flag "-i" before each of your interfaces, like so:
2
# INTERFACES="-ieth1 -iwlan0"
3
INTERFACES="-iwlan0"
4
# Use the flag "-D" before each driver, like so:
5
# DRIVERS="-Dwext"
6
DRIVERS=""
7
# Other arguments
8
# -u Enable the D-Bus interface (required for use with NetworkManager)
9
# -f Log to /var/log/wpa_supplicant.log
10
# -P Write pid file to /var/run/wpa_supplicant.pid
11
# required to return proper codes by init scripts (e.g. double "start" action)
12
# -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
13
OTHER_ARGS="-P /var/run/wpa_supplicant.pid"
Copied!
The third line INTERFACES="-iwlan0" is the one that needs to be updated. If it is commented, uncomment that line.
3. Restart the service by running systemctl restart wpa_supplicant.service .
4. Run wpa_cli -i wlan0 to start the wpa_supplicant cli in interactive mode.
5. Run interface wlan0 in the wpa_cli prompt.
6. Wait a few seconds and check the status by running status at the wpa_cli prompt. You should see the connection, like below.
1
> status
2
bssid=58:b6:33:7b:0c:6c
3
freq=5600
4
ssid=MyNetwork
5
id=0
6
mode=station
7
pairwise_cipher=CCMP
8
group_cipher=CCMP
9
key_mgmt=WPA2-PSK
10
wpa_state=COMPLETED
11
p2p_device_address=06:26:15:88:c9:22
12
address=c2:11:c6:b8:6e:9d
13
uuid=ca4813d9-409d-5033-8307-28cbc1b82b34
Copied!
7. Type q to quit wpa_cli .
You can now use the wlan0 interface!
For more information on wpa_supplicant, please refer to the manpage here.
Last modified 7mo ago
Copy link