summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2007-12-05 17:13:45 +0000
committerjkim <jkim@FreeBSD.org>2007-12-05 17:13:45 +0000
commitbc9e265c9f3be772871c21c7fcf1af50141f8626 (patch)
treedf0b9aeeadec696883cb22056eca04479d56253f /sbin
parent4487f06b05a86d08708b1e443a0376c53b8e82c0 (diff)
downloadFreeBSD-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.c5
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
OpenPOWER on IntegriCloud