wifi @android:wpa_wlan0,Android调试wifi使用wpa_supplicant和wpa_cli总结

启动WLAN

(1)加载驱动

android系统需要先load driver。手动调试dirver ko的时候,先调用insmod命令加载指定的wifi驱动,注意有些wifi ko的加载后面需要添加参数。

再调用iwconfig可以看到驱动是否加载成功,如下,可以看到wlan0已经有了,则驱动加载成功。

(1)ifconfig -a

p2p0 Link encap:Ethernet HWaddr b2:72:bf:d9:55:9f Driver hif_pci

BROADCAST MULTICAST MTU:1500 Metric: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:3000

RX bytes:0 TX bytes:0

wlan0 Link encap:Ethernet HWaddr b0:72:bf:53:55:9f Driver hif_pci

UP BROADCAST MULTICAST MTU:1500 Metric: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:3000

RX bytes:0 TX bytes:0

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope: Host

UP LOOPBACK RUNNING MTU:65536 Metric: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:1

RX bytes:0 TX bytes:0

sit0 Link encap:IPv6-in-IPv4

NOARP MTU:1480 Metric:1

RX packets:0 errors:0 dropped:0 overr

你可能感兴趣的:(wifi)