-/* $OpenBSD: if_iwx.c,v 1.126 2021/12/03 12:42:39 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.127 2021/12/03 13:17:32 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
* Firmware may become unresponsive when asked to send
* a directed probe request on a passive channel.
*/
+#if 0 /* Some people see "device timeout" after active scans. */
if (n_ssids != 0 && !bgscan &&
(c->ic_flags & IEEE80211_CHAN_PASSIVE) == 0)
chan->flags = htole32(1 << 0); /* select SSID 0 */
+#endif
chan++;
nchan++;
}
int
iwx_umac_scan_v14(struct iwx_softc *sc, int bgscan)
{
+#if 0 /* Some people see "device timeout" after active scans. */
struct ieee80211com *ic = &sc->sc_ic;
+#endif
struct iwx_host_cmd hcmd = {
.id = iwx_cmd_id(IWX_SCAN_REQ_UMAC, IWX_LONG_GROUP, 0),
.len = { 0, },
return err;
}
+#if 0 /* Some people see "device timeout" after active scans. */
if (ic->ic_des_esslen != 0) {
scan_p->probe_params.direct_scan[0].id = IEEE80211_ELEMID_SSID;
scan_p->probe_params.direct_scan[0].len = ic->ic_des_esslen;
bitmap_ssid |= (1 << 0);
n_ssid = 1;
}
+#endif
iwx_scan_umac_fill_ch_p_v6(sc, &scan_p->channel_params, bitmap_ssid,
n_ssid, bgscan);