diff options
author | asmodai <asmodai@FreeBSD.org> | 2001-11-15 15:31:51 +0000 |
---|---|---|
committer | asmodai <asmodai@FreeBSD.org> | 2001-11-15 15:31:51 +0000 |
commit | c5e0ef53986c30b6d8be74f0137da4e3c72e9f5b (patch) | |
tree | 75b28383b4c313cb98ecdc42577d0154386a26bc /sbin/ifconfig/ifmedia.c | |
parent | 00bf4cdf85ac9fcfb9a965a840cd1acc77c06f28 (diff) | |
download | FreeBSD-src-c5e0ef53986c30b6d8be74f0137da4e3c72e9f5b.zip FreeBSD-src-c5e0ef53986c30b6d8be74f0137da4e3c72e9f5b.tar.gz |
Report ad hoc mode correctly.
Submitted by: udp <udp@sneakerz.org>
Diffstat (limited to 'sbin/ifconfig/ifmedia.c')
-rw-r--r-- | sbin/ifconfig/ifmedia.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifmedia.c b/sbin/ifconfig/ifmedia.c index 77f7fcc..3c46e05 100644 --- a/sbin/ifconfig/ifmedia.c +++ b/sbin/ifconfig/ifmedia.c @@ -164,6 +164,8 @@ media_status(s, info) /* XXX: Different value for adhoc? */ if (ifmr.ifm_status & IFM_ACTIVE) printf("associated"); + else if (ifmr.ifm_status & IFM_AVALID) + printf("ad hoc"); else printf("no carrier"); break; |