From owner-freebsd-gnome@FreeBSD.ORG Wed Apr 23 18:06:08 2008 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B5861065676 for ; Wed, 23 Apr 2008 18:06:08 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from QMTA08.emeryville.ca.mail.comcast.net (qmta08.emeryville.ca.mail.comcast.net [76.96.30.80]) by mx1.freebsd.org (Postfix) with ESMTP id D13E78FC19 for ; Wed, 23 Apr 2008 18:06:07 +0000 (UTC) (envelope-from cokane@freebsd.org) Received: from OMTA01.emeryville.ca.mail.comcast.net ([76.96.30.11]) by QMTA08.emeryville.ca.mail.comcast.net with comcast id H5mf1Z0020EPchoA804700; Wed, 23 Apr 2008 18:04:38 +0000 Received: from discordia ([24.60.135.75]) by OMTA01.emeryville.ca.mail.comcast.net with comcast id H65U1Z00W1dmTCQ8M00000; Wed, 23 Apr 2008 18:05:29 +0000 X-Authority-Analysis: v=1.0 c=1 a=EV7UTiz9OD4A:10 a=lHhomMgNnVoA:10 a=h_bonhEpqC4CY9crl8kA:9 a=0faap1y0RY8hksMkRd4A:7 a=bDta6weGaB9YzRMV8lB9PpR5-3oA:4 a=LY0hPdMaydYA:10 a=9gsOZQz77mD35WoUG-wA:9 a=b7U5Feg3TBxVCE4ipuHBMEgWcCUA:4 a=rPt6xJ-oxjAA:10 Received: by discordia (Postfix, from userid 103) id 5B3C316B55B; Wed, 23 Apr 2008 14:05:28 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8-gr1 Received: from [172.20.1.3] (erwin.int.cokane.org [172.20.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by discordia (Postfix) with ESMTP id C581116B55D; Wed, 23 Apr 2008 14:05:14 -0400 (EDT) From: Coleman Kane To: Sam Leffler In-Reply-To: <480F7607.5050004@freebsd.org> References: <1208971129.6154.13.camel@localhost> <1208971281.6154.18.camel@localhost> <480F735A.4080001@freebsd.org> <1208972527.6154.24.camel@localhost> <480F7607.5050004@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-HNIi/YSFFzq1v9WhI5vf" Organization: FreeBSD Project Date: Wed, 23 Apr 2008 14:04:33 -0400 Message-Id: <1208973873.6154.31.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 FreeBSD GNOME Team Port Cc: gnome@freebsd.org, marcus@freebsd.org Subject: Re: Update to net/gnome-netstatus to support new wlan system in -CURRENT 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: Wed, 23 Apr 2008 18:06:08 -0000 --=-HNIi/YSFFzq1v9WhI5vf Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2008-04-23 at 10:46 -0700, Sam Leffler wrote: > Coleman Kane wrote: > > On Wed, 2008-04-23 at 10:35 -0700, Sam Leffler wrote: > > =20 > >> Coleman Kane wrote: > >> =20 > >>> On Wed, 2008-04-23 at 13:18 -0400, Coleman Kane wrote: > >>> =20 > >>> =20 > >>>> Hi, > >>>> > >>>> I put together some changes to the net/gnome-netstatus applet to all= ow > >>>> it to detect and work with the new wlan interface system that was ju= st > >>>> introduced in CURRENT. > >>>> > >>>> This new code doesn't identify non-wlanN interfaces as wifi anymore. > >>>> > >>>> I think it may need some help in getting signal-strength detection > >>>> properly using the if_ndis driver. Mine keeps telling me that the si= gnal > >>>> strength is always 100% no matter where I walk in my apt. > >>>> > >>>> =20 > >>>> =20 > >>> Yes, I do mean to actually attach the patch too. > >>> > >>> =20 > >>> =20 > >> As I told you previously keying off the ifnet name is a mistake. What= =20 > >> you can do is check the media status and for any 802.3 interface look=20 > >> for a backpointer in the MIB to a parent device that must be marked as= =20 > >> an 802.11 device. Right now this can be defeated if ifnet is renamed=20 > >> such that you cannot identify the wlanX unity # to find the MIB entry=20 > >> under net.wlan.X.%parent. > >> > >> Separately you appear to have added "an", "rum", and "ray". I'm not=20 > >> sure what this code does but again using ifnet names is a mistake. In= =20 > >> 7.x you can do a similar search of the net.wlan.X MIB space using the=20 > >> %parent backpointer to identify an 802.11 device. wlandebug.c has cru= de=20 > >> code you can crib (for 7.x). > >> > >> I don't recall if 6.x has the backpointer in the MIB namespace to use. > >> > >> Sam > >> > >> =20 > > > > The original code was written this way, so I was just mimicking it. You= r > > idea sounds a lot more stable. The addition of the "rum" and "ray" > > interfaces is done by the original patch, as the upstream GNOME code > > hadn't been written to expect either of those yet. The "an" device isn'= t > > added, it's part of the surrounding text of the patch. You're looking a= t > > a patch-of-a-patch... > > > > Anyhow, I'm not the original author but these changes probably make it > > better now than it was before (and my netstatus applet works now). I'll > > see if I can find some time to re-implement this properly over the > > weekend. We might be able to get more iface info in there as well. > > > > =20 > Ok, thanks. FWIW there is a large body of 802.11-related code that=20 > should be lifted form various parts of the src tree into a lib80211 or=20 > similar. For example there is now an XML database of regulatory domain=20 > information that ifconfig uses. UI apps could easily want to use this=20 > info along w/ many other bits that are mostly used by ifconfig at the=20 > moment. >=20 > I am happy to work w/ anyone that's interested in this. >=20 > Sam >=20 Sam, Maybe this would be a better application of my time... I'll start looking into it this weekend...dump some info onto wiki.freebsd.org....etc... Then port gnome-netstatus to that in some manner (while preserving prior compatibility). I still recommend applying my changes to the port in the meantime, as it will ensure that current users aren't twiddling their thumbs on a now-broken applet. --=20 Coleman Kane --=-HNIi/YSFFzq1v9WhI5vf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEABECAAYFAkgPei8ACgkQcMSxQcXat5cXPQCgggL2VTjhtAvx4wkub2k5O232 pzUAni8jlSMUD4/wtGXGwnXjk/8G0nRy =5NvP -----END PGP SIGNATURE----- --=-HNIi/YSFFzq1v9WhI5vf--