#426: system crash when creating wap in wds mode
----------------------------+-----------------------------------------------
Reporter: anonymous | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: madwifi: other | Version: trunk
Keywords: wds 11a | Patch_attached: 0
----------------------------+-----------------------------------------------
When trying to create a vap in wds mode, I get kernel panic.
I can reproduce the Oops when created, deleted and created vap once again.
Also this is only applicapable when the mode is set to 1 (11a).
Following is the command sequence:
{{{
ap:~# wlanconfig ath1 create wlandev wifi1 wlanmode wds
unable to load wlan_scan_wds
ath1
ap:~# iwpriv ath1 mode 1
ap:~# ifconfig ath1 up
rix 255 (0) bad ratekbps 0 mode 2
<the same message repeats for ~80 times..>
rix 255 (0) bad ratekbps 0 mode 2
ap:~#
}}}
at this point the interface comes up and the system doesn't crash. Next I
try to destroy the interface and create it once again:
{{{
ap:~# wlanconfig ath1 destroy
ap:~# wlanconfig ath1 create wlandev wifi1 wlanmode wds
unable to load wlan_scan_wds
ath1
ap:~# iwpriv ath1 mode 1
rix 255 (0) bad ratekbps 0 mode 2
<once again the previous message is repeated many times>
rix 255 (0) bad ratekbps 0 mode 2
fixed rate -241140 not in rate set------------[ cut here ]------------
kernel BUG at <bad filename>:22621!
invalid operand: 0000 [#1]
PREEMPT
Modules linked in: tun sc1200 scx200 natsemi crc32 dm_mod scx200_acb lm77
i2c_core wd1100 wlan_acl ath_pci ath_rate_sample wlan ath_hal macphy
CPU: 0
EIP: 0060:[<c88090df>] Tainted: P VLI
EFLAGS: 00010282 (2.6.15-custom)
EIP is at ath_rate_ctl_reset+0x19f/0x383 [ath_rate_sample]
eax: 00000025 ebx: ffffffff ecx: c6edbdd4 edx: c88094b8
esi: c6e1a2e0 edi: c6e1a000 ebp: c6df3260 esp: c6edbdd0
ds: 007b es: 007b ss: 0068
Process ifconfig (pid: 1579, threadinfo=c6eda000 task=c7e90ab0)
Stack: c88094b8 fffc520c 00000000 00000000 000004ec 00000008 c887ab20
c7876260
c6df3260 c6e1a000 c7876260 c7876260 c883712d c7876260 c6e1a000
00000001
c7876260 c6d58260 c6d588ec c6d58260 c88369ea c6e1a000 00000001
c7876000
Call Trace:
[<c883712d>] ath_newassoc+0x21/0x89 [ath_pci]
[<c88369ea>] ath_newstate+0x3ec/0x5e0 [ath_pci]
[<c011b7dc>] notifier_call_chain+0x1c/0x33
[<c888d45d>] ieee80211_new_state+0x26/0x38 [wlan]
[<c888d0e5>] ieee80211_init+0xc2/0xcc [wlan]
[<c888d0fa>] ieee80211_open+0xb/0xe [wlan]
[<c01ed6f1>] dev_open+0x30/0x66
[<c01ee79a>] dev_change_flags+0x4a/0xee
[<c0223891>] devinet_ioctl+0x266/0x4d7
[<c0225500>] inet_ioctl+0x45/0x6c
[<c01e60e7>] sock_ioctl+0x1bf/0x1ca
[<c0150f98>] do_ioctl+0x28/0x66
[<c0151253>] vfs_ioctl+0x17a/0x188
[<c015128c>] sys_ioctl+0x2b/0x47
[<c0102679>] syscall_call+0x7/0xb
Code: 7f 39 d0 74 12 4b 78 13 0f b6 84 1f ae 01 00 00 83 e0 7f 39 d0 75 ee
85 db 79 14 ff b5 f4 02 00 00 68 b8 94 80 c8 e8 a6 83 90 f7 <0f> 0b 5d 58
89 1e 89 9f dc 01 00 00
<0>Kernel panic - not syncing: Fatal exception in interrupt
}}}
my system is:
PcEngines WRAP .1E
Atheros 5212 model: CM9
supported modes:
{{{
wifi1: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi1: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi1: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps
24Mbps 36
Mbps 48Mbps 54Mbps
wifi1: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi1: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi1: H/W encryption support: WEP AES AES_CCM TKIP
wifi1: mac 5.9 phy 4.3 radio 3.6
wifi1: Use hw queue 1 for WME_AC_BE traffic
wifi1: Use hw queue 0 for WME_AC_BK traffic
wifi1: Use hw queue 2 for WME_AC_VI traffic
wifi1: Use hw queue 3 for WME_AC_VO traffic
wifi1: Use hw queue 8 for CAB traffic
wifi1: Use hw queue 9 for beacons
wifi1: Atheros 5212: mem=0x800c0000, irq=9
}}}
--
Ticket URL: <http://madwifi.org/ticket/426>
MadWifi <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity