diff options
author | 2007-09-11 18:06:11 +0000 | |
---|---|---|
committer | 2007-09-11 18:06:11 +0000 | |
commit | e827766f535a176fe229b5f10e969dfe65f9298c (patch) | |
tree | 6673f6026613365117fb6d53274ceb5a27395c55 | |
parent | More baudrate fixes. Again don't forget to initialize the iface->baudrate. (diff) | |
download | wireguard-openbsd-e827766f535a176fe229b5f10e969dfe65f9298c.tar.xz wireguard-openbsd-e827766f535a176fe229b5f10e969dfe65f9298c.zip |
fix a bug in the scan command I introduced with my previous commit.
-rw-r--r-- | sys/dev/pci/if_wpi.c | 3 |
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); |