On Wed, Aug 08, 2018 at 08:25:46AM -0700, Bryan Vyhmeister wrote: > I have not investigated the full scenario here but using the new join > option for wireless network configuration does not seem to work if I use > an ID of 0, 1, or 2 and probably others. Is this expected? The man page > seems to indicate that this should work fine. From ifconfig(8): > > "The id can either be any text string up to 32 characters in length, or > a series of hexadecimal digits up to 64 digits. Any necessary wpakey or > nwkey arguments should be specified on the same line." > > Here is the scenario to test. > > /etc/hostname.iwm0: > join 0 nwid TEST wpakey 1234567890 > dhcp > > This will not work and I will end up associated to the AP but status > will always stay as no network. > > /etc/hostname.iwm0: > join TEST nwid TEST wpakey 1234567890 > dhcp > > This will work as expected. > > Bryan >
join and nwid are mutually exclusive commands. What you want in hostname.if is either: join TEST wpakey 1234567890 or the plain old: nwid TEST wpakey 1234567890 The man page talks about ESSIDs in hexstring format. This is useful only if the network name cannot be entirely represented in the ASCII character set since there's no support for character encodings other than ASCII.

