From owner-freebsd-questions Tue Mar 4 6:22: 0 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3C2B37B401 for ; Tue, 4 Mar 2003 06:21:58 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id B14D343FDD for ; Tue, 4 Mar 2003 06:21:57 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h24ELrA7018961; Tue, 4 Mar 2003 07:21:53 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 04 Mar 2003 07:18:02 -0700 (MST) Message-Id: <20030304.071802.05621603.imp@bsdimp.com> To: kcai@cs.ubc.ca, questions@FreeBSD.ORG Subject: Re: ad-hoc wireless mode and ticks (fwd) From: "M. Warner Losh" In-Reply-To: <20030304012848.GA25691@wantadilla.lemis.com> References: <20030304012848.GA25691@wantadilla.lemis.com> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20030304012848.GA25691@wantadilla.lemis.com> "Greg 'groggy' Lehey" writes: : > Feel a little confused with the ad-hoc mode set by "wicontrol -p : > 3", is it Lucent ad-hoc mode instead of the standard IEEE ad-hoc : > mode (IBSS). : : Correct. It's generally called "demo ad-hoc mode". -p is card dependent number. It depends on what card you have, what firmware, etc. Don't use it. It is bad juju. Instead, use the ifconfig interface. : > But if I set it to "-p 4", it can do the job. However, I cannot find : > this option in wicontrol man page or anywhere. Could somebody : > explain me what's going on here? : : I don't know a -p 4. I set ad-hoc (i.e. IBSS) mode with -p 1 (in : other words, exactly the same way as managed/BSS mode). You'll need : at least one IBSS, of course. Set that with -c 1. Ignore the claim : in the man page that it doesn't work. I run my wireless network like : this, and it interoperates fine with Linux and even Microsoft. See : http://www.lemis.com/grog/diary-feb2002.html#9 for more details. Don't do that. You are asking for trouble. IT DOES NOT WORK. Trust me. There are a lot of situations where it can be made to work, but as general advise, it sucks. That's why the man pages say what they say. Greg leads a charmed life. That's why the man pages say what they say. : Yes, this is very confusing. I've been asking the maintainer to : change the terminology, but he points out that the other BSDs do it : this way as well. I think you need to learn to ask better. The maintainer uses industry standard terminology. don't use wicontrol -p for anything. If it breaks, it breaks in mysterious ways and you get a lot of 'works for me.' posts. In -stable, you want something like ifconfig wi0 media DS/11Mbps mediaopt ibss-craete # ibss mode (adhoc) ifconfig wi0 media DS/11Mbps mediaopt adhoc # lucent is what you want to use. In current, by contrast, you want to use the following: ifconfig wi0 media DS/11Mbps mediaopt adhoc # ibss mode (adhoc) ifconfig wi0 media DS/11Mbps mediaopt adhoc,flag0 # lucent You do not want to use wicontrol to configure the card at all. Wanrer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message