Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net80211 Bug fix: reset saw_bss when we start iterating ...



details:   https://anonhg.NetBSD.org/src/rev/6deebc464001
branches:  trunk
changeset: 582879:6deebc464001
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Sun Jul 10 08:11:40 2005 +0000

description:
Bug fix: reset saw_bss when we start iterating over a new interface's
nodes, so that we list every interface's ic_bss node, instead of
listing only the first interface's.

diffstat:

 sys/net80211/ieee80211_netbsd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d5a4f177b5a7 -r 6deebc464001 sys/net80211/ieee80211_netbsd.c
--- a/sys/net80211/ieee80211_netbsd.c   Sun Jul 10 07:12:13 2005 +0000
+++ b/sys/net80211/ieee80211_netbsd.c   Sun Jul 10 08:11:40 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ieee80211_netbsd.c,v 1.4 2005/07/03 20:44:46 dyoung Exp $ */
+/* $NetBSD: ieee80211_netbsd.c,v 1.5 2005/07/10 08:11:40 dyoung Exp $ */
 /*-
  * Copyright (c) 2003-2005 Sam Leffler, Errno Consulting
  * All rights reserved.
@@ -30,7 +30,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211_freebsd.c,v 1.6 2005/01/22 20:29:23 sam Exp $");
 #else
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_netbsd.c,v 1.4 2005/07/03 20:44:46 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_netbsd.c,v 1.5 2005/07/10 08:11:40 dyoung Exp $");
 #endif
 
 /*
@@ -380,6 +380,7 @@
                cur_ifindex = ic->ic_ifp->if_index;
 
                if (cur_ifindex != last_ifindex) {
+                       saw_bss = 0;
                        ifcount++;
                        last_ifindex = cur_ifindex;
                }



Home | Main Index | Thread Index | Old Index