From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 14 23:17:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D259E16A4CE for ; Tue, 14 Sep 2004 23:17:38 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97D3043D45 for ; Tue, 14 Sep 2004 23:17:38 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i8ENHbWi036473 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 14 Sep 2004 16:17:38 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-hackers@freebsd.org Date: Tue, 14 Sep 2004 16:21:52 -0700 User-Agent: KMail/1.7 References: <41475335.5020507@slackdot.org> In-Reply-To: <41475335.5020507@slackdot.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409141621.52897.sam@errno.com> X-Mailman-Approved-At: Wed, 15 Sep 2004 12:34:11 +0000 cc: Rob Deker Subject: Re: Parameters passed to ath_hal_setuptxdesc() from ath(4) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 23:17:38 -0000 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