Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2001 16:17:46 +0100
From:      Gianmarco Giovannelli <gmarco@scotty.masternet.it>
To:        Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
Cc:        mobile@freebsd.org
Subject:   Re: access point vs. point to point
Message-ID:  <5.1.0.14.2.20011222155646.028627c0@194.184.65.7>
In-Reply-To: <200112211530.fBLFUBs03175@gilberto.physik.rwth-aachen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
At 21/12/2001, you wrote:

>Just a question: What is peculiar to an accesspoint? Can a
>FreeBSD computer with a PCI card with a PCMCIA holding a wireless LAN
>adapter serve multiple notebook computers?

Form my home needs an adhoc connection is more than fine. My box is 
configured in this way:

gmarco:/home/gmarco> ifconfig -a
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
         ether 00:48:54:1a:42:df
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 10.0.1.1 netmask 0xffffff00 broadcast 10.0.1.255
         ether 00:30:ab:09:53:07
         media: IEEE 802.11 Wireless Ethernet autoselect
         status: associated

gmarco:/home/gmarco> wicontrol
NIC serial number:                      [ 99SA01000000 ]
Station name:                           [ FreeBSD WaveLAN/IEEE node ]
SSID for IBSS creation:                 [ your_ssid ]
Current netname (SSID):                 [ your_ssid ]
Desired netname (SSID):                 [ your_ssid ]
Current BSSID:                          [ 7a:00:2d:01:c1:00 ]
Channel list:                           [ 8191 ]
IBSS channel:                           [ 3 ]
Current channel:                        [ 3 ]
Comms quality/signal/noise:             [ 34 81 6 ]
Promiscuous mode:                       [ Off ]
Port type (1=BSS, 3=ad-hoc):            [ 0 ]
MAC address:                            [ 00:30:ab:09:53:07 ]
TX rate (selection):                    [ 3 ]
TX rate (actual speed):                 [ 5 ]
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 rl0 interface serves two other boxes on the net 10.0.0.x/24 while the 
wi0 is usually associated with one of my laptop running a xircom wl adapter 
(an0).

portege:/home/gmarco# ancontrol -C
Operating mode:                         [ ad-hoc ]
Receive mode:                           [ broadcast/multicast/unicast ]
Fragment threshold:                     [ 2312 ]
RTS threshold:                          [ 2312 ]
MAC address:                            [ 00:40:96:59:a1:ad ]
Supported rates:                        [ 1.0Mbps 2.0Mbps 5.5Mbps 11.0Mbps ]
Short retry limit:                      [ 16 ]
Long retry limit:                       [ 16 ]
TX MSDU lifetime:                       [ 5000 ]
RX MSDU lifetime:                       [ 10000 ]
Stationary:                             [ Off ]
Ordering:                               [ Off ]
Device type:                            [ PC4800 ]
Scanning mode:                          [ active ]
Probe delay:                            [ 3 ]
Probe energy timeout:                   [ 3 ]
Probe response timeout:                 [ 20 ]
Beacon listen timeout:                  [ 40 ]
IBSS join network timeout:              [ 10000 ]
Authentication timeout:                 [ 2000 ]
WEP enabled:                            [ no ]
Authentication type:                    [ open ]
Association timeout:                    [ 5000 ]
Specified AP association timeout:       [ 10000 ]
Offline scan interval:                  [ 0 ]
Offline scan duration:                  [ 0 ]
Link loss delay:                        [ 0 ]
Max beacon loss time:                   [ 500 ]
Refresh interval:                       [ 10000 ]
Power save mode:                        [ none ]
Sleep through DTIMs:                    [ Off ]
Power save listen interval:             [ 200 ]
Power save fast listen interval:        [ 100 ]
Power save listen decay:                [ 2 ]
Power save fast listen decay:           [ 200 ]
AP/ad-hoc Beacon period:                [ 100 ]
AP/ad-hoc ATIM duration:                [ 0 ]
AP/ad-hoc current channel:              [ 3 ]
AP/ad-hoc DTIM period:                  [ 1 ]
Radio type:                             [ 802.11 DS ]
RX Diversity:                           [ antenna 1 and 2 ]
TX Diversity:                           [ antenna 1 and 2 ]
Transmit power level:                   [ 30 ]
RSS threshold:                          [ 0 ]
Node name:                              [                 ]
ARL threshold:                          [ 65535 ]
ARL decay:                              [ 65535 ]
ARL delay:                              [ 65535 ]

WEP Key status:
         The active transmit key is 0


an0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         inet 10.0.1.101 netmask 0xffffff00 broadcast 10.0.1.255
         ether 00:40:96:59:a1:ad
         media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps <adhoc>)
         status: associated
         ssid your_ssid
         stationname ""
         channel 3 authmode OPEN powersavemode OFF powersavesleep 200
         wepmode OFF weptxkey 1



Btw A couple of things:

1) For let the wi0 works I have to use the following setup (taken part from 
someone who answered in this list :-)
in /etc/rc.conf:
ifconfig_rl0="inet 10.0.0.1  netmask 255.255.255.0"
ifconfig_wi0="inet 10.0.1.1  netmask 255.255.255.0 ssid your_ssid"

and in /usr/local/etc/rc.d
gmarco:/home/gmarco> less /usr/local/etc/rc.d/netgear.sh

#!/bin/sh
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
     echo "$0: Cannot determine the PREFIX" >&2
     exit 1
fi
case "$1" in
start)
         wicontrol -p 0 -C 1 -q your_ssid && echo -n " netgear"
         ;;
stop)
         ;;
*)
         echo "Usage: `basename $0` {start|stop}" >&2
         ;;
esac
exit 0

If these parameters are not set the card don't want to associated with the 
aironet 4800.
I tried to read the man pages for the wi, but perhaps it is just a little 
outdated or wrong because:

my cmd is wicontrol -p 0 -C 1 -q your_ssid but:

     -i iface -p port_type
              Set the port type for a specified interface.  The legal values
              for port_type are 1 (BSS mode) and 3 (ad-hoc) mode.  In ad-hoc
              mode, the station can communicate directly with any other sta-
              tions within direct radio range (provided that they are also
              operating in ad-hoc mode).  In BSS mode, hosts must associate
              with a service set controlled by an access point, which relays
              traffic between end stations.  The default setting is 3 (ad-hoc
              mode).

so -p 0 is not a valid choice :-) !!!!!

      -i iface -C
              Display the cached signal strength information maintained by the
              wi(4) driver.  The driver retains information about signal
              strength and noise level for packets received from different
              hosts.  The signal strength and noise level values are displayed
              in units of dBms.  The signal quality values is produced by sub-
              tracting the noise level from the signal strength (i.e. less
              noise and better signal yields better signal quality).

This is a display option , but I use it to set :-)



2) I have two xircom wl card so I can try to use 2 laptop simultaneously to 
see what happens :-)




Best Regards,
Gianmarco Giovannelli ,  "Unix expert since yesterday"
http://www.gufi.org/~gmarco



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




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