diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2004-12-04 19:01:48 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2004-12-04 19:01:48 +0000 |
commit | 64cfb0201f12757cbf63f3f13ce8806123d606a1 (patch) | |
tree | c772c5965fb2e538e5b6a610de4606e7863908ba /sys/dev/pci/if_iwi.c | |
parent | 20eeebec9f2d042124148e79ecc26c802a32c317 (diff) |
fix shared authentication
Diffstat (limited to 'sys/dev/pci/if_iwi.c')
-rw-r--r-- | sys/dev/pci/if_iwi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index db5eb12bb9b..07b3f305a90 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $Id: if_iwi.c,v 1.14 2004/12/04 17:24:06 damien Exp $ */ +/* $Id: if_iwi.c,v 1.15 2004/12/04 19:01:46 damien Exp $ */ /*- * Copyright (c) 2004 @@ -1812,7 +1812,7 @@ iwi_auth_and_assoc(struct iwi_softc *sc) IWI_MODE_11G; assoc.chan = ieee80211_chan2ieee(ic, ni->ni_chan); if (sc->authmode == IEEE80211_AUTH_SHARED) - assoc.auth = IWI_AUTH_SHARED | ic->ic_wep_txkey; + assoc.auth = (ic->ic_wep_txkey << 4) | IWI_AUTH_SHARED; bcopy(ni->ni_tstamp, assoc.tstamp, 8); assoc.capinfo = htole16(ni->ni_capinfo); assoc.lintval = htole16(ic->ic_lintval); |