From owner-freebsd-mobile Tue Jun 25 4:23:42 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from smtp4.ihug.co.nz (smtp4.ihug.co.nz [203.109.252.5]) by hub.freebsd.org (Postfix) with ESMTP id CCA9F37B400 for ; Tue, 25 Jun 2002 04:23:37 -0700 (PDT) Received: from 203-173-241-214.adsl.ihug.co.nz (ihug.co.nz) [203.173.241.214] by smtp4.ihug.co.nz with esmtp (Exim 3.22 #1 (Debian)) id 17MoQ4-0000SR-00; Tue, 25 Jun 2002 23:23:36 +1200 Message-ID: <3D1852B7.3040306@ihug.co.nz> Date: Tue, 25 Jun 2002 23:23:35 +1200 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020608 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Subject: wi: scanning for network names Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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