How to connect to WPA/WPA2 Wifi Network in CM-FX6 (Debian)

The default Wifi device name is mlan0 on the iMX6. We will bring this wifi link up.

> ip link show mlan0

> ip link set mlan0 up

Then check whether mlan0 is up.

> ip link show mlan0

You should see there is a UP in the text that you see.

To scan for wifi networks.

> iwlist scan

Keep a look out for the SSID name, this is the Wifi network name you want to connect to.

Create a passphrase to connect to the Wifi SSID.

> wpa_passphrase <wifiname> >> /etc/wpa_supplicant.conf

(type in the passphrase and press enter)

> cat /etc/wpa_supplicant.conf

You should see your passphrase in the conf file.

Run wpa_supplicant with the new conf file.

> wpa_supplicant -B -D wext -i mlan0 -c /etc/wpa_supplicant.conf

-B means run wpa_supplicant in the background.
-D specifies the wireless driver. wext is the generic driver.
-c specifies the path for the configuration file.

Obtain the IP address by DHCP.

> dhclient mlan0

> ip route show

You should see that mlan0 is an entry in the route table.

At this juncture, you are connected to the internet. Congratulations!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s