ath9k STA mode (compat 06-25) does not work
Hi all,
I'm using compat-wireless 0625 on AR7161 board(openwrt trunk r16574), one is set up as an AP, another is a STA, I also have a windows laptop with a USB airlink 11n adapter.
1. both STA and laptop can associate with AP, laptop can do iperf at 24mbps, AP's rcstat does report 130mbps:
104.0: 312 12 2 0
117.0: 17196 1716 318 7 130.0: 4484 1879 826 28
2. even though ath9k's STA can associate with ath9k's AP, it can never got a dhcp lease from the AP, manually assigned an IP to STA and it failed to ping, as expected.
on the AP:
root at OpenWrt:/mnt/ath9k/phy0# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br-lan no wireless extensions.
wlan0 IEEE 802.11abgn Mode:Master Frequency:2.432 GHz T
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid fr0
Tx excessive retries:0 Invalid misc:0 Missed beac0
bat0 no wireless extensions.
mon.wlan0 IEEE 802.11abgn Mode:Monitor Frequency:2.432 GHz
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid fr0
Tx excessive retries:0 Invalid misc:0 Missed beac0
# iw dev wlan0 station dump
Station 00:1d:6a:47:c4:10 (on wlan0)
inactive time: 140 ms
rx bytes: 63264505
rx packets: 44094
tx bytes: 1585189
tx packets: 21996
signal: -28 dBm
tx bitrate: 78.0 MBit/s MCS 26
Station 00:15:6d:84:11:80 (on wlan0) //---------this is for laptop
inactive time: 332370 ms
rx bytes: 626
rx packets: 10
tx bytes: 1006
tx packets: 11
signal: -71 dBm
tx bitrate: 24.0 MBit/s*****************
on the STA:
root at OpenWrt:/# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br-lan no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:"OpenWrt9k"
Mode:Managed Frequency:2.432 GHz Access Point: 00:15:6D:84:05:2A
Bit Rate=0 kb/s Tx-Power=27 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=37/70 Signal level=-73 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
bat0 no wireless extensions.
root at OpenWrt:/# iw dev wlan0 station dump
Station 00:15:6d:84:05:2a (on wlan0)
inactive time: 970 ms
rx bytes: 446115
rx packets: 3697
tx bytes: 39962
tx packets: 689
signal: -74 dBm
tx bitrate: 324.0 MBit/s MCS 28 40Mhz3. root at OpenWrt:/mnt/ath9k/phy0# uname -a
Linux OpenWrt 2.6.28.10 #1 Fri Jun 26 19:42:21 CDT 2009 mips un
4. Finally, on the STA board, a scan caused a kernel dump root at OpenWrt:/# iwlist wlan0 scan
Kernel bug detected[#1]:
Cpu 0
$ 0 : 00000000 802a0000 00000000 00000380
$ 4 : 0000001d 00000000 0000001c 0000001c
$ 8 : 0000001c fffd34e2 0000001c 00000000
$12 : 00000000 00000064 000000c0 00000000
$16 : 00000000 83ac2b80 82caba40 82c1de90
$20 : 82c44400 00000000 c0326628 839b8e64
$24 : 00000000 c02180e8
$28 : 82c1c000 82c1ddb0 00000000 c0311b48
Hi : 000008d4
Lo : fe510000
epc : c0311d18 0xc0311d18
Not tainted
ra : c0311b48 0xc0311b48
Status: 1000f403 KERNEL EXL IE
Cause : 10800024
PrId : 00019374 (MIPS 24Kc)
Modules linked in: gpio_buttons batman_adv nf_nat_tftp nf_conntrack_tftp nf_nat_iri
Process phy0 (pid: 482, threadinfo=82c1c000, task=839f1658, tls=00000000)
Stack : 83b909d4 83b38000 00000000 80089998 83b39514 c0300fbc 00004801 82caba40
839b8e64 83ac2b80 82caba40 82c1de90 83b910c8 00000000 839b8e64 00000000
00000000 c020e878 83b909d4 83b90200 839b8e64 82c1de28 839b8e64 83b90200
c021706c c02178a0 00000002 00156d84 839b8e64 82c1de90 83b90200 83b910c8
83ac2ec0 839b8e40 ff000000 00ff0000 00000000 81800964 83b38070 00000000
...
Call Trace:[<80089998>] 0x80089998
[<c0300fbc>] 0xc0300fbc
[<c020e878>] 0xc020e878
[<c021706c>] 0xc021706c
[<c02178a0>] 0xc02178a0
[<c0217b54>] 0xc0217b54
[<801b5b24>] 0x801b5b24
[<c0218088>] 0xc0218088
[<c0218070>] 0xc0218070
[<801b6678>] 0x801b6678
[<c02f05d0>] 0xc02f05d0
[<c0218154>] 0xc0218154
[<c0204738>] 0xc0204738
[<c02046cc>] 0xc02046cc
[<80067c70>] 0x80067c70
[<800952dc>] 0x800952dc
[<80095dc8>] 0x80095dc8
[<80067c70>] 0x80067c70
[<80099490>] 0x80099490
[<80095d1c>] 0x80095d1c
[<80099230>] 0x80099230
[<80099208>] 0x80099208
[<8006b238>] 0x8006b238
[<8006b228>] 0x8006b228Code: 30420001 10400004 30f500ff <0200000d> 080c4747 00000000 26f10008 10a000 Kernel panic - not syncing: Fatal exception in interrupt
Rebooting in 3 seconds..
Thanks!
xxiao