Report ad hoc mode correctly.

Submitted by:	udp <udp@sneakerz.org>
This commit is contained in:
Jeroen Ruigrok van der Werven 2001-11-15 15:31:51 +00:00
parent 0a811cbf0c
commit aabb3df7da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86403

View File

@ -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;