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.