Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 2003 18:37:00 -0800 (PST)
From:      Kan Cai <kcai@cs.ubc.ca>
To:        "Greg 'groggy' Lehey" <grog@freebsd.org>
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: ad-hoc wireless mode and ticks (fwd)
Message-ID:  <Pine.GSO.4.53.0303031824340.22818@granville.cs.ubc.ca>
In-Reply-To: <20030304012848.GA25691@wantadilla.lemis.com>
References:  <Pine.GSO.4.53.0303031309110.21197@granville.cs.ubc.ca> <20030304012848.GA25691@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




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