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.
Edit
/etc/wpa_supplicant/wpa_supplicant.conf
and add anetwork={…}
block to it.
Example:
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.
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.
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 updated