9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] scanning for base stations/access points
@ 2003-01-18  2:21 David Presotto
  0 siblings, 0 replies; 5+ messages in thread
From: David Presotto @ 2003-01-18  2:21 UTC (permalink / raw)
  To: 9fans

I've updated the kernel sources for:

port/netif.h
port/netif.c
port/wavelan.h
port/wavelan.c

to try to get scanning for base stations/access points to
work.  I ripped off what I could from Linux but seem to be
faiing miserably.  If I don't set the essid, the scanning seems
to work but doesn't return the essid of the access points.
It also doesn't get all the access points in range.  If I
set the essid, it gets them all and returns the essid values.

I'm clearly doing something wrong but don't see what.  If
anyone can help, I'ld appreciate it.

To get the scanning to work:

	% cd /net/ether0/0
	% cat data &
	% echo scanbs 5 > ctl

The '5' is the seconds between scans (5 is the minimum).

You might also want to turn stuff off to see if it changes
things:

	% echo crypt off > ctl
	% echo essid default > ctl

Thanks


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] scanning for base stations/access points
  2003-01-18 20:08   ` jmk
@ 2003-01-18 20:10     ` jmk
  0 siblings, 0 replies; 5+ messages in thread
From: jmk @ 2003-01-18 20:10 UTC (permalink / raw)
  To: 9fans

sorry, i meant that to go only to presotto.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] scanning for base stations/access points
  2003-01-18 13:12 ` David Presotto
@ 2003-01-18 20:08   ` jmk
  2003-01-18 20:10     ` jmk
  0 siblings, 1 reply; 5+ messages in thread
From: jmk @ 2003-01-18 20:08 UTC (permalink / raw)
  To: presotto, 9fans

[-- Attachment #1: Type: text/plain, Size: 68 bytes --]

i have an access point (but without a gold card) we can reconfigure.

[-- Attachment #2: Type: message/rfc822, Size: 1620 bytes --]

From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] scanning for base stations/access points
Date: Sat, 18 Jan 2003 08:12:40 -0500
Message-ID: <bec675ea9dd44eac6a9cc7d76cd5c35e@plan9.bell-labs.com>

It's useful.  It could be that our access points are configured to
not give up their essid's to probes unless the probes contain the
right essid (I am sending out probes, I see it on the card lights).
I hadn't even considered that possibility.  I'll find an access
point that I can configure myself and see.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] scanning for base stations/access points
  2003-01-18 13:06 Woodruff, Richard
@ 2003-01-18 13:12 ` David Presotto
  2003-01-18 20:08   ` jmk
  0 siblings, 1 reply; 5+ messages in thread
From: David Presotto @ 2003-01-18 13:12 UTC (permalink / raw)
  To: 9fans

It's useful.  It could be that our access points are configured to
not give up their essid's to probes unless the probes contain the
right essid (I am sending out probes, I see it on the card lights).
I hadn't even considered that possibility.  I'll find an access
point that I can configure myself and see.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] scanning for base stations/access points
@ 2003-01-18 13:06 Woodruff, Richard
  2003-01-18 13:12 ` David Presotto
  0 siblings, 1 reply; 5+ messages in thread
From: Woodruff, Richard @ 2003-01-18 13:06 UTC (permalink / raw)
  To: '9fans@cse.psu.edu'

I've got this kind of thing to work for other cards, though I haven't looked
at it specifically for the wavelan design.  I'd look first to what is going
out over the air using Airopeek or some other 802.11 sniffer.

Scanning usually is done actively with a probe request or passively by
listening for beacons (the firmware or driver software may combine them if
the ssid is hidden).  A scan command results in a card spending some amount
of time on each valid channel listening, or actively asking if someone is
there (you tell him who to ask for).  If your scan sample time is to short
you can miss beacons or responses, if your valid channel list is wrong you
might skip channels which ap's are on.  These parameters are embedded
somewhere, likely in a mib which the driver can access.

If your AP is configured to hide its ssid, it generally sends out the same
number of blanks as the name should be for the name field in the beacon.  To
know if this is your ap you must send out a probe with the proper name to
this station, he will respond directly to you if you got it right.  From
there the 802.11 auth and association steps can happen as you know the
proper mac address of the ap.  Its common for several AP's to be assigned
the same name, in this case you should really listen for the one with the
strongest signal strength as its likely the closest.

Sorry if this isn't useful, if nothing else it might make some of the magic
numbers which always seem to be about to have some more meaning.

Regards,

Richard W.


"David Presotto" <presotto@plan9.bell-labs.com> wrote in message
news:<0804bb7df734019ee83edc06179e4f32@plan9.bell-labs.com>...
> I've updated the kernel sources for:
> 
> port/netif.h
> port/netif.c
> port/wavelan.h
> port/wavelan.c
> 
> to try to get scanning for base stations/access points to work.  I 
> ripped off what I could from Linux but seem to be faiing miserably.  
> If I don't set the essid, the scanning seems to work but doesn't 
> return the essid of the access points. It also doesn't get all the 
> access points in range.  If I set the essid, it gets them all and 
> returns the essid values.
> 
> I'm clearly doing something wrong but don't see what.  If anyone can 
> help, I'ld appreciate it.
> 
> To get the scanning to work:
> 
> 	% cd /net/ether0/0
> 	% cat data &
> 	% echo scanbs 5 > ctl
> 
> The '5' is the seconds between scans (5 is the minimum).
> 
> You might also want to turn stuff off to see if it changes
> things:
> 
> 	% echo crypt off > ctl
> 	% echo essid default > ctl
> 
> Thanks


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-18 20:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-18  2:21 [9fans] scanning for base stations/access points David Presotto
2003-01-18 13:06 Woodruff, Richard
2003-01-18 13:12 ` David Presotto
2003-01-18 20:08   ` jmk
2003-01-18 20:10     ` jmk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).