From owner-svn-src-head@FreeBSD.ORG Wed Aug 7 15:55:13 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 60F7A5D2; Wed, 7 Aug 2013 15:55:13 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4E42424CD; Wed, 7 Aug 2013 15:55:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r77FtD3c076710; Wed, 7 Aug 2013 15:55:13 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r77FtD0H076709; Wed, 7 Aug 2013 15:55:13 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201308071555.r77FtD0H076709@svn.freebsd.org> From: Rui Paulo Date: Wed, 7 Aug 2013 15:55:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254062 - head/contrib/wpa/src/drivers X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 15:55:13 -0000 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; }