svn commit: r254062 - head/contrib/wpa/src/drivers
Rui Paulo
rpaulo at FreeBSD.org
Wed Aug 7 15:55:13 UTC 2013
Author: rpaulo
Date: Wed Aug 7 15:55:12 2013
New Revision: 254062
URL: http://svnweb.freebsd.org/changeset/base/254062
Log:
Fix previous commit: both flags must be set.
Modified:
head/contrib/wpa/src/drivers/driver_wired.c
Modified: head/contrib/wpa/src/drivers/driver_wired.c
==============================================================================
--- head/contrib/wpa/src/drivers/driver_wired.c Wed Aug 7 15:44:58 2013 (r254061)
+++ head/contrib/wpa/src/drivers/driver_wired.c Wed Aug 7 15:55:12 2013 (r254062)
@@ -473,7 +473,8 @@ static int wpa_driver_wired_get_ifstatus
return -1;
}
close(s);
- *status = ifmr.ifm_status & (IFM_ACTIVE|IFM_AVALID);
+ *status = (ifmr.ifm_status & (IFM_ACTIVE|IFM_AVALID)) ==
+ (IFM_ACTIVE|IFM_AVALID);
return 0;
}
More information about the svn-src-all
mailing list