Skip to contentSkip to conversation

ath9k/managed crashes when 'iw dev wlan0 scan' on AR71xx board

ath9k-devel austinxxh-ath9k at yahoo.com 1 participant 1 message Jun 5, 2009

lore
Share & tools
lore
#0 lore raw

I'm trying to use one openwrt/station to connect to another same openwrt/AP, both use ath9k. the AP mode looks fine, however when I try to enable the STA mode, specifically, when I run 'iw dev wlan0 station dump" the board crashes and reboots.

1. other than config /etc/config/wireless under openwrt, how can I use 'iw' to get an IP address from AP nearby?

2. why does 'iw dev wlan0 scan' crashes on STATION?

thanks,
xxiao

root at OpenWrt:/tmp# cat /etc/config/wireless
config wifi-device wlan0

        option type     mac80211
        option channel  5
        option hwmode   11g

option hwmode_11n 1
option ht_capab [HT40-][SHORT-GI-40][DSSS_CCK-40]

# REMOVE THIS LINE TO ENABLE WIFI:
#option disabled 1

config wifi-iface
option device wlan0
#option network lan
option mode sta
option ssid OpenWrt
option encryption none
root at OpenWrt:/# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11abgn ESSID:"OpenWrt"
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=49/70 Signal level=-61 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 get 00:15:6D:84:05:2A Station 00:15:6d:84:05:2a (on wlan0)

        inactive time:  19140 ms
        rx bytes:       629827
        rx packets:     5039
        tx bytes:       832
        tx packets:     17
        signal:         -61 dBm
        tx bitrate:     324.0 MBit/s MCS 28 40Mhz

root at OpenWrt:/tmp# iw dev wlan0 station dump
Station 00:15:6d:84:05:2a (on wlan0)

        inactive time:  51920 ms
        rx bytes:       955895
        rx packets:     7647
        tx bytes:       1135
        tx packets:     23
        signal:         -62 dBm
        tx bitrate:     324.0 MBit/s MCS 28 40Mhz
root at OpenWrt:/tmp# iw dev wlan0 scan
Kernel bug detected[#1]:
Cpu 0
$ 0   : 00000000 802c0000 00000000 00000380
$ 4   : 0000001d 00000000 0000001c 0000001c
$ 8   : 0000001c 00081588 0000001c 00000000
$12   : 00000000 00000064 83886868 00000000
$16   : 00000000 83b01380 82c79040 82c4de60
$20   : 82e13400 00000000 c02bdfd8 83ad7924
$24   : 00000000 c01ff124                  
$28   : 82c4c000 82c4dd80 00000000 c02a9e64
Hi    : 00000197
Lo    : 33333399
epc   : c02aa034 ath_rate_control_unregister+0x350/0x1920 [ath9k]
    Tainted: P          
ra    : c02a9e64 ath_rate_control_unregister+0x180/0x1920 [ath9k]
Status: 1000f403    KERNEL EXL IE 
Cause : 10800024
PrId  : 00019374 (MIPS 24Kc)
Modules linked in: ath_pci wlan_xauth wlan_wep wlan_tkip wlan_ccmp wlan_acl ath_rate_minstrel ath_hal(P) wli
Process phy0 (pid: 458, threadinfo=82c4c000, task=83816cb0, tls=00000000)
Stack : c02ad260 00000000 800ae26c 00000000 00000000 00000000 00004811 82c79040
        83ad7924 83b01380 82c79040 82c4de60 83bd90d4 00000000 00000000 00000001
        00000000 c01f3fec 83bd89b4 82c4de60 83ad7924 82c4ddf8 83ad7924 82c4de60
        c01fcf08 c01fd764 918414b4 00000000 83ad7924 82c79040 83bd81e0 83bd90d4
        83b016c0 83ad7900 ff000000 01ff0000 00000000 82c3f440 83ad7900 83ad7924
        ...
Call Trace:
[<c02aa034>] ath_rate_control_unregister+0x350/0x1920 [ath9k]
[<c02a9e64>] ath_rate_control_unregister+0x180/0x1920 [ath9k]
Code: 30420001  10400004  30f500ff <0200000d> 080aa80e  00000000  26f10008  10a00020  3c02c02b 
Kernel panic - not syncing: Fatal exception in interrupt

Rebooting in 3 seconds..+