diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2013-08-07 15:55:12 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2013-08-07 15:55:12 +0000 |
commit | dbf751d8dcba52ecdbffa7ca29db6f75bc9e2b8b (patch) | |
tree | 36afaef76139f6849c2cec9eb1a8331e138a6cdf | |
parent | 410d14e3edacd5e17eeab5f8721b55686a67de55 (diff) | |
download | FreeBSD-src-dbf751d8dcba52ecdbffa7ca29db6f75bc9e2b8b.zip FreeBSD-src-dbf751d8dcba52ecdbffa7ca29db6f75bc9e2b8b.tar.gz |
Fix previous commit: both flags must be set.
-rw-r--r-- | contrib/wpa/src/drivers/driver_wired.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/wpa/src/drivers/driver_wired.c b/contrib/wpa/src/drivers/driver_wired.c index 0501969..48ae011 100644 --- a/contrib/wpa/src/drivers/driver_wired.c +++ b/contrib/wpa/src/drivers/driver_wired.c @@ -473,7 +473,8 @@ static int wpa_driver_wired_get_ifstatus(const char *ifname, int *status) 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; } |