mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 15:24:25 +00:00
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:
parent
a32ac9d3a9
commit
330528331c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188447
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue