--- src/sys/dev/netif/ural/if_ural.c 2007/03/30 11:39:34 1.9 +++ src/sys/dev/netif/ural/if_ural.c 2007/04/23 12:35:03 1.10 @@ -137,7 +137,7 @@ Static void ural_read_multi(struct ural int); Static void ural_write(struct ural_softc *, uint16_t, uint16_t); Static void ural_write_multi(struct ural_softc *, uint16_t, void *, - int); + int) __unused; Static void ural_bbp_write(struct ural_softc *, uint8_t, uint8_t); Static uint8_t ural_bbp_read(struct ural_softc *, uint8_t); Static void ural_rf_write(struct ural_softc *, uint8_t, uint32_t); @@ -2057,7 +2057,6 @@ ural_init(void *priv) struct ural_softc *sc = priv; struct ieee80211com *ic = &sc->sc_ic; struct ifnet *ifp = &ic->ic_if; - struct ieee80211_key *wk; struct ural_rx_data *data; uint16_t tmp; usbd_status error; @@ -2110,15 +2109,6 @@ ural_init(void *priv) ural_set_macaddr(sc, ic->ic_myaddr); /* - * Copy WEP keys into adapter's memory (SEC_CSR0 to SEC_CSR31). - */ - for (i = 0; i < IEEE80211_WEP_NKID; i++) { - wk = &ic->ic_crypto.cs_nw_keys[i]; - ural_write_multi(sc, wk->wk_keyix * IEEE80211_KEYBUF_SIZE + - RAL_SEC_CSR0, wk->wk_key, IEEE80211_KEYBUF_SIZE); - } - - /* * Allocate xfer for AMRR statistics requests. */ sc->stats_xfer = usbd_alloc_xfer(sc->sc_udev);