diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2007-07-18 18:22:27 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2007-07-18 18:22:27 +0000 |
commit | f96f4359e5d16d4ee820e670335e29bb9a2180d5 (patch) | |
tree | 592ae0d446185aea47dfa3d1b25f150257ed3b26 /sys/dev | |
parent | d429c676df59fae16e9728987a4539d8c6207e10 (diff) |
convert code under #if 0 to the new ieee80211_key structure.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/atw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/atw.c b/sys/dev/ic/atw.c index a6a42f15b75..3050e76ed25 100644 --- a/sys/dev/ic/atw.c +++ b/sys/dev/ic/atw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atw.c,v 1.53 2007/06/07 20:20:15 damien Exp $ */ +/* $OpenBSD: atw.c,v 1.54 2007/07/18 18:22:26 damien Exp $ */ /* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */ /*- @@ -2228,17 +2228,17 @@ atw_write_wep(struct atw_softc *sc) #if 0 for (i = 0; i < IEEE80211_WEP_NKID; i++) { - if (ic->ic_nw_keys[i].wk_len > 5) { + if (ic->ic_nw_keys[i].k_len > 5) { buf[i][1] = ATW_WEP_ENABLED | ATW_WEP_104BIT; - } else if (ic->ic_nw_keys[i].wk_len != 0) { + } else if (ic->ic_nw_keys[i].k_len != 0) { buf[i][1] = ATW_WEP_ENABLED; } else { buf[i][1] = 0; continue; } - buf[i][0] = ic->ic_nw_keys[i].wk_key[0]; - memcpy(&buf[i][2], &ic->ic_nw_keys[i].wk_key[1], - ic->ic_nw_keys[i].wk_len - 1); + buf[i][0] = ic->ic_nw_keys[i].k_key[0]; + memcpy(&buf[i][2], &ic->ic_nw_keys[i].k_key[1], + ic->ic_nw_keys[i].k_len - 1); } reg = ATW_READ(sc, ATW_MACTEST); |