summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2007-09-11 18:06:12 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2007-09-11 18:06:12 +0000
commit8a2226e256e04bbb38735976ad24a6f210fec7d3 (patch)
tree07a99c058d164c911da230749c3945fd2d7fb393 /sys/dev
parent553326fff9fa1dca9d0360b516c25830e9a04146 (diff)
fix a bug in the scan command I introduced with my previous commit.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_wpi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c
index 4d74f40f3de..e577030cd57 100644
--- a/sys/dev/pci/if_wpi.c
+++ b/sys/dev/pci/if_wpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wpi.c,v 1.54 2007/09/10 20:34:43 damien Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.55 2007/09/11 18:06:11 damien Exp $ */
/*-
* Copyright (c) 2006, 2007
@@ -2384,6 +2384,7 @@ wpi_scan(struct wpi_softc *sc, uint16_t flags)
hdr->plcp_threshold = htole16(1); /* min # of packets */
tx = (struct wpi_cmd_data *)(hdr + 1);
+ memset(tx, 0, sizeof (struct wpi_cmd_data));
tx->flags = htole32(WPI_TX_AUTO_SEQ);
tx->id = WPI_ID_BROADCAST;
tx->lifetime = htole32(WPI_LIFETIME_INFINITE);