From acdfe59f3def14a746d4eb7346ffc9d80faadd5a Mon Sep 17 00:00:00 2001 From: ambrisko Date: Tue, 26 Feb 2002 05:43:05 +0000 Subject: 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 --- sys/dev/an/if_an.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/an') diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c index c058706..856080b 100644 --- a/sys/dev/an/if_an.c +++ b/sys/dev/an/if_an.c @@ -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 *************/ -- cgit v1.1