Parameters passed to ath_hal_setuptxdesc() from ath(4)

Sam Leffler sam at errno.com
Tue Sep 14 16:17:38 PDT 2004


On Tuesday 14 September 2004 01:23 pm, Rob Deker wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hey folks,
>
> ~    I've recently been working on some patches to the ath(4) driver to
> allow for raw frame injection, and I've got a question. Our patches
> will be allowing for full-frame raw injection, and so we can't
> necessarily know the length of the header on any given packet (ie. If
> the injected frame includes the addr4 field, is WEPped, etc). As I
> understand the IEEE spec, the LLC headers must be transmitted at the
> lowest supported rate (usually 1Mbps). My questions are:
>
> ~ - Is this a function of the HAL?

hardware (but only 5210 parts need it).

> ~ - If so, does the header length parameter to ath_hal_setuptxdesc()
> tell the HAL how many bytes it needs to send at a slower rate?
> ~ - If  the answers to the first two questions were "yes", and I wanted
> to provide a mechanism for the application programmer to specify
> his/her header length, what (if any) are the limits imposed on this
> parameter by the HAL?

hdrLen <= pktLen probably; though I'm not sure a 5210 would care what you 
supplied.

	Sam



More information about the freebsd-hackers mailing list