NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
OMAP Wireless Connectivity NLCP WLAN Station WPA Supplicant Configuration file
Contents
WLAN Station Configuration Scripts[edit]
The following section provides information how to configure the Station to connect to different WiFi network that supports arbitrary security modes.
The configuration will be performed using Terminal connected to the EVM serial port.
The following items will be covered:
- Connect to non secured WiFi network)
- Connect to secured WiFi network (WEP)
- Connect to secured WiFi network (WPA)
- Connect to secured WiFi network (WPA2)
Hardware Configuration[edit]
Following are configuration file content for personal environment Security mode settings.
Connect to non secured WiFi network[edit]
Move existing /etc/wpa_supplicant.conf to /etc/wpa_supplicant.conf.bak. Create new /etc/wpa_supplicant.conf with the following configuration, where
ssid is the name of the Access Point we are about to connect to:
ctrl_interface=/var/run/wpa_supplicant update_config=1 network={ key_mgmt=NONE ssid="ECS" #optional }
Run following command to connect:
root@am37x-evm:/usr/sbin# wpa_supplicant -d -Dnl80211 -c /etc/wpa_supplicant.conf -iwlan0 -B
note: Only one instance of "wpa_supplicant" run only in the system, therefor to modify the security first kiil the wpa_supplicant process and then call the "wpa_supplicant" with the changed configuration file.
Connect to secured WiFi network (WEP)[edit]
Move existing /etc/wpa_supplicant.conf to /etc/wpa_supplicant.conf.bak. Create new /etc/wpa_supplicant.conf with the following configuration, where
- ssid is the name of the Access Point we are about to connect to
- wep_key(0,1,2,3) is the pre shared key required by the Access Point we are about to connect to. Protocol WEP allows to define a number of possible keys.
ctrl_interface=/var/run/wpa_supplicant update_config=1 network={ ssid="Cisco" key_mgmt=NONE pairwise=NONE group=WEP40 auth_alg=OPEN wep_key0=1234567890 wep_key1=0000000000 wep_key2=0000000000 wep_key3=0000000000 }
Run the following commend to connec:
root@am37x-evm:/usr/sbin# wpa_supplicant -d -Dnl80211 -c /etc/wpa_supplicant.conf -iwlan0 -B
note: Only one instance of "wpa_supplicant" run only in the system, therefor to modify the security first kiil the wpa_supplicant process and then call the "wpa_supplicant" with the changed configuration file.
Connect to secured WiFi network (WPA)[edit]
Move existing /etc/wpa_supplicant.conf to /etc/wpa_supplicant.conf.bak. Create new /etc/wpa_supplicant.conf with the following configuration, where
- ssid is the name of the Access Point we are about to connect to
- psk is the pre shared key required by the Access Point we are about to connect to
ctrl_interface=/var/run/wpa_supplicant update_config=1 network={ ssid="Cisco" proto=WPA key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="1234567890" priority=2 }
Run the following commend to connect:
root@am37x-evm:/usr/sbin# wpa_supplicant -d -Dnl80211 -c /etc/wpa_supplicant.conf -iwlan0 -B
note: Only one instance of "wpa_supplicant" run only in the system, therefor to modify the security first kiil the wpa_supplicant process and then call the "wpa_supplicant" with the changed configuration file.
Connect to secured WiFi network (WPA2)[edit]
Move existing /etc/wpa_supplicant.conf to /etc/wpa_supplicant.conf.bak. Create new /etc/wpa_supplicant.conf with the following configuration, where
- ssid is the name of the Access Point we are about to connect to
- psk is the pre shared key required by the Access Point we are about to connect to
ctrl_interface=/var/run/wpa_supplicant update_config=1 network={ ssid="Cisco" proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="1234567890" priority=2 }
Run following command to connect:
root@am37x-evm:/usr/sbin# wpa_supplicant -d -Dnl80211 -c /etc/wpa_supplicant.conf -iwlan0 -B
note: Only one instance of "wpa_supplicant" run only in the system, therefor to modify the security first kiil the wpa_supplicant process and then call the "wpa_supplicant" with the changed configuration file.
HOME