In ad-hoc mode, the "associate" bit is valid to check to see if it is

part of an ad-hoc network.  This means another station needs to be
around so they can both associate.

MFC after:	1 week
This commit is contained in:
Doug Ambrisko 2002-02-26 05:43:05 +00:00
parent 476f923056
commit c9977aaadf

View File

@ -2371,10 +2371,8 @@ an_media_status(ifp, imr)
}
imr->ifm_status = IFM_AVALID;
if (sc->an_config.an_opmode == AN_OPMODE_IBSS_ADHOC)
if (status.an_opmode & AN_STATUS_OPMODE_ASSOCIATED)
imr->ifm_status |= IFM_ACTIVE;
else if (status.an_opmode & AN_STATUS_OPMODE_ASSOCIATED)
imr->ifm_status |= IFM_ACTIVE;
}
/********************** Cisco utility support routines *************/