Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2013 15:55:13 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r254062 - head/contrib/wpa/src/drivers
Message-ID:  <201308071555.r77FtD0H076709@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308071555.r77FtD0H076709>