On Fri, Nov 08, 2019 at 04:28:23PM +0000, Stuart Henderson wrote:
> On 2019/11/08 17:56, Stefan Sperling wrote:
> > The default wifi interface behaviour of connecting to any open network
> > when nothing is configured is confusing people who have gotten used to
> > the behaviour of ifconfig join.
> > 
> > With this diff connecting to any open network on 'ifconfg iwm0 up' requires
> > the user to run ifconfig iwm0 join "" first. Otherwise, only explicitly
> > configured network SSIDs will be used.
> > 
> > This also allows users to scan for available access points without sending
> > out probe, auth, or association requests to random accces points.
> > 
> > ok?
> 
> OK with me.  ifconfig(8) will need an update, but I think this is probably 
> enough.

Yes, indeed. This is what I had in mind for the man page:

diff a9ff202383120429722310361b939682fdaf8f03 /usr/src
blob - 79a5adcd2197d91d9780f29a2c97a091b9177389
file + sbin/ifconfig/ifconfig.8
--- sbin/ifconfig/ifconfig.8
+++ sbin/ifconfig/ifconfig.8
@@ -1044,13 +1044,11 @@ Connect to the network with NWID
 .Ar id .
 Unlike auto-join networks,
 information about the network is not retained.
-The empty string allows the interface to connect to any available
-access points.
+Only one network can be configured at a time.
 May not be used with
 .Cm join .
 .It Cm -nwid
-Set the NWID to the empty string to allow the interface to connect
-to any available access point.
+Clear the currently configured network ID.
 .It Cm nwkey Ar key
 Enable WEP encryption using the specified
 .Ar key .

Reply via email to