-.\" $OpenBSD: ifconfig.8,v 1.318 2018/08/29 13:47:19 jca Exp $
+.\" $OpenBSD: ifconfig.8,v 1.319 2018/09/08 15:21:03 phessler Exp $
.\" $NetBSD: ifconfig.8,v 1.11 1996/01/04 21:27:29 pk Exp $
.\" $FreeBSD: ifconfig.8,v 1.16 1998/02/01 07:03:29 steve Exp $
.\"
.\"
.\" @(#)ifconfig.8 8.4 (Berkeley) 6/1/94
.\"
-.Dd $Mdocdate: August 29 2018 $
+.Dd $Mdocdate: September 8 2018 $
.Dt IFCONFIG 8
.Os
.Sh NAME
or
.Cm nwkey
arguments should be specified on the same line.
+May not be used with
+.Cm nwid .
.It Cm -join Ar id
Remove the network with NWID
.Ar id ,
information about the network is not retained.
The empty string allows the interface to connect to any available
access points.
+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.
-/* $OpenBSD: ifconfig.c,v 1.376 2018/08/15 14:43:30 florian Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.377 2018/09/08 15:21:03 phessler Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
struct ieee80211_nwid nwid;
int len;
+ if (strlen(joinname) != 0) {
+ errx(1, "nwid and join may not be used at the same time");
+ }
+
if (d != 0) {
/* no network id is especially desired */
memset(&nwid, 0, sizeof(nwid));
struct ieee80211_join join;
int len;
+ if (strlen(nwidname) != 0) {
+ errx(1, "nwid and join may not be used at the same time");
+ }
+
if (d != 0) {
/* no network id is especially desired */
memset(&join, 0, sizeof(join));