Re: ad-hoc wireless mode and ticks (fwd)

Kan Cai <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile,gmane.os.freebsd.questions
Message-ID <[email protected]>
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
        status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <ibss> (DS/11Mbps
<ibss>)
        status: associated

"

The ifconfig shows a little difference in media, previously it was

"
        media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps <ibss>)
"

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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
        status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <ibss> (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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
        status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <ibss> (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 "<ibss>"
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 [email protected]
with "unsubscribe freebsd-mobile" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.