mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
Teach dhclient(8) about net80211 link (association) status.
Reviewed by: brooks MFC after: 3 days
This commit is contained in:
parent
aa1670f3e4
commit
cd765a6594
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174314
@ -329,6 +329,7 @@ interface_status(struct interface_info *ifinfo)
|
||||
if (ifmr.ifm_status & IFM_AVALID) {
|
||||
switch (ifmr.ifm_active & IFM_NMASK) {
|
||||
case IFM_ETHER:
|
||||
case IFM_IEEE80211:
|
||||
if (ifmr.ifm_status & IFM_ACTIVE)
|
||||
goto active;
|
||||
else
|
||||
@ -487,7 +488,9 @@ interface_link_status(char *ifname)
|
||||
close(sock);
|
||||
|
||||
if (ifmr.ifm_status & IFM_AVALID) {
|
||||
if ((ifmr.ifm_active & IFM_NMASK) == IFM_ETHER) {
|
||||
switch (ifmr.ifm_active & IFM_NMASK) {
|
||||
case IFM_ETHER:
|
||||
case IFM_IEEE80211:
|
||||
if (ifmr.ifm_status & IFM_ACTIVE)
|
||||
return (1);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user