-/* $OpenBSD: acx.c,v 1.126 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: acx.c,v 1.127 2022/04/21 21:03:02 stsp Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
sc->chip_rxbuf_exhdr);
wh = mtod(m, struct ieee80211_frame *);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if ((wh->i_fc[1] & IEEE80211_FC1_WEP) &&
sc->chip_hw_crypt) {
/* Short circuit software WEP */
-/* $OpenBSD: an.c,v 1.78 2021/02/25 02:48:20 dlg Exp $ */
+/* $OpenBSD: an.c,v 1.79 2022/04/21 21:03:02 stsp Exp $ */
/* $NetBSD: an.c,v 1.34 2005/06/20 02:49:18 atatat Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
#endif /* NBPFILTER > 0 */
wh = mtod(m, struct ieee80211_frame *);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
/*
* WEP is decrypted by hardware. Clear WEP bit
-/* $OpenBSD: ar5008.c,v 1.69 2021/10/11 09:01:05 stsp Exp $ */
+/* $OpenBSD: ar5008.c,v 1.70 2022/04/21 21:03:02 stsp Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
m_adj(m, -IEEE80211_CRC_LEN);
/* Send the frame to the 802.11 layer. */
- rxi.rxi_flags = 0; /* XXX */
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = MS(ds->ds_status4, AR_RXS4_RSSI_COMBINED);
rxi.rxi_rssi += AR_DEFAULT_NOISE_FLOOR;
rxi.rxi_tstamp = ds->ds_status2;
-/* $OpenBSD: ar9003.c,v 1.54 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: ar9003.c,v 1.55 2022/04/21 21:03:02 stsp Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
m_adj(m, -IEEE80211_CRC_LEN);
/* Send the frame to the 802.11 layer. */
- rxi.rxi_flags = 0; /* XXX */
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = MS(ds->ds_status5, AR_RXS5_RSSI_COMBINED);
rxi.rxi_tstamp = ds->ds_status3;
ieee80211_inputm(ifp, m, ni, &rxi, ml);
-/* $OpenBSD: ath.c,v 1.122 2020/10/11 07:05:28 mpi Exp $ */
+/* $OpenBSD: ath.c,v 1.123 2022/04/21 21:03:02 stsp Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
#endif
m_adj(m, -IEEE80211_CRC_LEN);
wh = mtod(m, struct ieee80211_frame *);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if (!ath_softcrypto && (wh->i_fc[1] & IEEE80211_FC1_WEP)) {
/*
* WEP is decrypted by hardware. Clear WEP bit
-/* $OpenBSD: atw.c,v 1.99 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: atw.c,v 1.100 2022/04/21 21:03:02 stsp Exp $ */
/* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */
/*-
wh = mtod(m, struct ieee80211_frame *);
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
#if 0
if (atw_hw_decrypted(sc, wh)) {
wh->i_fc[1] &= ~IEEE80211_FC1_WEP;
}
#endif
rxi.rxi_rssi = (int)rssi;
- rxi.rxi_tstamp = 0;
ieee80211_inputm(ifp, m, ni, &rxi, &ml);
/*
* The frame may have caused the node to be marked for
-/* $OpenBSD: bwfm.c,v 1.102 2022/03/20 12:01:58 stsp Exp $ */
+/* $OpenBSD: bwfm.c,v 1.103 2022/04/21 21:03:02 stsp Exp $ */
/*
* Copyright (c) 2010-2016 Broadcom Corporation
* Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se>
/* Finalize mbuf. */
m->m_pkthdr.len = m->m_len = pktlen;
- rxi.rxi_flags = 0;
- rxi.rxi_rssi = 0;
- rxi.rxi_tstamp = 0;
+ memset(&rxi, 0, sizeof(rxi));
ieee80211_input(ifp, m, ic->ic_bss, &rxi);
}
m_freem(m);
return;
}
- rxi.rxi_flags = 0;
- rxi.rxi_rssi = 0;
- rxi.rxi_tstamp = 0;
+ memset(&rxi, 0, sizeof(rxi));
ieee80211_input(ifp, m, ni, &rxi);
}
m_freem(m);
return;
}
- rxi.rxi_flags = 0;
- rxi.rxi_rssi = 0;
- rxi.rxi_tstamp = 0;
+ memset(&rxi, 0, sizeof(rxi));
ieee80211_input(ifp, m, ni, &rxi);
}
#endif
/* Channel mask equals IEEE80211_CHAN_MAX */
chanidx = bwfm_spec2chan(sc, letoh32(bss->chanspec));
/* Supply RSSI */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = (int16_t)letoh16(bss->rssi);
- rxi.rxi_tstamp = 0;
rxi.rxi_chan = chanidx;
ieee80211_input(ifp, m, ni, &rxi);
/* Node is no longer needed. */
-/* $OpenBSD: bwi.c,v 1.132 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: bwi.c,v 1.133 2022/04/21 21:03:02 stsp Exp $ */
/*
* Copyright (c) 2007 The DragonFly Project. All rights reserved.
ni = ieee80211_find_rxnode(ic, wh);
type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = hdr->rxh_rssi;
rxi.rxi_tstamp = letoh16(hdr->rxh_tsf);
ieee80211_inputm(ifp, m, ni, &rxi, &ml);
-/* $OpenBSD: malo.c,v 1.122 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: malo.c,v 1.123 2022/04/21 21:03:02 stsp Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
ni = ieee80211_find_rxnode(ic, wh);
/* send the frame to the 802.11 layer */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = desc->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, &ml);
/* node is no longer needed */
-/* $OpenBSD: pgt.c,v 1.102 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: pgt.c,v 1.103 2022/04/21 21:03:02 stsp Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
bpf_mtap(sc->sc_drvbpf, &mb, BPF_DIRECTION_IN);
}
#endif
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
ni->ni_rssi = rxi.rxi_rssi = rssi;
ni->ni_rstamp = rxi.rxi_tstamp = rstamp;
ieee80211_inputm(ifp, m, ni, &rxi, &ml);
-/* $OpenBSD: rt2560.c,v 1.89 2022/01/09 05:42:38 jsg Exp $ */
+/* $OpenBSD: rt2560.c,v 1.90 2022/04/21 21:03:02 stsp Exp $ */
/*-
* Copyright (c) 2005, 2006
ni = ieee80211_find_rxnode(ic, wh);
/* send the frame to the 802.11 layer */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = desc->rssi;
rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, &ml);
-/* $OpenBSD: rt2661.c,v 1.98 2020/07/20 07:45:44 stsp Exp $ */
+/* $OpenBSD: rt2661.c,v 1.99 2022/04/21 21:03:02 stsp Exp $ */
/*-
* Copyright (c) 2006
ni = ieee80211_find_rxnode(ic, wh);
/* send the frame to the 802.11 layer */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = desc->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, &ml);
/*-
-/* $OpenBSD: rt2860.c,v 1.101 2020/12/12 11:48:52 jan Exp $ */
+/* $OpenBSD: rt2860.c,v 1.102 2022/04/21 21:03:02 stsp Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
m->m_pkthdr.len = m->m_len = letoh16(rxwi->len) & 0xfff;
wh = mtod(m, struct ieee80211_frame *);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
/* frame is decrypted by hardware */
wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED;
/* send the frame to the 802.11 layer */
rxi.rxi_rssi = rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, &ml);
/* node is no longer needed */
-/* $OpenBSD: rtw.c,v 1.102 2022/01/09 05:42:39 jsg Exp $ */
+/* $OpenBSD: rtw.c,v 1.103 2022/04/21 21:03:02 stsp Exp $ */
/* $NetBSD: rtw.c,v 1.29 2004/12/27 19:49:16 dyoung Exp $ */
/*-
}
#endif /* NBPFILTER > 0 */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = rssi;
rxi.rxi_tstamp = htsftl;
ieee80211_inputm(&sc->sc_if, m, ni, &rxi, &ml);
-/* $OpenBSD: if_ipw.c,v 1.131 2022/03/11 18:00:45 mpi Exp $ */
+/* $OpenBSD: if_ipw.c,v 1.132 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2004-2008
ni = ieee80211_find_rxnode(ic, wh);
/* send the frame to the upper layer */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = status->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
ieee80211_release_node(ic, ni);
-/* $OpenBSD: if_iwi.c,v 1.146 2022/03/11 18:00:45 mpi Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.147 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2004-2008
ni = ieee80211_find_rxnode(ic, wh);
/* send the frame to the upper layer */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = frame->rssi_dbm;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
/* node is no longer needed */
-/* $OpenBSD: if_iwn.c,v 1.257 2022/03/20 12:01:58 stsp Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.258 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
}
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if (((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL)
&& (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) &&
!IEEE80211_IS_MULTICAST(wh->i_addr1) &&
/* Send the frame to the 802.11 layer. */
rxi.rxi_rssi = rssi;
- rxi.rxi_tstamp = 0; /* unused */
rxi.rxi_chan = chan;
ieee80211_inputm(ifp, m, ni, &rxi, ml);
-/* $OpenBSD: if_rtwn.c,v 1.39 2022/03/15 09:22:56 stsp Exp $ */
+/* $OpenBSD: if_rtwn.c,v 1.40 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
#endif
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = rssi;
- rxi.rxi_tstamp = 0; /* Unused. */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
/* Node is no longer needed. */
ieee80211_release_node(ic, ni);
-/* $OpenBSD: if_wpi.c,v 1.156 2022/03/11 18:00:50 mpi Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.157 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2006-2008
wh = mtod(m, struct ieee80211_frame *);
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if ((wh->i_fc[1] & IEEE80211_FC1_PROTECTED) &&
!IEEE80211_IS_MULTICAST(wh->i_addr1) &&
(ni->ni_flags & IEEE80211_NODE_RXPROT) &&
/* Send the frame to the 802.11 layer. */
rxi.rxi_rssi = stat->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
/* Node is no longer needed. */
-/* $OpenBSD: if_athn_usb.c,v 1.63 2021/11/22 10:17:14 mglocker Exp $ */
+/* $OpenBSD: if_athn_usb.c,v 1.64 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2011 Damien Bergamini <damien.bergamini@free.fr>
m_adj(m, -IEEE80211_CRC_LEN);
/* Send the frame to the 802.11 layer. */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = rs->rs_rssi + AR_USB_DEFAULT_NF;
rxi.rxi_tstamp = betoh64(rs->rs_tstamp);
if (!(wh->i_fc[0] & IEEE80211_FC0_TYPE_CTL) &&
-/* $OpenBSD: if_atu.c,v 1.133 2022/01/09 05:43:00 jsg Exp $ */
+/* $OpenBSD: if_atu.c,v 1.134 2022/04/21 21:03:03 stsp Exp $ */
/*
* Copyright (c) 2003, 2004
* Daan Vreeken <Danovitsch@Vitsch.net>. All rights reserved.
}
#endif /* NBPFILTER > 0 */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if (wh->i_fc[1] & IEEE80211_FC1_WEP) {
/*
* WEP is decrypted by hardware. Clear WEP bit
-/* $OpenBSD: if_mtw.c,v 1.4 2022/03/08 06:05:58 hastings Exp $ */
+/* $OpenBSD: if_mtw.c,v 1.5 2022/04/21 21:03:03 stsp Exp $ */
/*
* Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr>
* Copyright (c) 2013-2014 Kevin Lo
}
wh = (struct ieee80211_frame *)(buf + rxwisize);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED;
rxi.rxi_flags |= IEEE80211_RXI_HWDEC;
s = splnet();
ni = ieee80211_find_rxnode(ic, wh);
rxi.rxi_rssi = rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
/* node is no longer needed */
-/* $OpenBSD: if_otus.c,v 1.70 2021/11/22 10:17:14 mglocker Exp $ */
+/* $OpenBSD: if_otus.c,v 1.71 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
s = splnet();
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = tail->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
/* Node is no longer needed. */
-/* $OpenBSD: if_ral.c,v 1.148 2020/07/31 10:49:32 mglocker Exp $ */
+/* $OpenBSD: if_ral.c,v 1.149 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2005, 2006
ni = ieee80211_find_rxnode(ic, wh);
/* send the frame to the 802.11 layer */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = desc->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_input(ifp, m, ni, &rxi);
/* node is no longer needed */
-/* $OpenBSD: if_rsu.c,v 1.50 2021/10/04 01:33:42 kevlo Exp $ */
+/* $OpenBSD: if_rsu.c,v 1.51 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
m->m_pkthdr.len = m->m_len = pktlen;
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = letoh32(bss->rssi);
- rxi.rxi_tstamp = 0;
ieee80211_input(ifp, m, ni, &rxi);
/* Node is no longer needed. */
ieee80211_release_node(ic, ni);
#endif
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = rssi;
- rxi.rxi_tstamp = 0; /* Unused. */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
/* Node is no longer needed. */
ieee80211_release_node(ic, ni);
-/* $OpenBSD: if_rum.c,v 1.126 2020/07/31 10:49:32 mglocker Exp $ */
+/* $OpenBSD: if_rum.c,v 1.127 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini@free.fr>
ni = ieee80211_find_rxnode(ic, wh);
/* send the frame to the 802.11 layer */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = desc->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_input(ifp, m, ni, &rxi);
/* node is no longer needed */
-/* $OpenBSD: if_run.c,v 1.135 2021/11/22 10:17:14 mglocker Exp $ */
+/* $OpenBSD: if_run.c,v 1.136 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr>
}
wh = (struct ieee80211_frame *)(buf + rxwisize);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if (wh->i_fc[1] & IEEE80211_FC1_PROTECTED) {
wh->i_fc[1] &= ~IEEE80211_FC1_PROTECTED;
rxi.rxi_flags |= IEEE80211_RXI_HWDEC;
s = splnet();
ni = ieee80211_find_rxnode(ic, wh);
rxi.rxi_rssi = rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
/* node is no longer needed */
-/* $OpenBSD: if_uath.c,v 1.87 2021/02/25 02:48:20 dlg Exp $ */
+/* $OpenBSD: if_uath.c,v 1.88 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2006
data->buf = mtod(data->m, uint8_t *);
wh = mtod(m, struct ieee80211_frame *);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
if ((wh->i_fc[1] & IEEE80211_FC1_WEP) &&
ic->ic_opmode != IEEE80211_M_MONITOR) {
/*
s = splnet();
ni = ieee80211_find_rxnode(ic, wh);
rxi.rxi_rssi = (int)betoh32(desc->rssi);
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_input(ifp, m, ni, &rxi);
/* node is no longer needed */
-/* $OpenBSD: if_upgt.c,v 1.88 2022/01/09 05:43:00 jsg Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.89 2022/04/21 21:03:03 stsp Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
ni = ieee80211_find_rxnode(ic, wh);
/* push the frame up to the 802.11 stack */
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_flags = 0;
rxi.rxi_rssi = rxdesc->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_input(ifp, m, ni, &rxi);
/* node is no longer needed */
-/* $OpenBSD: if_urtw.c,v 1.71 2022/01/09 05:43:00 jsg Exp $ */
+/* $OpenBSD: if_urtw.c,v 1.72 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2009 Martynas Venckus <martynas@openbsd.org>
nf = quality;
/* send the frame to the 802.11 layer */
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = rssi;
- rxi.rxi_tstamp = 0;
ieee80211_input(ifp, m, ni, &rxi);
/* node is no longer needed */
-/* $OpenBSD: if_urtwn.c,v 1.99 2022/03/15 09:23:01 stsp Exp $ */
+/* $OpenBSD: if_urtwn.c,v 1.100 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
#endif
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = rssi;
- rxi.rxi_tstamp = 0; /* Unused. */
/* Handle hardware decryption. */
if (((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL)
-/* $OpenBSD: if_zyd.c,v 1.127 2022/01/09 05:43:00 jsg Exp $ */
+/* $OpenBSD: if_zyd.c,v 1.128 2022/04/21 21:03:03 stsp Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr>
s = splnet();
wh = mtod(m, struct ieee80211_frame *);
ni = ieee80211_find_rxnode(ic, wh);
- rxi.rxi_flags = 0;
+ memset(&rxi, 0, sizeof(rxi));
rxi.rxi_rssi = stat->rssi;
- rxi.rxi_tstamp = 0; /* unused */
ieee80211_inputm(ifp, m, ni, &rxi, ml);
/* node is no longer needed */