summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2006-11-30 17:23:35 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2006-11-30 17:23:35 +0000
commitfe44dad7b96dbd54f5d898111742da8e2e3bffb6 (patch)
tree913cec159272ccd973ceb7b9c6f177302a06a0b0
parent5cbb9f2375f42478081af0d6aaac239e18ee841f (diff)
fix wep key index in firmware command.
ok mglocker@
-rw-r--r--sys/dev/ic/malo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c
index 10782915ae8..ab4f060ad70 100644
--- a/sys/dev/ic/malo.c
+++ b/sys/dev/ic/malo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malo.c,v 1.46 2006/11/30 08:20:25 mglocker Exp $ */
+/* $OpenBSD: malo.c,v 1.47 2006/11/30 17:23:34 damien Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
@@ -1912,7 +1912,7 @@ malo_set_wepkey(struct malo_softc *sc)
if (wk->wk_len == 0)
continue;
- if (malo_cmd_set_wepkey(sc, wk, ic->ic_wep_txkey))
+ if (malo_cmd_set_wepkey(sc, wk, i))
return (ENXIO);
}