打印

wifi问题

[复制链接]
4494|9
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
sinadz|  楼主 | 2013-2-28 18:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
wifi, TE, AC, se, ST
使用atheros的SDK编译出来,AR9331平台的,默认情况下wifi没有起来,我想让其起来,执行一下命令:
makeVAP ap AP24G 0:RF:8:11NGHT20

~ # makeVAP ap AP24G 0:RF:8:11NGHT20
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

br0       no wireless extensions.

Args: 1
asf: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 0.9.17.1 (AR9380, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.2.0_U5.508 (Atheros/multi-bss)
Boostrap clock 25MHz
ar9300RadioAttach: Need analog access recipe!!
Restoring Cal data from Flash
ath_get_caps[4735] rx chainmask mismatch actual 7 sc_chainmak 0
ath_get_caps[4710] tx chainmask mismatch actual 7 sc_chainmak 0
SC Callback Registration for wifi0
wifi0: Atheros 9380: mem=0xb8100000, irq=2
Creating ap for AP24G on
wlan_vap_create : enter. devhandle=0x80e7c2c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
wlan_vap_create : exit. devhandle=0x80e7c2c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
VAP device ath0 created
Added ath0 mode master
Configuring RF . . .

DES SSID SET=AP24G
ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
Invalid command : setVowExt
Invalid command : setKeySrchAlways
Invalid command : mcastenhance
Invalid command : acparams
Invalid command : acparams
Invalid command : set_vsp_enable
Interface doesn't accept private ioctl...
setPhyRestartWar (8BE0): Operation not permitted
Invalid command : setVowExtStats
Created ath0 mode ap for AP24G

这个时候执行ifconfig -a,已经看到加多了两个wifi接口:
~ # ifconfig -a
ath0      Link encap:Ethernet  HWaddr 00:02:03:04:05:06  
          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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

br0       Link encap:Ethernet  HWaddr 00:03:7F:FF:FF:FE  
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:54 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:6806 (6.6 KiB)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:03:7F:FF:FF:FF  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12763 (12.4 KiB)  TX bytes:0 (0.0 B)

eth1      Link encap:Ethernet  HWaddr 00:03:7F:FF:FF:FE  
          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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wifi0     Link encap:Ethernet  HWaddr 00:02:03:04:05:06  
          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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:2 Memory:b8100000-b811ffff

但是想让其中的wifi接口up起来,执行 ifconfig wifi0 up,系统就会重启:
~ # ifconfig wifi0 up


U-Boot 1.1.4 (Jan 11 2013 - 23:16:00)

AP121 (ar9331) U-boot

DRAM:  16 MB
Top of RAM usable for U-Boot at: 81000000
Reserving 138k for U-Boot at: 80fdc000
Reserving 192k for malloc() at: 80fac000
Reserving 44 Bytes for Board Info at: 80fabfd4
Reserving 36 Bytes for Global Data at: 80fabfb0
Reserving 128k for boot params() at: 80f8bfb0
Stack Pointer at: 80f8bf98
Now running in RAM - U-Boot at: 80fdc000
id read 0x100000ff
flash size 4194304, sector count = 64
Flash:  4 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7240_enet_initialize...
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
: cfg1 0x5 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
: cfg1 0xf cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
athrs26_reg_init_lan
ATHRS26: resetting s26
ATHRS26: s26 reset done
eth1 up
eth0, eth1
Hit any key to stop autoboot:  2

请问高手或者搞过这个的牛人 有没有遇到类似的问题?

相关帖子

沙发
txcy| | 2013-2-28 18:36 | 只看该作者
执行命令就会重启,估计代码跑飞了。你有全套的SDK就好办了,在调用轨迹上增加些调试信息,看看走到哪里重启的。有可能是你的wifi哪里没有初始化正确,或者空指针了,或者踩内存了。既然问题是必现的,一步一步定位就是了。

使用特权

评论回复
板凳
baidudz| | 2013-2-28 18:46 | 只看该作者
可能是wifi设备数据结构初始化有问题,看下ath_attach函数

使用特权

评论回复
地板
火箭球迷| | 2013-2-28 20:15 | 只看该作者
没太看明白

使用特权

评论回复
5
gxgclg| | 2013-2-28 20:21 | 只看该作者
真的是很难看懂

使用特权

评论回复
6
无冕之王| | 2013-2-28 20:31 | 只看该作者
wifi开发是现在的热门

使用特权

评论回复
7
smilingangel| | 2013-3-11 19:18 | 只看该作者
wifi的开发还是蛮有难度的,我这只有跟大家学习的分了啊

使用特权

评论回复
8
guoys516| | 2013-12-31 17:58 | 只看该作者
AR9331的sdk 474867268@qq.com

使用特权

评论回复
9
smilingangel| | 2014-1-21 22:16 | 只看该作者
这个我看的也不是很明白的啊。。。:L:L

使用特权

评论回复
10
comeon201208| | 2014-1-21 23:39 | 只看该作者
这个代码程序的看起来还是蛮复杂的啊:L

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

304

主题

2313

帖子

0

粉丝