PERFORCE change 66383 for review

Sam Leffler sam at FreeBSD.org
Fri Dec 3 18:48:46 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=66383

Change 66383 by sam at 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)


More information about the p4-projects mailing list