From owner-freebsd-questions Mon Mar 3 21:18:20 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 EB79C37B401; Mon, 3 Mar 2003 21:18:13 -0800 (PST) Received: from pedigree.cs.ubc.ca (pedigree.cs.ubc.ca [142.103.6.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 198B143F85; Mon, 3 Mar 2003 21:18:13 -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 h245IBkZ011484; Mon, 3 Mar 2003 21:18:11 -0800 (PST) Date: Mon, 3 Mar 2003 21:18:11 -0800 (PST) From: Kan Cai To: Jason Hunt Cc: freebsd-mobile@freebsd.org, freebsd-questions@freebsd.org Subject: Re: ad-hoc wireless mode and ticks (fwd) In-Reply-To: <20030304044311.GA51553@lethargic.dyndns.org> Message-ID: References: <20030304010015.GA50744@lethargic.dyndns.org> <20030304044311.GA51553@lethargic.dyndns.org> 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 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