From owner-freebsd-gnome@FreeBSD.ORG Thu Aug 18 07:52:08 2005 Return-Path: X-Original-To: gnome@freebsd.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2158316A41F for ; Thu, 18 Aug 2005 07:52:08 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (creme-brulee.marcuscom.com [24.172.16.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D00943D45 for ; Thu, 18 Aug 2005 07:52:07 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.13.3/8.13.3) with ESMTP id j7I7qNGW038807; Thu, 18 Aug 2005 03:52:23 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Phillip Neumann In-Reply-To: <1124326038.12095.16.camel@book.sofsis.cl> References: <1124326038.12095.16.camel@book.sofsis.cl> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-OcGD7AFZGZ0oLieiBNvv" Organization: MarcusCom, Inc. Date: Thu, 18 Aug 2005 03:52:06 -0400 Message-Id: <1124351526.17824.19.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Cc: FreeBSD GNOME Users Subject: Re: Wireless X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2005 07:52:08 -0000 --=-OcGD7AFZGZ0oLieiBNvv Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2005-08-18 at 00:47 +0000, Phillip Neumann wrote: > As i wanted to forget about playing with ifconfig to configure the > wireless connection, and did not find something like wifi-radar for > linux (the python program),=20 > did a similar thing wich speaks with ifconfig. >=20 > It works most of the time here. It works over mono and gtk#2 >=20 >=20 > anyone has a wireless card to test this there?.. > what do you think? >=20 > mine is a intel2100 card. >=20 > the program works with > "ifconfig ipw0" > so if you have lets say the wi0 device, do this before > "ifconfig wi0 name ipw0" >=20 > (how do i list all wifi devices?) There's no good way to do it with ifconfig, but one way that will work (and we've used similar methods in other apps) is to create an array or hash of all known wireless interfaces. Basically: an iwi ipw ndis ath wi ral ural Then, you can use ifconfig -l to list all available interfaces, and do further processing on any that match your static list. >=20 >=20 >=20 > Problems i have found (do you get the same ones?): >=20 > - The Process() class doesnt see to work fine, it leaves > processes behind You need to cleanup after your process. In Java, this is done using the Process.waitFor() method. I'm sure there is something similar in C#. > - ifconfig ipw0 scan does not delete ssid's when the becomse offline > (driver problem?) I'm not so sure. Why would you want it to delete SSIDs just because the interface goes down? If it were brought up, having the SSID configured would give it a better chance of reconnecting. >=20 >=20 > FreeBSD 6.0-beta2 on x86 > and Mono 1.1.8.3 >=20 >=20 > http://sofsis.cl/GW/GWireless.exe > http://sofsis.cl/GW/GWireless-0.0.2.tar.gz >=20 >=20 I haven't yet given myself over to Mono, but the screen shots look promising. You might want to expand to WPA support as well. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-OcGD7AFZGZ0oLieiBNvv Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDBD4mb2iPiv4Uz4cRAvyDAJ9KB3FojkaizCZk5XQCe0DTIPpR0wCfS9Dd PpOHPgNmImHSyOn/T79JlkA= =DQTu -----END PGP SIGNATURE----- --=-OcGD7AFZGZ0oLieiBNvv--