Return-path: Received: from mail-gx0-f226.google.com ([209.85.217.226]:48899 "EHLO mail-gx0-f226.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754154AbZGASMU (ORCPT ); Wed, 1 Jul 2009 14:12:20 -0400 Received: by gxk26 with SMTP id 26so1674183gxk.13 for ; Wed, 01 Jul 2009 11:12:23 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4A4BA21F.1070101@gmail.com> References: <1246388712.4949.52.camel@localhost> <43e72e890906301217m2dec7bfaqea0472907531d21d@mail.gmail.com> <1246396179.4949.76.camel@localhost> <43e72e890906301458y197c5411yfb93ea0089ed49f3@mail.gmail.com> <1246464991.4331.18.camel@localhost> <4A4BA21F.1070101@gmail.com> From: "Luis R. Rodriguez" Date: Wed, 1 Jul 2009 11:12:03 -0700 Message-ID: <43e72e890907011112l220874bbu8db8808f666bbd4d@mail.gmail.com> Subject: Re: [PATCH] Add prism 2/3 usb adaptor firmware for use with staging/wlan-ng driver. To: Dave Cc: Karl Relton , dwmw2@infradead.org, linux-wireless@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Jul 1, 2009 at 10:51 AM, Dave wrote: > Karl Relton wrote: >> On Tue, 2009-06-30 at 14:58 -0700, Luis R. Rodriguez wrote: >>> Why all the srec->binary conversion? Doesn't this waste space on >>> people's firmware directories? >>> >> Yes, technically it does. The srec file is ~185KB, a binary image would >> be ~64KB. >> >> The reason it was left is that the driver has to do some runtime >> plugging of data into the image, so pre-compilation would have meant >> inventing both a compiler tool and an intermediate format for the driver >> to read and process. Putting all the srec processing in the driver was >> more expedient (just meant porting existing userspace code into driver >> space). > > I can't find the wlan_ng request_firmware call in my wireless-testing > tree (week or so old). Is that new? > > From what I can tell the wlan_ng, hostap and orinoco drivers all program > firmware that has the same basic format. Hostap doesn't use > request_firmware, and gives userspace the control over the write > sequence. orinoco places a very simple header in front of the binary image. > > Do we really want to add srec processing to the driver (or even the kernel)? > > It would be nice if the FW image was in the same format for orinoco and > wlan_ng, as the prism firmware ought to work on non-USB prism cards, and > we should be able to make orinoco use it. I never got the wlan_ng stuff.. Anyway now it is under drivers/staging/wlan-ng. I was under the impression it targeted some devices not covered by hostapd or orinoco, is that no the case? Luis