From owner-freebsd-mobile Fri Jan 5 11:26:42 2001 From owner-freebsd-mobile@FreeBSD.ORG Fri Jan 5 11:26:41 2001 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id E3FC137B400; Fri, 5 Jan 2001 11:26:39 -0800 (PST) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 5 Jan 2001 19:26:29 +0000 (GMT) To: Duncan Barclay Cc: mobile@FreeBSD.ORG, wpaul@FreeBSD.ORG Subject: Re: Lucent Wavelan and 4.2 works like a charm. In-Reply-To: Your message of "Fri, 05 Jan 2001 16:39:57 GMT." Date: Fri, 05 Jan 2001 19:26:29 +0000 From: Ian Dowse Message-ID: <200101051926.aa20299@salmon.maths.tcd.ie> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message , Duncan Barclay writes >It does seem that the default should be infrastructure mode. > >> Hopefully bringing the wicontrol functionality into ifconfig will >> remove this problem since you can then just change the mode with >> 'extra options to ifconfig' in sysinstall. > >Yup. How about making the default port type a kernel environment variable which can be set in the loader? It's not ideal, but it would at least be a temporary solution to the problem of installing via a wavelan card. It just needs something like this I think (untested): Ian Index: if_wi.c =================================================================== RCS file: /home/iedowse/CVS/src/sys/i386/isa/if_wi.c,v retrieving revision 1.31 diff -u -r1.31 if_wi.c --- if_wi.c 2000/12/18 23:49:56 1.31 +++ if_wi.c 2001/01/05 19:20:25 @@ -151,6 +151,9 @@ static int wi_alloc __P((device_t)); static void wi_free __P((device_t)); +static int wi_default_ptype; +TUNABLE_INT_DECL("wi_default_ptype", WI_PORTTYPE_ADHOC, wi_default_ptype); + static device_method_t wi_pccard_methods[] = { /* Device interface */ DEVMETHOD(device_probe, wi_pccard_probe), @@ -316,7 +319,7 @@ sizeof(WI_DEFAULT_IBSS) - 1); sc->wi_portnum = WI_DEFAULT_PORT; - sc->wi_ptype = WI_PORTTYPE_ADHOC; + sc->wi_ptype = wi_default_ptype; sc->wi_ap_density = WI_DEFAULT_AP_DENSITY; sc->wi_rts_thresh = WI_DEFAULT_RTS_THRESH; sc->wi_tx_rate = WI_DEFAULT_TX_RATE; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message