summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-03-30 00:15:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-03-30 00:15:25 +0000
commit52a304f21efdbdc069583c7f7d5e22f3de5ade7e (patch)
treecb0e99cf89e5e1c26901703c4131a62124d7c006
parent6a145c31ae212865592d07e2f4072597c53a07fb (diff)
Actually write new value to the card for SIOCS80211NWID ioctl
-rw-r--r--sys/dev/ic/if_wi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index cb2998725f7..d0ea56b84cc 100644
--- a/sys/dev/ic/if_wi.c
+++ b/sys/dev/ic/if_wi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi.c,v 1.26 2002/03/29 02:43:34 millert Exp $ */
+/* $OpenBSD: if_wi.c,v 1.27 2002/03/30 00:15:24 millert Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -124,7 +124,7 @@ u_int32_t widebug = WIDEBUG;
#if !defined(lint) && !defined(__OpenBSD__)
static const char rcsid[] =
- "$OpenBSD: if_wi.c,v 1.26 2002/03/29 02:43:34 millert Exp $";
+ "$OpenBSD: if_wi.c,v 1.27 2002/03/30 00:15:24 millert Exp $";
#endif /* lint */
#ifdef foo
@@ -1341,6 +1341,7 @@ wi_ioctl(ifp, command, data)
memcmp(sc->wi_net_name.i_nwid, nwid.i_nwid, nwid.i_len) == 0)
break;
wi_set_ssid(&sc->wi_net_name, nwid.i_nwid, nwid.i_len);
+ WI_SETSTR(WI_RID_DESIRED_SSID, sc->wi_net_name);
if (ifp->if_flags & IFF_UP)
/* Reinitialize WaveLAN. */
wi_init(ifp);