summaryrefslogtreecommitdiff
path: root/sys/dev/ic/qwx.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2024-02-15 15:53:52 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2024-02-15 15:53:52 +0000
commitf8f3b9bdf44570f5feb3405d35f6d0523d0b898d (patch)
treef806e4ed452a0828ad48bd0a6f99f92cf9eab394 /sys/dev/ic/qwx.c
parent316ea5659ae7438518f7f2ad99041429a660ab8a (diff)
make qwx(4) clean up ic_bss and set link down when moving into SCAN state
This matches what iwx(4) is doing.
Diffstat (limited to 'sys/dev/ic/qwx.c')
-rw-r--r--sys/dev/ic/qwx.c10
1 files changed, 9 insertions, 1 deletions
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 <stsp@openbsd.org>
@@ -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);