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

高通平台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
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值