From owner-freebsd-mobile Mon Mar 3 17: 0:23 2003 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 948B337B401 for ; Mon, 3 Mar 2003 17:00:21 -0800 (PST) Received: from zephir.primus.ca (mail.tor.primus.ca [216.254.136.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8F9D43FBD for ; Mon, 3 Mar 2003 17:00:20 -0800 (PST) (envelope-from leth@lethargic.dyndns.org) Received: from dialin-151-203.tor.primus.ca ([216.254.151.203] helo=lethargic.dyndns.org) by zephir.primus.ca with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.36 #3) id 18q0n2-0003ur-0A; Mon, 03 Mar 2003 20:00:18 -0500 Received: from lethargic.dyndns.org (leth@localhost [127.0.0.1]) by lethargic.dyndns.org (8.12.6/8.12.6) with ESMTP id h2410IEG050855; Mon, 3 Mar 2003 20:00:19 -0500 (EST) (envelope-from leth@lethargic.dyndns.org) Received: (from leth@localhost) by lethargic.dyndns.org (8.12.6/8.12.6/Submit) id h2410GTj050854; Mon, 3 Mar 2003 20:00:16 -0500 (EST) Date: Mon, 3 Mar 2003 20:00:15 -0500 From: Jason Hunt To: Kan Cai Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: ad-hoc wireless mode and ticks (fwd) Message-ID: <20030304010015.GA50744@lethargic.dyndns.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Mar 03, 2003 at 01:10:26PM -0800, Kan Cai wrote: > > 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). > > After I use "-p 3" option, it cannot talk to Linux/Windows ad-hoc > wireless station. 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? Not that it makes a difference (yet), but wicontrol is deprecated and (I think) is being removed sooner or later. You should instead use ifconfig to configure wireless interfaces. To be honest, I'm not sure how a new user is supposed to know that. I only know this from watching the mailing lists. Maybe the wicontrol(8) man page should be updated? Anyways, read through the wi(4) man page. It will explain the various modes and has some examples. You might also want to look at the ifconfig(8) man page for a listing of available options to configure devices with. > > Moreover, could somebody give me a hint what is the corresponding > function in FreeBSD like "rdtscl" function in Linux, which returns me the > cpu ticks elapsed? Sorry, I'm not sure. Maybe getrusage() is what you're looking for? Hope this helps. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message