Make sure IFM_AVALID is also set when checking ifm_status.

Submitted by:	yongari
This commit is contained in:
rpaulo 2013-08-07 04:03:30 +00:00
parent f82b0dd694
commit e141f5c0ba

View File

@ -473,7 +473,7 @@ static int wpa_driver_wired_get_ifstatus(const char *ifname, int *status)
return -1;
}
close(s);
*status = ifmr.ifm_status & IFM_ACTIVE;
*status = ifmr.ifm_status & (IFM_ACTIVE|IFM_AVALID);
return 0;
}