Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Dec 2004 02:48:45 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 66383 for review
Message-ID:  <200412040248.iB42mj9P018073@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=66383

Change 66383 by sam@sam_ebb on 2004/12/04 02:48:01

	o clear global crypto keys when going to init state
	o add hack to catch a bogus state transition

Affected files ...

.. //depot/projects/wifi/sys/net80211/ieee80211_proto.c#13 edit

Differences ...

==== //depot/projects/wifi/sys/net80211/ieee80211_proto.c#13 (text+ko) ====

@@ -849,6 +849,10 @@
 				break;
 			case IEEE80211_M_HOSTAP:
 				nt = ic->ic_sta;
+				if (nt == NULL) {	/* XXX cannot happen */
+					if_printf(ifp, "no sta table (run)\n");
+					break;
+				}
 				IEEE80211_NODE_LOCK(nt);
 				TAILQ_FOREACH(ni, &nt->nt_node, ni_list) {
 					if (ni->ni_associd == 0)
@@ -872,6 +876,10 @@
 				break;
 			case IEEE80211_M_HOSTAP:
 				nt = ic->ic_sta;
+				if (nt == NULL) {	/* XXX cannot happen */
+					if_printf(ifp, "no sta table (assoc)\n");
+					break;
+				}
 				IEEE80211_NODE_LOCK(nt);
 				TAILQ_FOREACH(ni, &nt->nt_node, ni_list) {
 					IEEE80211_SEND_MGMT(ic, ni,
@@ -890,6 +898,7 @@
 			ic->ic_mgt_timer = 0;
 			IF_DRAIN(&ic->ic_mgtq);
 			ieee80211_reset_bss(ic);
+			ieee80211_crypto_delglobalkeys(ic);
 			break;
 		}
 		if (ic->ic_auth->ia_detach != NULL)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412040248.iB42mj9P018073>