wi: scanning for network names
Matthew Luckie <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] To Unsubscribe: send mail to [email protected] with "unsubscribe freebsd-mobile" in the body of the message