svn commit: r254021 - head/contrib/wpa/src/drivers
Rui Paulo
rpaulo at FreeBSD.org
Wed Aug 7 04:03:31 UTC 2013
Author: rpaulo
Date: Wed Aug 7 04:03:30 2013
New Revision: 254021
URL: http://svnweb.freebsd.org/changeset/base/254021
Log:
Make sure IFM_AVALID is also set when checking ifm_status.
Submitted by: yongari
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 01:32:08 2013 (r254020)
+++ head/contrib/wpa/src/drivers/driver_wired.c Wed Aug 7 04:03:30 2013 (r254021)
@@ -473,7 +473,7 @@ static int wpa_driver_wired_get_ifstatus
return -1;
}
close(s);
- *status = ifmr.ifm_status & IFM_ACTIVE;
+ *status = ifmr.ifm_status & (IFM_ACTIVE|IFM_AVALID);
return 0;
}
More information about the svn-src-all
mailing list