diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2018-04-28 14:49:08 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2018-04-28 14:49:08 +0000 |
commit | 4f16860a0f12c87749c2085c6c759ed94e80e071 (patch) | |
tree | d88f54a9b99231eaee52d60b58ea5776aa98514f /sys/net80211/ieee80211_node.h | |
parent | 3646cbe53e06f4d6b90cafda55577c5459fadcfe (diff) |
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@
Diffstat (limited to 'sys/net80211/ieee80211_node.h')
-rw-r--r-- | sys/net80211/ieee80211_node.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 *); |