Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2001 11:34:21 +0000
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        Assar Westerlund <assar@freebsd.org>
Cc:        Garrett Rooney <rooneg@electricjellyfish.net>, Warner Losh <imp@bsdimp.com>, 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 
Message-ID:   <200103121134.aa54746@salmon.maths.tcd.ie>
In-Reply-To: Your message of "12 Mar 2001 06:45:22 %2B0100." <5llmqba6bx.fsf@assaris.sics.se> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200103121134.aa54746>