From owner-svn-src-all@FreeBSD.ORG Wed Aug 7 04:03:31 2013 Return-Path: Delivered-To: svn-src-all@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 5E866B0D; Wed, 7 Aug 2013 04:03:31 +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 4B4482488; Wed, 7 Aug 2013 04:03:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7743VHN004812; Wed, 7 Aug 2013 04:03:31 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r7743VIP004811; Wed, 7 Aug 2013 04:03:31 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201308070403.r7743VIP004811@svn.freebsd.org> From: Rui Paulo Date: Wed, 7 Aug 2013 04:03:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254021 - 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-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 04:03:31 -0000 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; }