diff options
author | ambrisko <ambrisko@FreeBSD.org> | 2002-02-26 05:43:05 +0000 |
---|---|---|
committer | ambrisko <ambrisko@FreeBSD.org> | 2002-02-26 05:43:05 +0000 |
commit | acdfe59f3def14a746d4eb7346ffc9d80faadd5a (patch) | |
tree | b0a786cec06fbf1de9a1ece21ad466b4c39abda0 /sys/dev | |
parent | 698bf093a69c0d83486209b219553fc8dcbde32b (diff) | |
download | FreeBSD-src-acdfe59f3def14a746d4eb7346ffc9d80faadd5a.zip FreeBSD-src-acdfe59f3def14a746d4eb7346ffc9d80faadd5a.tar.gz |
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
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/an/if_an.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 *************/ |