From owner-freebsd-questions Mon Mar 3 18:37: 7 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 BAC3137B401; Mon, 3 Mar 2003 18:37:04 -0800 (PST) Received: from pedigree.cs.ubc.ca (pedigree.cs.ubc.ca [142.103.6.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id B026B43F93; Mon, 3 Mar 2003 18:37:03 -0800 (PST) (envelope-from kcai@cs.ubc.ca) Received: from granville.cs.ubc.ca (granville.cs.ubc.ca [142.103.7.20]) by pedigree.cs.ubc.ca (8.12.8/8.11.4) with ESMTP id h242b1kZ023949; Mon, 3 Mar 2003 18:37:02 -0800 (PST) Date: Mon, 3 Mar 2003 18:37:00 -0800 (PST) From: Kan Cai To: "Greg 'groggy' Lehey" Cc: FreeBSD Questions Subject: Re: ad-hoc wireless mode and ticks (fwd) In-Reply-To: <20030304012848.GA25691@wantadilla.lemis.com> Message-ID: References: <20030304012848.GA25691@wantadilla.lemis.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Thanks for reply. > > 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. > That is really interesting, does that mean that the FreeBSD wireless station has to fake a base station in order to make it work? and cannot join the current available IBSS(es) by specifying the essid? Is that implemented by the "unleashed" -p 4 option? Here is the parameters I got using -p 4 NIC serial number: [ 03UT04368383 ] Station name: [ FreeBSD WaveLAN/IEEE node ] SSID for IBSS creation: [ myessid ] Current netname (SSID): [ myessid ] Desired netname (SSID): [ myessid ] Current BSSID: [ 44:44:44:44:44:44 ] Channel list: [ 2047 ] IBSS channel: [ 10 ] Current channel: [ 10 ] Comms quality/signal/noise: [ 0 27 27 ] Promiscuous mode: [ Off ] Process 802.11b Frame: [ Off ] Intersil-Prism2 based card: [ 0 ] Port type (1=BSS, 3=ad-hoc): [ 4 ] MAC address: [ 00:02:2d:8d:a9:a0 ] TX rate (selection): [ 3 ] TX rate (actual speed): [ 11 ] RTS/CTS handshake threshold: [ 2347 ] Create IBSS: [ Off ] Access point density: [ 1 ] Power Mgmt (1=on, 0=off): [ 0 ] Max sleep time: [ 100 ] WEP encryption: [ Off ] TX encryption key: [ 1 ] Encryption keys: [ ][ ][ ][ ] See the "Create IBSS" if off now. > 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. > > > 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? > > This looks like a completely separate question, probably one which is > off-topic for -mobile. Can you give context, or better, send another > message to -questions. > Sorry for the off-topic question. But just for those interested, here is the probable answer: asm volatile(".byte 0x0f, 0x31" : "=A" (tstart)); asm volatile(".byte 0x0f, 0x31" : "=A" (tend)); Again, thanks a lot, and hope more clarifications. --Ken > Greg > -- > See complete headers for address and phone numbers > Please note: we block mail from major spammers, notably yahoo.com. > See http://www.lemis.com/yahoospam.html for further details. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message