您的位置:首页 > 移动开发 > Android开发

android wifi调试总结 theros AR6K命令小结 android wifi debug

2013-08-30 10:36 190 查看
http://blog.csdn.net/linux_devices_driver/article/details/7225106

高通平台wifi命令:

首先inmod ar6000.ko(ics则有2个.ko cfg8*.ko和ath6kl.ko)

dmesg看log,有经验的一看log就知道wifi是否正常。

adb push iwconfig /system/bin

adb push iwlist /system/bin

查看无线网络:

iwconfig;

ifconfig wlan0 up;

iwlist wlan0 scan;

就可以看见无线网络列表了。

 

以下是转载:

modprobe <相应的无线网卡驱动> //你的udev如果正确识别的话,这步可以免去

iwconfig  //查看无线网卡设备名称,常见的无线网卡的标识可能为ra0、ath0、wlan0等,但是一般不会是eth0;

ifconfig <无线网卡名称>  up  //启动这个无线网卡 eg: ifconfig  ath0 up

iwlist ath0 scan | less  //查看可接入的无线热点

下面的不翻译了,自己看吧很简单的(其实下面这些步骤都可以用networkmanage这个图形化软件实现):

Specify the id of the wireless network with iwconfig <interface> essid "<youressid>". Or, if using WEP; iwconfig <interface> essid "<youressid>" key <yourwepkey>(give the essid (the 'network name') of the network in quotes), e.g.:

# iwconfig ath0 essid "linksys" key 0241baf34c

If your WEP key is ASCII, prefix with s:, e.g.: 

# iwconfig ath0 essid linksys key s:mywepkey

对于应用更为广泛的开放式WEP加密,应该是如下命令: 

# iwconfig ath0 essid linksys open key s:mywepkey

Request an IP address with dhcpcd <interface>. e.g.: 

# dhcpcd ath0

Ensure you can route: 

$ ping -c 3 www.google.com 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: