Connect Intel Edison to 802.11G or 802.11N Wireless

Thanks to Jeffery Tu for sharing the below solution to connecting Edison to 802.11G and 802.11N.

First, run:

configure_edison --wifi

Next, use the script from the PDF file: edison_wifi_331438001.pdf

Like this:


##
if [ $# != 2 ] ; then
echo "$0  "
exit
fi

wpa_cli -iwlan0 disconnect
wpa_cli -iwlan0 remove_network all
wpa_cli -iwlan0 add_network
wpa_cli -iwlan0 set_network 0 mode 0
wpa_cli -iwlan0 set_network 0 ssid \"$1\"
wpa_cli -iwlan0 set_network 0 aut h_alg OPEN
wpa_cli -iwlan0 set_network 0 key_mgmt WPA-PSK
wpa_cli -iwlan0 set_network 0 proto RSN
wpa_cli -iwlan0 set_network 0 psk \"$2\"
wpa_cli -iwlan0 set_network 0 scan_ssid 1
wpa_cli -iwlan0 select_network 0
wpa_cli -iwlan0 enable_network 0
wpa_cli -iwlan0 reassociate
wpa_cli -iwlan0 status