Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Set desired ESSID for probe request.
details: https://anonhg.NetBSD.org/src/rev/ac0feed6635e
branches: trunk
changeset: 534407:ac0feed6635e
user: onoe <onoe%NetBSD.org@localhost>
date: Thu Jul 25 07:15:50 2002 +0000
description:
Set desired ESSID for probe request.
diffstat:
sys/dev/ic/awi.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r e6c3056f2638 -r ac0feed6635e sys/dev/ic/awi.c
--- a/sys/dev/ic/awi.c Thu Jul 25 06:45:38 2002 +0000
+++ b/sys/dev/ic/awi.c Thu Jul 25 07:15:50 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awi.c,v 1.41 2001/11/13 13:14:35 lukem Exp $ */
+/* $NetBSD: awi.c,v 1.42 2002/07/25 07:15:50 onoe Exp $ */
/*-
* Copyright (c) 1999,2000,2001 The NetBSD Foundation, Inc.
@@ -85,7 +85,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: awi.c,v 1.41 2001/11/13 13:14:35 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: awi.c,v 1.42 2002/07/25 07:15:50 onoe Exp $");
#include "opt_inet.h"
#include "bpfilter.h"
@@ -473,6 +473,11 @@
sc->sc_mib_local.Network_Mode =
(ic->ic_flags & IEEE80211_F_ADHOC) ? 0 : 1;
+ memset(&sc->sc_mib_mac.aDesired_ESS_ID, 0, AWI_ESS_ID_SIZE);
+ sc->sc_mib_mac.aDesired_ESS_ID[0] = IEEE80211_ELEMID_SSID;
+ sc->sc_mib_mac.aDesired_ESS_ID[1] = sc->sc_ic.ic_des_esslen;
+ memcpy(&sc->sc_mib_mac.aDesired_ESS_ID[2], sc->sc_ic.ic_des_essid,
+ sc->sc_ic.ic_des_esslen);
if ((error = awi_mode_init(sc)) != 0) {
DPRINTF(("awi_init: awi_mode_init failed %d\n", error));
Home |
Main Index |
Thread Index |
Old Index