[Goodies-commits] r5276 - xfce4-wavelan-plugin/trunk/panel-plugin
Landry Breuil
landry at xfce.org
Mon Aug 18 22:34:59 CEST 2008
Author: landry
Date: 2008-08-18 20:34:59 +0000 (Mon, 18 Aug 2008)
New Revision: 5276
Modified:
xfce4-wavelan-plugin/trunk/panel-plugin/wi_bsd.c
Log:
Signal quality is in wi_val[1] in any cas on NetBSD, confirmed and tested by Jean-Yves
Migeon, thanks !
Double-checked by reading NetBSD cvs in src/sys/net80211/ieee80211_ioctl.c
Support for NetBSD should be okay now, FreeBSD support has to be rewritten to use the new
API which appeared in 7.0 version.
Modified: xfce4-wavelan-plugin/trunk/panel-plugin/wi_bsd.c
===================================================================
--- xfce4-wavelan-plugin/trunk/panel-plugin/wi_bsd.c 2008-08-18 15:40:44 UTC (rev 5275)
+++ xfce4-wavelan-plugin/trunk/panel-plugin/wi_bsd.c 2008-08-18 20:34:59 UTC (rev 5276)
@@ -371,10 +371,7 @@
if ((result = _wi_getval(device, &wr)) != WI_OK)
return(result);
- if (strcmp(device->interface, "ath") == 0) /* For the Atheros Cards */
- *quality = le16toh(wr.wi_val[1]);
- else
- *quality = le16toh(wr.wi_val[0]);
+ *quality = le16toh(wr.wi_val[1]);
return(WI_OK);
}
More information about the Goodies-commits
mailing list