Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2002 23:23:35 +1200
From:      Matthew Luckie <kluckie@ihug.co.nz>
To:        freebsd-mobile@freebsd.org
Subject:   wi: scanning for network names
Message-ID:  <3D1852B7.3040306@ihug.co.nz>

next in thread | raw e-mail | index | archive | help
Hi

I've written some code that ioctl's WI_RID_SCAN_REQ and then gets the 
responses after a short sleep with WI_RID_SCAN_RES

code available http://moat.nlanr.net/~mjl/wiscan.c

This is on a FreeBSD 4.6 laptop with sources cvsup'd 4 hours ago, and

wi0 at port 0x240-0x27f irq 10 slot 0 on pccard0
wi0: 802.11 address: 00:02:2d:03:0c:0c
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station 8.10.01

How should I interpret wreq.wi_len?

26 (see output below) isn't enough for sizeof(struct wi_scan_res) and it 
certainly isn't the number of wireless network names it found.

sizeof wi_data 1024
scanbuf_len 26
sizeof wi_scan_res 62
ssid: 'Matthew Luckie'

Thanks!

-- 
Matthew Luckie
kluckie@ihug.co.nz


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?3D1852B7.3040306>