artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f45021
)
use the correct essid when switching during the ioctl path
author
phessler
<phessler@openbsd.org>
Mon, 10 Sep 2018 08:27:13 +0000
(08:27 +0000)
committer
phessler
<phessler@openbsd.org>
Mon, 10 Sep 2018 08:27:13 +0000
(08:27 +0000)
pointed out by stsp@
sys/net80211/ieee80211_ioctl.c
patch
|
blob
|
history
diff --git
a/sys/net80211/ieee80211_ioctl.c
b/sys/net80211/ieee80211_ioctl.c
index
65c6948
..
7f51c99
100644
(file)
--- a/
sys/net80211/ieee80211_ioctl.c
+++ b/
sys/net80211/ieee80211_ioctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ieee80211_ioctl.c,v 1.6
5 2018/09/09 20:32:55
phessler Exp $ */
+/* $OpenBSD: ieee80211_ioctl.c,v 1.6
6 2018/09/10 08:27:13
phessler Exp $ */
/* $NetBSD: ieee80211_ioctl.c,v 1.15 2004/05/06 02:58:16 dyoung Exp $ */
/*-
@@
-475,7
+475,7
@@
ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
if (ieee80211_add_ess(ic, &join) == 0)
ic->ic_flags |= IEEE80211_F_AUTO_JOIN;
}
- ieee80211_set_ess(ic,
ic->ic_des_essid
);
+ ieee80211_set_ess(ic,
join.i_nwid, join.i_len
);
error = ENETRESET;
break;
case SIOCG80211JOIN: