summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2018-01-14 11:51:35 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2018-01-14 11:51:35 +0000
commit24804a5bfecdad9d37ed9536a4d7cd23e945223b (patch)
tree747624ae4c707cfccbf2fd23689d550739899c31
parent4cffe894935cac8fcf7dbd67479d91992752f0f8 (diff)
Pass our currently configured SSID to iwm(4) scan commands.
This makes connecting to silly "hidden" networks work, which was a long standing problem with iwm(4). My past observations where other SSIDs were filtered from scan results while associated can no longer be reproduced. ok robert phessler
-rw-r--r--sys/dev/pci/if_iwm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index 0ce72d2698f..b2fd03d9152 100644
--- a/sys/dev/pci/if_iwm.c
+++ b/sys/dev/pci/if_iwm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwm.c,v 1.222 2017/12/10 20:34:41 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.223 2018/01/14 11:51:34 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -4741,10 +4741,8 @@ iwm_lmac_scan_fill_channels(struct iwm_softc *sc,
chan->iter_count = htole16(1);
chan->iter_interval = 0;
chan->flags = htole32(IWM_UNIFIED_SCAN_CHANNEL_PARTIAL);
-#if 0 /* makes scanning while associated less useful */
if (n_ssids != 0)
chan->flags |= htole32(1 << 1); /* select SSID 0 */
-#endif
chan++;
nchan++;
}
@@ -4770,10 +4768,8 @@ iwm_umac_scan_fill_channels(struct iwm_softc *sc,
chan->channel_num = ieee80211_mhz2ieee(c->ic_freq, 0);
chan->iter_count = 1;
chan->iter_interval = htole16(0);
-#if 0 /* makes scanning while associated less useful */
if (n_ssids != 0)
chan->flags = htole32(1 << 0); /* select SSID 0 */
-#endif
chan++;
nchan++;
}