Ticket #360 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Kernel panic when setting data rate on new 11a interface

Reported by: anonymous Assigned to: dyqith
Priority: major Milestone: version 0.9.1
Component: madwifi: other Version: trunk
Keywords: Cc:
Patch is attached: 0 Pending:

Description

Setting data rate right after loading kernel modules and configuring interface to 11a, but before interface is up, causes kernel panic.

This is what I do:

modprobe ath_pci autocreate=none countrycode=246 outdoor=1
insmod wlan_scan_sta
insmod wlan_scan_ap
wlanconfig wlan0 create wlandev wifi0 wlanmode sta
iwpriv wlan0 mode 11a
iwconfig wlan0 rate auto

The last iwconfig causes the panic. The simplest way of reproducing this seems to be:

modprobe ath_pci
iwpriv ath0 mode 11a
iwconfig ath0 rate auto

Both ways will get me the panic message:

ifmedia_set: no match for 0x2008e/0xffffffff
Kernel panic: ifmedia_set                   
 <0>Rebooting in 180 seconds..

This happens only with 11a, similar startup with mode 11b or 11g works just fine. If the interface is brought up before setting rate everything works fine.

Tested with r1405 and r1437. Test system was embedded PPC board with two AR5213-based Arcadyan MiniPCI cards and kernel 2.4.31.

Attachments

madwifi-rate-oops (95.3 kB) - added by svens on 02/10/06 16:15:11.
oops from my system

Change History

02/03/06 19:51:37 changed by mrenzmann

  • version set to trunk.

Please provide a full dump of the kernel oops message caused by the panic. DevDocs/KernelOops might be of help.

02/06/06 10:05:01 changed by anonymous

There's no oops, at least anything visible on serial console or remote syslogs, there's just panic. I browsed the code a little and there is a matching panic() call in net80211/if_media.c, so this appears to be a sort of controlled panic...

02/10/06 15:49:35 changed by svens

  • status changed from new to assigned.
  • owner set to svens.

02/10/06 16:15:11 changed by svens

  • attachment madwifi-rate-oops added.

oops from my system

05/20/06 08:09:34 changed by dyqith

Please see ticket:360 for a patch to fix this issue and report back.

Thanks.

05/20/06 14:52:29 changed by mentordy

Try #615 instead :)

Poor dyquith... losing his mind in his old age.

05/20/06 17:35:46 changed by dyqith

  • status changed from assigned to new.
  • owner changed from svens to dyqith.

Me lose mind. That's unpossible ;)

05/22/06 08:37:37 changed by anonymous

Patch from #615 seems to fix this. Tested with r1552.

05/26/06 00:02:00 changed by dyqith

  • status changed from new to assigned.

05/26/06 00:25:26 changed by dyqith

  • status changed from assigned to closed.
  • resolution set to fixed.

Merged patch in changeset:1604

Closing ticket.

06/19/06 09:14:04 changed by mrenzmann

  • milestone set to version 0.9.1.

Add/Change #360 (Kernel panic when setting data rate on new 11a interface)