On Tue, Oct 25, 2016 at 01:52:22PM -0500, [email protected] wrote:
>
> This may seem strange, but iwm won't connect to my witless network if I have
> "Hidden" enabled in my cable modem.
>
> The command I use to connect is:
>
> ifconfig iwm0 nwid "NetworkNameHere" wpakey "PasswordHere"
> dhclient iwm0
>
> The error I receive is:
>
> iwm0: no link ........... sleeping
Perhaps it will work if we make the firmware send a probe request
to the hidden SSID? Please try again with the diff below.
This diff probably breaks 'ifconfig iwm0 scan' while associated though, since
now the firmware filters out beacons with a different SSID and you'll only
see the current SSID when scanning while associated (at last that's what
it did last time I tried, which is why this code is wrapped in #if 0).
Index: if_iwm.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_iwm.c,v
retrieving revision 1.144
diff -u -p -r1.144 if_iwm.c
--- if_iwm.c 8 Oct 2016 14:37:48 -0000 1.144
+++ if_iwm.c 25 Oct 2016 19:34:29 -0000
@@ -4487,10 +4487,8 @@ iwm_lmac_scan_fill_channels(struct iwm_s
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++;
}
@@ -4516,10 +4514,8 @@ iwm_umac_scan_fill_channels(struct iwm_s
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++;
}