changeset 3993:9abc97b92b88

6540183 panic in ieee80211_match_bss
author eh146360
date Sun, 08 Apr 2007 19:47:02 -0700
parents a83e2b1abacb
children 4fafdadace7c
files usr/src/uts/common/io/net80211/net80211_node.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/net80211/net80211_node.c	Fri Apr 06 19:04:25 2007 -0700
+++ b/usr/src/uts/common/io/net80211/net80211_node.c	Sun Apr 08 19:47:02 2007 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -592,6 +592,14 @@
 			ieee80211_node_reclaim(nt, tmpin);
 			continue;
 		}
+		/*
+		 * It's possible at some special moments, the in_chan will
+		 * be none. Need to skip the null node.
+		 */
+		if (in->in_chan == IEEE80211_CHAN_ANYC) {
+			in = list_next(&nt->nt_node, in);
+			continue;
+		}
 		if (ieee80211_match_bss(ic, in) == 0) {
 			if (selbs == NULL)
 				selbs = in;