diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2010-12-11 13:27:28 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2010-12-11 13:27:28 +0000 |
commit | ae60ea6c79e69205b7ee0b4ad25d2649563a95d6 (patch) | |
tree | 9a124a59eb8b8aaef554256657c0efd86619d6fe | |
parent | 10f4c91527886268eff1eef4658f00fe10ed1305 (diff) |
rxi_flags was used uninitialized, and in some cases, received frames
were dropped.
-rw-r--r-- | sys/dev/usb/if_urtwn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index b963f6626d6..4eea4180ce5 100644 --- a/sys/dev/usb/if_urtwn.c +++ b/sys/dev/usb/if_urtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_urtwn.c,v 1.8 2010/12/07 17:03:19 damien Exp $ */ +/* $OpenBSD: if_urtwn.c,v 1.9 2010/12/11 13:27:27 damien Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -1569,6 +1569,7 @@ urtwn_rx_frame(struct urtwn_softc *sc, uint8_t *buf, int pktlen) #endif ni = ieee80211_find_rxnode(ic, wh); + rxi.rxi_flags = 0; rxi.rxi_rssi = rssi; rxi.rxi_tstamp = 0; /* Unused. */ ieee80211_input(ifp, m, ni, &rxi); |