mark the CLR key installed for open auth stations such that it is reclaimed

when net80211 tears down station state; without this we leak keycache slots
This commit is contained in:
Sam Leffler 2009-02-10 19:27:50 +00:00
parent a32ac9d3a9
commit 330528331c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188447

View file

@ -6093,6 +6093,8 @@ ath_setup_stationkey(struct ieee80211_node *ni)
/* XXX locking? */
ni->ni_ucastkey.wk_keyix = keyix;
ni->ni_ucastkey.wk_rxkeyix = rxkeyix;
/* NB: must mark device key to get called back on delete */
ni->ni_ucastkey.wk_flags |= IEEE80211_KEY_DEVKEY;
IEEE80211_ADDR_COPY(ni->ni_ucastkey.wk_macaddr, ni->ni_macaddr);
/* NB: this will create a pass-thru key entry */
ath_keyset(sc, &ni->ni_ucastkey, vap->iv_bss);