From 4f16860a0f12c87749c2085c6c759ed94e80e071 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Sat, 28 Apr 2018 14:49:08 +0000 Subject: When starting a background scan, free the nodes table to ensure we get an up-to-date view of APs around us. In particular, we need to kick out the AP we are associated to. Otherwise, our current AP might stay cached if it is turned off while we are scanning, and we could end up picking a now non-existent but "good looking" AP over and over. found with and ok phessler@ --- sys/net80211/ieee80211_node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net80211/ieee80211_node.h') diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h index c6eb702bbe3..5a414fef8b7 100644 --- a/sys/net80211/ieee80211_node.h +++ b/sys/net80211/ieee80211_node.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.h,v 1.73 2018/02/06 22:17:03 phessler Exp $ */ +/* $OpenBSD: ieee80211_node.h,v 1.74 2018/04/28 14:49:07 stsp Exp $ */ /* $NetBSD: ieee80211_node.h,v 1.9 2004/04/30 22:57:32 dyoung Exp $ */ /*- @@ -382,7 +382,7 @@ struct ieee80211_node * const char *, u_int8_t); void ieee80211_release_node(struct ieee80211com *, struct ieee80211_node *); -void ieee80211_free_allnodes(struct ieee80211com *); +void ieee80211_free_allnodes(struct ieee80211com *, int); void ieee80211_iterate_nodes(struct ieee80211com *, ieee80211_iter_func *, void *); void ieee80211_clean_cached(struct ieee80211com *); -- cgit v1.2.3