diff options
author | jkim <jkim@FreeBSD.org> | 2007-12-05 17:13:45 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2007-12-05 17:13:45 +0000 |
commit | bc9e265c9f3be772871c21c7fcf1af50141f8626 (patch) | |
tree | df0b9aeeadec696883cb22056eca04479d56253f /sbin | |
parent | 4487f06b05a86d08708b1e443a0376c53b8e82c0 (diff) | |
download | FreeBSD-src-bc9e265c9f3be772871c21c7fcf1af50141f8626.zip FreeBSD-src-bc9e265c9f3be772871c21c7fcf1af50141f8626.tar.gz |
Teach dhclient(8) about net80211 link (association) status.
Reviewed by: brooks
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dispatch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c index 2fec913..02766e0 100644 --- a/sbin/dhclient/dispatch.c +++ b/sbin/dhclient/dispatch.c @@ -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 |