diff options
author | sam <sam@FreeBSD.org> | 2005-07-10 00:17:05 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-07-10 00:17:05 +0000 |
commit | 0cf4212697b43b0db220a1214814a995e8b35821 (patch) | |
tree | 338cf1d70e532734bbaeb8c6bc1dd2dae9dd11cf /sys/dev/iwi | |
parent | aa33c1cc86a8bd32c93cc88f706b51a697c63a7c (diff) | |
download | FreeBSD-src-0cf4212697b43b0db220a1214814a995e8b35821.zip FreeBSD-src-0cf4212697b43b0db220a1214814a995e8b35821.tar.gz |
remove driver-private key allocators; use the default one instead
so wpa keys are handled properly
Reviewed by: avatar
Approved by: re (scottl)
Diffstat (limited to 'sys/dev/iwi')
-rw-r--r-- | sys/dev/iwi/if_iwi.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index 24e3eb9..8d4312d 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -116,8 +116,6 @@ static int iwi_alloc_rx_ring(struct iwi_softc *, struct iwi_rx_ring *, int); static void iwi_reset_rx_ring(struct iwi_softc *, struct iwi_rx_ring *); static void iwi_free_rx_ring(struct iwi_softc *, struct iwi_rx_ring *); -static int iwi_key_alloc(struct ieee80211com *, - const struct ieee80211_key *); static int iwi_media_change(struct ifnet *); static void iwi_media_status(struct ifnet *, struct ifmediareq *); static int iwi_newstate(struct ieee80211com *, enum ieee80211_state, int); @@ -365,7 +363,6 @@ iwi_attach(device_t dev) /* override state transition machine */ sc->sc_newstate = ic->ic_newstate; ic->ic_newstate = iwi_newstate; - ic->ic_crypto.cs_key_alloc = iwi_key_alloc; ieee80211_media_init(ic, iwi_media_change, iwi_media_status); bpfattach2(ifp, DLT_IEEE802_11_RADIO, @@ -799,15 +796,6 @@ iwi_resume(device_t dev) } static int -iwi_key_alloc(struct ieee80211com *ic, const struct ieee80211_key *k) -{ - if (k >= ic->ic_nw_keys && k < &ic->ic_nw_keys[IEEE80211_WEP_NKID]) - return k - ic->ic_nw_keys; - - return IEEE80211_KEYIX_NONE; -} - -static int iwi_media_change(struct ifnet *ifp) { struct iwi_softc *sc = ifp->if_softc; |