iwn(4) scans all bands at once, as far as the net80211 stack is concerned.
authorstsp <stsp@openbsd.org>
Wed, 17 Aug 2016 09:43:27 +0000 (09:43 +0000)
committerstsp <stsp@openbsd.org>
Wed, 17 Aug 2016 09:43:27 +0000 (09:43 +0000)
So set the appropriate scan capability flags in the ic.
ok sthen@

sys/dev/pci/if_iwn.c

index 9cf5085..fa2a073 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_iwn.c,v 1.169 2016/07/20 16:24:37 stsp Exp $       */
+/*     $OpenBSD: if_iwn.c,v 1.170 2016/08/17 09:43:27 stsp Exp $       */
 
 /*-
  * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -450,6 +450,8 @@ iwn_attach(struct device *parent, struct device *self, void *aux)
        ic->ic_caps =
            IEEE80211_C_WEP |           /* WEP */
            IEEE80211_C_RSN |           /* WPA/RSN */
+           IEEE80211_C_SCANALL |       /* device scans all channels at once */
+           IEEE80211_C_SCANALLBAND |   /* driver scans all bands at once */
            IEEE80211_C_MONITOR |       /* monitor mode supported */
            IEEE80211_C_SHSLOT |        /* short slot time supported */
            IEEE80211_C_SHPREAMBLE |    /* short preamble supported */