Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2013 04:03:31 +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: r254021 - head/contrib/wpa/src/drivers
Message-ID:  <201308070403.r7743VIP004811@svn.freebsd.org>

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



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