pjl0505 发表于 2014-7-24 23:38:46

tq6410-sdio wifi 无法动态分配ip

根据帖子http://armbbs.net/forum.php?mod=viewthread&tid=14602&highlight=wpa%2B%2Bwifi,执行命令:wpa_supplicant-Dwext -iwlan0 -c/etc/wpa_supplicant.conf-dd& 是成功的,但是执行动态分配IP就不行:udhcpc -b -i wlan0   代码截图如下:
wpa_driver_wext_set_key: alg=2 key_idx=1 set_tx=0 seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 03 11 00 20 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b2 78 8f 54 9e 41 4d ad 00 4a 88 f7 cd 43 13 d4 00 00
WPA: Key negotiation completed with c0:61:18:f0:a8:cc
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to c0:61:18:f0:a8:cc completed (auth)
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: Supplicant port status: Authorized
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed successfully
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
EAPOL: startWhen --> 0
EAPOL: disable timer tick


# udhcpc -b -i wlan0
udhcpc (v1.18.5) started
Setting IP address 0.0.0.0 on wlan0
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
# ifconfig
lo      Link encap:Local Loopback
          inet addr:127.0.0.1Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNINGMTU:16436Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)TX bytes:0 (0.0 B)


wlan0   Link encap:EthernetHWaddr 00:27:13:ED:2A:DB
          inet6 addr: fe80::227:13ff:feed:2adb/64 Scope:Link
          UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:638 (638.0 B)TX bytes:1475 (1.4 KiB)


#


静态分配IP是可以的,能够连接上外网,截图如下:
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=1 set_tx=0 seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 03 11 00 20 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a1 37 06 7a b9 2d 16 40 1f 04 aa 37 a7 62 76 ec 00 00
WPA: Key negotiation completed with c0:61:18:f0:a8:cc
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to c0:61:18:f0:a8:cc completed (auth)
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: Supplicant port status: Authorized
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed successfully
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
EAPOL: startWhen --> 0
EAPOL: disable timer tick

# cat etc/resolv.conf
nameserver 219.233.241.166
nameserver 211.167.97.67
# ifconfig wlan0 192.168.1.22
# route add default gw 192.168.1.2
# route add default gw 192.168.1.1
# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=4.635 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=2.463 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss


这到底什么情况啊,恳请遇到这种问题的同仁不吝赐教!

天嵌_support1 发表于 2014-7-25 08:58:46

将开发板上/usr/share/udhcp目录改名为/usr/share/udhcpc 试试。

pjl0505 发表于 2014-7-25 13:58:42

将开发板上/usr/share/udhcp目录改名为/usr/share/udhcpc 试试。

昨天已经改过了,还是不行,真是奇怪了。。。
我那个udhcpc版本 会不会有问题?   udhcpc (v1.18.5) started

AAAgang 发表于 2017-4-19 23:57:29

-q啊,试试~ udhcpc -q -i wlan0
页: [1]
查看完整版本: tq6410-sdio wifi 无法动态分配ip