From owner-freebsd-current@FreeBSD.ORG Fri Mar 5 19:41:51 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B712F16A4CE for ; Fri, 5 Mar 2004 19:41:51 -0800 (PST) Received: from leonis.nus.edu.sg (leonis.nus.edu.sg [137.132.1.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1787F43D41 for ; Fri, 5 Mar 2004 19:41:51 -0800 (PST) (envelope-from jqdkf@army.com) Received: from army.com (120-79.priv.nus.edu.sg [172.18.120.79]) by leonis.nus.edu.sg (8.12.9/8.12.9) with SMTP id i263fjkF023463 for ; Sat, 6 Mar 2004 11:41:47 +0800 (SGT) Received: (qmail 1606 invoked by uid 1000); 6 Mar 2004 03:41:46 -0000 From: jqdkf@army.com Date: Sat, 6 Mar 2004 11:41:46 +0800 To: current@freebsd.org Message-ID: <20040306034146.GA1387@cactus.homeunix.org> Mail-Followup-To: current@freebsd.org References: <20040305012447.GA774@cactus.homeunix.org> <20040305190814.A69FB16A4CF@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040305190814.A69FB16A4CF@hub.freebsd.org> User-Agent: Mutt/1.4.2.1i Subject: Re: adhoc doesn't work with centrino X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 03:41:51 -0000 On Fri, Mar 05, 2004 at 11:08:14AM -0800, Bill Paul wrote: > Uhm... leave out the "mode 11b" part. You don't have to do anything > to force 11b mode (especially since most Centrino NICs are 11b only > anyway). > > Just do: > > # ifconfig ndis0 inet 10.0.0.1 netmask 255.255.255.0 \ > ssid CATCUS mediaopt adhoc up > > I have gotten ad-hoc mode to work on the Centrino with my home network > (it was the first thing I tested) so you ought to be able to get it > to connect. Be wary of getting too clever with setting media options with > ifconfig on if_ndis at this point: it needs work. > > The two things which I know will work are: > > # ifconfig ndis0 mediaopt adhoc <-- select adhoc mode > # ifconfig ndis0 media autoselect <-- select BSS mode > > If it doesn't associate right away, you might try doing > "ifconfig ndis0 down; ifconfig ndis0 up" once or twice to reset it, > though in my tests I don't think this was necessary. > > Also, the only useful thing you can do with wicontrol(8) at this > point is an AP scan: > > # wicontrol -i ndis0 -l > > The only reason wicontrol does this is... er... well... we don't have > any other standard utility in FreeBSD that can do it. > Unfortunately, it still doesn't work. A strange thing is that, when I specify adhoc with ifconfig, the light which shows wireless connection will turn off, while if I use autoselect, it will turn on. I really don't understand why it works with bss mode but not adhoc mode. -- Zeng Nan Simple is Beautiful.