From owner-cvs-all Mon Mar 12 3:34:46 2001 Delivered-To: cvs-all@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 48E5037B718; Mon, 12 Mar 2001 03:34:38 -0800 (PST) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 12 Mar 2001 11:34:37 +0000 (GMT) To: Assar Westerlund Cc: Garrett Rooney , Warner Losh , jkh@freebsd.org, cvs-committers@freebsd.org, cvs-all@freebsd.org, iedowse@maths.tcd.ie Subject: Re: cvs commit: src/share/man/man4 wi.4 src/sys/dev/wi if_wi.c In-Reply-To: Your message of "12 Mar 2001 06:45:22 +0100." <5llmqba6bx.fsf@assaris.sics.se> Date: Mon, 12 Mar 2001 11:34:21 +0000 From: Ian Dowse Message-ID: <200103121134.aa54746@salmon.maths.tcd.ie> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <5llmqba6bx.fsf@assaris.sics.se>, Assar Westerlund writes: > >Last-time this was discussed, Warner said that he didn't like changing >defaults in -stable. That's right, but I think here POLA is actually >having BSS be the default since that's what people expect. BTW, I've been using the following patch in -stable for some time, which allows the default mode to be set via a loader tunable. It's obviously not the `right' solution, but it would avoid actually removing the ability to do a network install in ad-hoc mode. Ian Index: if_wi.c =================================================================== RCS file: /home/iedowse/CVS/src/sys/i386/isa/Attic/if_wi.c,v retrieving revision 1.18.2.5 diff -u -r1.18.2.5 if_wi.c --- if_wi.c 2000/09/07 17:10:41 1.18.2.5 +++ if_wi.c 2001/01/05 19:21:00 @@ -155,6 +155,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), @@ -292,7 +295,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 cvs-all" in the body of the message