WiFi encryption support using WPA

cancel
Showing results for 
Search instead for 
Did you mean: 

WiFi encryption support using WPA

567 Views
Contributor III

Hi,

I have a question regarding the WPA in Linux for a imx6q board. e.g. Nitrogen6x.  Does any one know how to add code to support the WPA function in WiFi? Thanks advance.

Bill

Labels (4)
0 Kudos
4 Replies

17 Views
Contributor V

WPA should already be supported in linux. You need to edit the your /etc/wpa_supplicant.conf file in order to properly communicate with your wifi network. Look here for a sample wpa_supplicant.conf file:

Re: Embedded system friendly WiFi dongle?

The steps to take are:

1. Edit your /etc/wpa_supplicant.conf file

2. Insert usb wifi dongle (if you don't already have wifi on your board)

3. Type "ifconfig wlan0 up"

4. Type "wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 -Dwext". This will start the wpa_supplicant daemon and make it use your config file

5. Type "ifconfig wlan0 <ip_addr> netmask 255.255.255.0" where <ip_addr> is the ip address you want to assign to your wlan0 interface

test with a ping to another device on your network and if the above works, then you can edit your /etc/network/interfaces file to make the above steps permanent such that you don't have to do this on every bootup

17 Views
Contributor III

Thanks for your help. However, after Step 4 implemented, I got the message as below.

root@boundary ~$ wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supp
licant.conf                                                                    
wl1271: firmware booted (Rev 6.1.5.50.74)                                      
ioctl[SIOCSIWAUTH]: Operation not supported                                    
WEXT auth param 4 value 0x0 - root@boundary ~$

I wonder if you have an idea what "ioctl[SIOCSIWAUTH]: Operation not supported" means?

Thanks,

0 Kudos

17 Views
Senior Contributor IV

Bill

This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this

discussion, or create another discussion.
Thanks,
Yixing

0 Kudos

17 Views
Senior Contributor IV

Bill

Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help, please feel

free to reply with an update to this discussion.

Thanks,
Yixing

0 Kudos