net80211+atheros changes

Sam Leffler sam at errno.com
Fri Oct 1 14:52:15 PDT 2004


On Friday 01 October 2004 09:04 am, Hannes Mehnert wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Sam,
>
> On Fri, Aug 20, 2004 at 02:12:15PM -0700, Sam Leffler wrote:
> > http://www.freebsd.org/~sam/net80211+ath-20040818.tgz has a first cut at
> > back-merging the work I've done in Linux to FreeBSD.  These changes
> > update the 802.11 support and all the drivers that use it.  The patch
> > also brings in the latest version of the Atheros hal.
>
> I have the following problem with your patch:
>  To change my atheros 5212 from hostap to managed mode, I need to unload
> and reload if_ath.
> Sometimes kldload if_ath doesn't create an ath0 device. I see the
> following in messages:
> localhost kernel: ath0: <Atheros 5212> mem
> 0xc0210000-0xc021ffff irq 11 at device 2.0 on pci2
> localhost kernel: ath0: failed to allocate descriptors: 12
> localhost kernel: device_attach: ath0 attach returned 12
>
> After a reboot, kldload works fine again.
>
> (a working kldload would be:
> localhost kernel: ath0: <Atheros 5212> mem 0xc0210000-0xc021ffff
>  irq 11 at device 2.0 on pci2
> localhost kernel: ath0: Ethernet address: 00:05:4e:48:e3:27
> localhost kernel: ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24M
> bps 36Mbps 48Mbps 54Mbps
> localhost kernel: ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> localhost kernel: ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6M
> bps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
> localhost kernel: ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radi
> o 2.3
> localhost kernel: ath0: Use hw queue 1 for WME_AC_BE traffic
> localhost kernel: ath0: Use hw queue 0 for WME_AC_BK traffic
> localhost kernel: ath0: Use hw queue 2 for WME_AC_VI traffic
> localhost kernel: ath0: Use hw queue 3 for WME_AC_VO traffic)

The driver is unable to allocate contiguous memory for the tx+rx descriptors.  
This is unrelated to the patches.  It might be possible to carve up the 
allocation into smaller chunks; feel free to provide a patch...

	Sam


More information about the freebsd-current mailing list