svn commit: r188447 - head/sys/dev/ath

Sam Leffler sam at FreeBSD.org
Tue Feb 10 11:27:52 PST 2009


Author: sam
Date: Tue Feb 10 19:27:50 2009
New Revision: 188447
URL: http://svn.freebsd.org/changeset/base/188447

Log:
  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

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Tue Feb 10 19:26:42 2009	(r188446)
+++ head/sys/dev/ath/if_ath.c	Tue Feb 10 19:27:50 2009	(r188447)
@@ -6093,6 +6093,8 @@ ath_setup_stationkey(struct ieee80211_no
 		/* 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);


More information about the svn-src-head mailing list