Re: ad-hoc wireless mode and ticks (fwd)
On Wed, 5 Mar 2003, Eko Suwarsono wrote: > > Hi Warner, > > What kind of version that orinoco's firmware can support > ibss-master mode ? > Last time I change the wi0 (Orinoco) mode to "ibss-master" was "ifconfig: > SIOCSIFMEDIA: Device not configured" I am using Lucent Firmware: Station 8.72.01, and it can support ibss-master mediaopt, but it seems not supporting ibss-create yet. --Ken > but when using Senao Prism Based Card, it's work fine for "hostap" and > "ibss-master". > > Regards, > > Eko Suwarsono > - > [EMAIL PROTECTED] > > - Original Message - > From: "M. Warner Losh" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Tuesday, March 04, 2003 9:20 PM > Subject: Re: ad-hoc wireless mode and ticks (fwd) > > > > In message: <[EMAIL PROTECTED]> > > "Eko Suwarsono" <[EMAIL PROTECTED]> writes: > > : May be help, > > : > > : http://www.live.com/wireless/unix-base-station.html > > : > > : and a little explanation you can read at, > > : > > : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/wireless.html > > : > > : Lucent (Orinoco / avaya) base wireless Card will not work for "hostap" > or > > : "ibss-master" mode. To have your own FreeBSD host based Access point, > you > > : must using Prism II or 2.5 Card. > > > > That's not true. Lucent cards *WILL* work as ibss-masters if their > > firmware is new enough. > > > > Warner > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ad-hoc wireless mode and ticks (fwd)
Hi Warner, What kind of version that orinoco's firmware can support ibss-master mode ? Last time I change the wi0 (Orinoco) mode to "ibss-master" was "ifconfig: SIOCSIFMEDIA: Device not configured" but when using Senao Prism Based Card, it's work fine for "hostap" and "ibss-master". Regards, Eko Suwarsono - [EMAIL PROTECTED] - Original Message - From: "M. Warner Losh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 9:20 PM Subject: Re: ad-hoc wireless mode and ticks (fwd) > In message: <[EMAIL PROTECTED]> > "Eko Suwarsono" <[EMAIL PROTECTED]> writes: > : May be help, > : > : http://www.live.com/wireless/unix-base-station.html > : > : and a little explanation you can read at, > : > : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/wireless.html > : > : Lucent (Orinoco / avaya) base wireless Card will not work for "hostap" or > : "ibss-master" mode. To have your own FreeBSD host based Access point, you > : must using Prism II or 2.5 Card. > > That's not true. Lucent cards *WILL* work as ibss-masters if their > firmware is new enough. > > Warner > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ad-hoc wireless mode and ticks (fwd)
In message: <[EMAIL PROTECTED]> Wilko Bulte <[EMAIL PROTECTED]> writes: : Inquiring minds will ask soon anyway: what rev is 'new enough' ? wi man page says: Lucent cards prior to firmware version 6.0.4 do not support IBSS mode. but the source code says: if (sc->sc_sta_firmware_ver >= 60006) ic->ic_flags |= IEEE80211_F_HASIBSS; so I'd guess why 6.0.6 is the oldest version that will support IBSS creation. I'll update the man page. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ad-hoc wireless mode and ticks (fwd)
On Tuesday, 4 March 2003 at 7:18:02 -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > "Greg 'groggy' Lehey" <[EMAIL PROTECTED]> writes: >> 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. No, this has changed since we last discussed it, as you demonstrate below. > 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 > > 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 It's good to see you've changed this. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers pgp0.pgp Description: PGP signature
Re: ad-hoc wireless mode and ticks (fwd)
On Tue, Mar 04, 2003 at 07:20:25AM -0700, M. Warner Losh wrote: > In message: <[EMAIL PROTECTED]> > "Eko Suwarsono" <[EMAIL PROTECTED]> writes: > : May be help, > : > : http://www.live.com/wireless/unix-base-station.html > : > : and a little explanation you can read at, > : > : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/wireless.html > : > : Lucent (Orinoco / avaya) base wireless Card will not work for "hostap" or > : "ibss-master" mode. To have your own FreeBSD host based Access point, you > : must using Prism II or 2.5 Card. > > That's not true. Lucent cards *WILL* work as ibss-masters if their > firmware is new enough. Inquiring minds will ask soon anyway: what rev is 'new enough' ? -- | / o / /_ _ |/|/ / / /( (_) Bulte [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ad-hoc wireless mode and ticks (fwd)
In message: <[EMAIL PROTECTED]> "Eko Suwarsono" <[EMAIL PROTECTED]> writes: : May be help, : : http://www.live.com/wireless/unix-base-station.html : : and a little explanation you can read at, : : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/wireless.html : : Lucent (Orinoco / avaya) base wireless Card will not work for "hostap" or : "ibss-master" mode. To have your own FreeBSD host based Access point, you : must using Prism II or 2.5 Card. That's not true. Lucent cards *WILL* work as ibss-masters if their firmware is new enough. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ad-hoc wireless mode and ticks (fwd)
In message: <[EMAIL PROTECTED]> "Greg 'groggy' Lehey" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ad-hoc wireless mode and ticks (fwd)
May be help, http://www.live.com/wireless/unix-base-station.html and a little explanation you can read at, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/wireless.html Lucent (Orinoco / avaya) base wireless Card will not work for "hostap" or "ibss-master" mode. To have your own FreeBSD host based Access point, you must using Prism II or 2.5 Card. Regards, Eko Suwarsono - [EMAIL PROTECTED] - Original Message - From: "Kan Cai" <[EMAIL PROTECTED]> To: "Jason Hunt" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 12:18 PM Subject: Re: ad-hoc wireless mode and ticks (fwd) > > Hope Greg won't mind we still discuss here. > > On Mon, 3 Mar 2003, Jason Hunt wrote: > > > On Mon, Mar 03, 2003 at 08:10:18PM -0800, Kan Cai wrote: > > > > > > But when I set the option "mediaopt ibss", I cannot set it back to the AP > > > mode, or how should I (the ibss-master? it does not work for me)?. I do > > > not want this wireless station to be the hostAP itself. > > > > > > > What commands are you running? What errors do you receive? > > Here is the steps. > > Step 1 > -- > > " > # ifconfig wi0 ssid myessid mediaopt ibss > > # wicontrol > 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:[ ][ ][ ][ ] > " > > The above info shown by wicontrol is same to that uses "-p 4" > > " > # ifconfig > fxp0: flags=8843 mtu 1500 > inet6 fe80::202:b3ff:fe4d:d16%fxp0 prefixlen 64 scopeid 0x1 > inet 142.103.10.99 netmask 0xff00 broadcast 142.103.10.255 > ether 00:02:b3:4d:0d:16 > media: Ethernet autoselect (100baseTX ) > status: active > lp0: flags=8810 mtu 1500 > lo0: flags=8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet 127.0.0.1 netmask 0xff00 > ppp0: flags=8010 mtu 1500 > sl0: flags=c010 mtu 552 > faith0: flags=8002 mtu 1500 > wi0: flags=8843 mtu 1500 > inet6 fe80::202:2dff:fe8d:a9a0%wi0 prefixlen 64 scopeid 0x7 > inet 142.103.240.47 netmask 0xf800 broadcast 142.103.247.255 > ether 00:02:2d:8d:a9:a0 > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps > ) > status: associated > > " > > The ifconfig shows a little difference in media, previously it was > > " > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps ) > " > > no first "ibss" after the autoselect. > > > Step 2: > -- > and now if I have no idea how to set back to infrastructured mode by > ifconfig, or I don't know the right way to do. I attempted to use > ibss-master or hostap, although I don't think they are correct. > > " > # ifconfig wi0 mediaopt ibss-master > ifconfig: SIOCSIFMEDIA: Device not configured > " > > Step 3: > --- > Then I tried using wicontrol command > > " > # wicontrol -p 1 > # wicontrol > NIC serial number: [ 03UT04368383 ] > Station name: [ FreeBSD WaveLAN/IEEE node ] > SSID for IBSS creation: [ myessid ] > Current netname (SSID): [ myessid ] > Desired netname (SSID): [ myessid ] > Current
Re: ad-hoc wireless mode and ticks (fwd)
Hope Greg won't mind we still discuss here. On Mon, 3 Mar 2003, Jason Hunt wrote: > On Mon, Mar 03, 2003 at 08:10:18PM -0800, Kan Cai wrote: > > > > But when I set the option "mediaopt ibss", I cannot set it back to the AP > > mode, or how should I (the ibss-master? it does not work for me)?. I do > > not want this wireless station to be the hostAP itself. > > > > What commands are you running? What errors do you receive? Here is the steps. Step 1 -- " # ifconfig wi0 ssid myessid mediaopt ibss # wicontrol 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:[ ][ ][ ][ ] " The above info shown by wicontrol is same to that uses "-p 4" " # ifconfig fxp0: flags=8843 mtu 1500 inet6 fe80::202:b3ff:fe4d:d16%fxp0 prefixlen 64 scopeid 0x1 inet 142.103.10.99 netmask 0xff00 broadcast 142.103.10.255 ether 00:02:b3:4d:0d:16 media: Ethernet autoselect (100baseTX ) status: active lp0: flags=8810 mtu 1500 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff00 ppp0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 faith0: flags=8002 mtu 1500 wi0: flags=8843 mtu 1500 inet6 fe80::202:2dff:fe8d:a9a0%wi0 prefixlen 64 scopeid 0x7 inet 142.103.240.47 netmask 0xf800 broadcast 142.103.247.255 ether 00:02:2d:8d:a9:a0 media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps ) status: associated " The ifconfig shows a little difference in media, previously it was " media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps ) " no first "ibss" after the autoselect. Step 2: -- and now if I have no idea how to set back to infrastructured mode by ifconfig, or I don't know the right way to do. I attempted to use ibss-master or hostap, although I don't think they are correct. " # ifconfig wi0 mediaopt ibss-master ifconfig: SIOCSIFMEDIA: Device not configured " Step 3: --- Then I tried using wicontrol command " # wicontrol -p 1 # wicontrol 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):[ 1 ] 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:[ ][ ][ ][ ] # ifconfig fxp0: flags=8843 mtu 1500 inet6 fe80::202:b3ff:fe4d:d16%fxp0 prefixlen 64 scopeid 0x1 inet 142.103.10.99 netmask 0xff00 broadcast 142.103.10.255 ether 00:02:b3:4d:0d:16 media: Ethernet autoselect (100baseTX ) status: active lp0: flags=8810 mtu 1500 lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 12
Re: ad-hoc wireless mode and ticks (fwd)
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 [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: ad-hoc wireless mode and ticks (fwd)
[bcc-ing -mobile; this really belongs on -questions] On Monday, 3 March 2003 at 13:10:26 -0800, Kan Cai wrote: > > I sent the question in freebsd-question list, but it seems a wrong list to > ask. No, -questions is the correct list. Did somebody complain? Maybe because you sent your message as an reply to a different thread? > Hi, All: > > 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". > After I use "-p 3" option, it cannot talk to Linux/Windows ad-hoc > wireless station. Correct. > 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. 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. 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. pgp0.pgp Description: PGP signature
ad-hoc wireless mode and ticks
Hi, All: 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? 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? Thanks a lot, Ken To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message