From owner-freebsd-mobile@FreeBSD.ORG Fri Jun 6 03:42:38 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2311437B401; Fri, 6 Jun 2003 03:42:38 -0700 (PDT) Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3264E43FB1; Fri, 6 Jun 2003 03:42:30 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from foem (IDENT:chuckwebweaving.org@foem [10.11.0.2]) h56AgSv7042690; Fri, 6 Jun 2003 12:42:28 +0200 (CEST) (envelope-from dirkx@webweaving.org) Date: Fri, 6 Jun 2003 12:42:28 +0200 (CEST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@foem To: hackers@freebsd.org, Message-ID: <20030606123639.L801-100000@foem> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Prism2 firmware upload support. X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 10:42:38 -0000 After experimenting with the hostap drivers of linux (http://hostap.epitest.fi/) I've quite taken a liking of 'prism2_srec' which allows one to upload (experimental) firmware in the RAM of the prism2 card. And being able to do this form userland. Has anyone looked at the existing symbol firmware loading code in freebsd 5.x and looked at generalizing this with some ioctl()'s for upload/download of firmware (and propalby an extra SIOCGPRISM2INFO to give userland enough of an idea of the primary/secondary version numbers to be able to select/check the hex files) ? I've started coding some of this into the wi driver - but one thing which worries me is how to properly activate it; i.e. how does one from an ioctl a clean detach/probe sort of thing ? I take it that one cannot call wi_generic_detach(), wi_generic_attach() from inside the ioctol handler ? Thanks, Dw