How to configure WiFi on BB-Air
1. Attach a WiFi antenna.
2. Scan for wireless access points.
3. Remove /etc/wpa_supplicant/wpa_supplicant.conf
4. Configure wpa_supplicant.conf to include your WiFi router settings. You can use the wpa_passphrase command to write your router SSID and password into wpa_supplicant.conf.
wpa_passphrase "SSID" "PASSWORD" >> /etc/wpa_supplicant/wpa_supplicant.conf
wpa_passphrase yourAP yourPASSWORD >> /etc/wpa_supplicant/wpa_supplicant.conf
5. Restart wlan
After this step, you can run ifconfig wlan0 to check if an IP address has been assigned.