From owner-freebsd-mobile Tue Mar 4 4:59:52 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 2D08537B401; Tue, 4 Mar 2003 04:59:44 -0800 (PST) Received: from mx2.melsa.net.id (mx2.melsa.net.id [202.138.224.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2676143FB1; Tue, 4 Mar 2003 04:59:38 -0800 (PST) (envelope-from ekoz@melsa.net.id) Received: from ns2.melsa.net.id (ns2.melsa.net.id [202.138.224.4]) by mx2.melsa.net.id (8.11.3/8.11.3) with ESMTP id h24CxT421699; Tue, 4 Mar 2003 19:59:29 +0700 (JAVT) Received: from tech04 (tech04.melsa.net.id [202.138.225.212]) by ns2.melsa.net.id (8.11.3/8.11.3) with SMTP id h24CxQr56220; Tue, 4 Mar 2003 19:59:27 +0700 (JAVT) Message-ID: <039901c2e24d$e3d63260$d4e18aca@tech04> From: "Eko Suwarsono" To: "Kan Cai" , "Jason Hunt" Cc: , References: <20030304010015.GA50744@lethargic.dyndns.org> <20030304044311.GA51553@lethargic.dyndns.org> Subject: Re: ad-hoc wireless mode and ticks (fwd) Date: Tue, 4 Mar 2003 19:59:25 +0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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 ----------------------------- ekoz@melsa.net.id ----- Original Message ----- From: "Kan Cai" To: "Jason Hunt" Cc: ; 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 0xffffff00 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 0xff000000 > 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 0xfffff800 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 0xffffff00 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 0xff000000 > 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 0xfffff800 broadcast 142.103.247.255 > ether 00:02:2d:8d:a9:a0 > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > status: no carrier > ssid myessid 1:myessid > stationname "FreeBSD WaveLAN/IEEE node" > channel 10 authmode OPEN powersavemode OFF powersavesleep 100 > wepmode OFF weptxkey 1 > > # wicontrol -n ubc > > # wicontrol > NIC serial number: [ 03UT04368383 ] > Station name: [ FreeBSD WaveLAN/IEEE node ] > SSID for IBSS creation: [ ubc ] > Current netname (SSID): [ ubc ] > Desired netname (SSID): [ ubc ] > Current BSSID: [ 00:0a:8a:8a:ca:1c ] > Channel list: [ 2047 ] > IBSS channel: [ 10 ] > Current channel: [ 1 ] > Comms quality/signal/noise: [ 22 81 59 ] > 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 0xffffff00 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 0xff000000 > 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 0xfffff800 broadcast 142.103.247.255 > ether 00:02:2d:8d:a9:a0 > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > status: associated > ssid ubc 1:ubc > stationname "FreeBSD WaveLAN/IEEE node" > channel 1 authmode OPEN powersavemode OFF powersavesleep 100 > wepmode OFF weptxkey 1 > " > > But now I still cannot ping any computers in the world but myself. > > However, if I didn't use the ifconfig but only wicontro to switch the > port_type between 1 and 4, there is no problem, and there is no "" > in the media field when I switch back from ad-hoc mode to infrastructured > mode. > > > > > The FreeBSD version (run "uname -r") and the dmesg output for wi0 > > ("dmesg | grep wi0") might be useful as well. > > > > Here is the dmesg and uname -r info. > > " > # dmesg | grep wi0 > wi0 at port 0x240-0x27f irq 3 slot 0 on pccard0 > wi0: 802.11 address: 00:02:2d:8d:a9:a0 > wi0: using Lucent Technologies, WaveLAN/IEEE > wi0: Lucent Firmware: Station 8.72.01 > wi0 at port 0x240-0x27f irq 3 slot 0 on pccard0 > wi0: 802.11 address: 00:02:2d:8d:a9:a0 > wi0: using Lucent Technologies, WaveLAN/IEEE > wi0: Lucent Firmware: Station 8.72.01 > wi0 at port 0x240-0x27f irq 3 slot 0 on pccard0 > wi0: 802.11 address: 00:02:2d:8d:a9:a0 > wi0: using Lucent Technologies, WaveLAN/IEEE > wi0: Lucent Firmware: Station 8.72.01 > " > > " > # uname -r > 4.7-RELEASE > " > > By the way, I am using the PC-PCMCIA adaptor and orinoco PC card, but it > won't cause any problem, right? > > Thanks, > Ken > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message