summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/net80211/net80211_node.c
diff options
context:
space:
mode:
authoreh146360 <none@none>2007-04-08 19:47:02 -0700
committereh146360 <none@none>2007-04-08 19:47:02 -0700
commite919bf2527d9be309ffa7a8e1e613bed177e7c24 (patch)
tree64dabc1834af95733922ce5b89c02873e823f5bd /usr/src/uts/common/io/net80211/net80211_node.c
parentc54df98acfdb531a1f559529aa3568ca3e8e8d52 (diff)
downloadillumos-joyent-e919bf2527d9be309ffa7a8e1e613bed177e7c24.tar.gz
6540183 panic in ieee80211_match_bss
Diffstat (limited to 'usr/src/uts/common/io/net80211/net80211_node.c')
-rw-r--r--usr/src/uts/common/io/net80211/net80211_node.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/net80211/net80211_node.c b/usr/src/uts/common/io/net80211/net80211_node.c
index 59cb9ccbbf..cdc9789986 100644
--- a/usr/src/uts/common/io/net80211/net80211_node.c
+++ b/usr/src/uts/common/io/net80211/net80211_node.c
@@ -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_end_scan(ieee80211com_t *ic)
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;