From: stsp Date: Thu, 15 Feb 2024 15:53:51 +0000 (+0000) Subject: make qwx(4) clean up ic_bss and set link down when moving into SCAN state X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ca6dee1d942da1dc0763e0bb438cef6ceb77eb68;p=openbsd make qwx(4) clean up ic_bss and set link down when moving into SCAN state This matches what iwx(4) is doing. --- diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c index 2224dbb71cb..9f9d81afd1f 100644 --- a/sys/dev/ic/qwx.c +++ b/sys/dev/ic/qwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qwx.c,v 1.38 2024/02/15 11:57:38 stsp Exp $ */ +/* $OpenBSD: qwx.c,v 1.39 2024/02/15 15:53:51 stsp Exp $ */ /* * Copyright 2023 Stefan Sperling @@ -592,6 +592,14 @@ next_scan: printf("%s: %s -> %s\n", ifp->if_xname, ieee80211_state_name[ic->ic_state], ieee80211_state_name[IEEE80211_S_SCAN]); +#if 0 + if ((sc->sc_flags & QWX_FLAG_BGSCAN) == 0) { +#endif + ieee80211_set_link_state(ic, LINK_STATE_DOWN); + ieee80211_node_cleanup(ic, ic->ic_bss); +#if 0 + } +#endif ic->ic_state = IEEE80211_S_SCAN; refcnt_rele_wake(&sc->task_refs); splx(s);