linux2.6.12系统wpa_supplicant移植过程

转载自  wangyingscu

刚刚实现了wpa_supplicant的移植,遇到不少问题,记录一些

参考了厂家提供的代码和移植步骤,生成wpa_supplicant,再修改配置文件wpa_supplicant.conf如下

# WPA-PSK/TKIP

ctrl_interface=/var/run/wpa_supplicant

network={
 ssid="Tenda" //ap name
 key_mgmt=WPA-PSK
 proto=WPA
 pairwise=TKIP
 group=TKIP
 psk="12345678" //ap password
}

 

下载到开发板中,运行 wpa_supplicant -i rausb0 -c /etc/wpa_supplicant.conf -Dralink  -B

报错:

ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
不能用,考虑到加密类型是TKIP,而配置路由器时是AES,重新配置路由器

结果还是不能用,出现错误

ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
# MlmeAssocReqAction(): WPA/WPAPSK, Fill the ReqVarIEs with CipherTmp!
rausb0 (WE) : Wireless Event too big (262)

尝试ping网关,不能ping通,利用iwconfig工具进行配置

iwconfig rausb0 key 12345678 essid "Tenda"

iwconfig rausb0 ap auto

输入iwconfig rausb0 查看

# iwconfig rausb0
rausb0    RT73 WLAN  ESSID:"Tenda"
          Mode:Managed  Frequency=2.457 GHz  Access Point: C8:3A:35:55:C3:D8
          Bit Rate=1 Mb/s
          RTS thr:off   Fragment thr:off
          Encryption key:1234-5678-00   Security mode:open
          Link Quality=31/100  Signal level:-88 dBm  Noise level:-115 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Bit Rate=1 Mb/s,也ping不通网关,没连上。。。

考虑密码应该用ASCLL类型,使用认证的命令

#iwconfig rausb0 key s:12345678

其他步骤一样,还是连不上。。。。

于是想到可能是wpa_supplicant 运行出了问题,重新运行wpa_supplicant -i rausb0 -c /etc/wpa_supplicant.conf -Dralink,去掉-B(表示后台运行)

出现如下错误 

ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
# MlmeAssocReqAction(): WPA/WPAPSK, Fill the ReqVarIEs with CipherTmp!
rausb0 (WE) : Wireless Event too big (262)

Associated with 08:10:74:ab:82:46
CTRL-EVENT-EAP-STARTED EAP authentication started
EAP: buildIdentity: configuration was not available
Authentication with 08:10:74:ab:82:46 timed out.
ioctl[RT_PRIV_IOCTL] -- OID_802_11_SSID: Operation not supported
wpa_driver_ralink_get_associnfo: association success
Associated with 08:10:74:ab:82:46

提示配置文件不可用,百度谷歌查了资料加上语句

ctrl_interface_group=0
eapol_version=1
ap_scan=2
fast_reauth=1

依然有错

ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
ioctl[SIOCGIWAP]: Transport endpoint is not connected
# MlmeAssocReqAction(): WPA/WPAPSK, Fill the ReqVarIEs with CipherTmp!
rausb0 (WE) : Wireless Event too big (262)

说什么Wireless Event too big (262),不管,ping网关,居然ping通了,大喜。

你可能感兴趣的:(linux,Authentication,encryption,interface,路由器,Signal)