Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Jan 2001 19:26:29 +0000
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        Duncan Barclay <dmlb@dmlb.org>
Cc:        mobile@FreeBSD.ORG, wpaul@FreeBSD.ORG
Subject:   Re: Lucent Wavelan and 4.2 works like a charm. 
Message-ID:   <200101051926.aa20299@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Fri, 05 Jan 2001 16:39:57 GMT." <XFMail.010105163957.dmlb@computer.my.domain> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <XFMail.010105163957.dmlb@computer.my.domain>, 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




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