-/* $OpenBSD: if_iwm.c,v 1.378 2021/11/16 12:55:50 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.379 2021/11/17 15:15:32 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
IWM_UMAC_SCAN_GEN_FLAGS2_ALLOW_CHNL_REORDER;
}
- /* Check if we're doing an active directed scan. */
- if (ic->ic_des_esslen != 0) {
- if (isset(sc->sc_ucode_api, IWM_UCODE_TLV_API_SCAN_EXT_CHAN_VER)) {
+ /*
+ * Check if we're doing an active directed scan.
+ * 9k devices may randomly lock up (no interrupts) after association
+ * following active scans. Use passive scan only for now on 9k.
+ */
+ if (sc->sc_device_family != IWM_DEVICE_FAMILY_9000 &&
+ ic->ic_des_esslen != 0) {
+ if (isset(sc->sc_ucode_api,
+ IWM_UCODE_TLV_API_SCAN_EXT_CHAN_VER)) {
tail->direct_scan[0].id = IEEE80211_ELEMID_SSID;
tail->direct_scan[0].len = ic->ic_des_esslen;
memcpy(tail->direct_scan[0].ssid, ic->ic_des_essid,