Make sure IFM_AVALID is also set when checking ifm_status.
Submitted by: yongari
This commit is contained in:
parent
5bc4f6b3ab
commit
e7b969bbee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254021
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user