Skip to content

Commit

Permalink
iwn: Use memset() to initialize struct ieee80211_rxinfo properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxystd committed Mar 16, 2024
1 parent 0419f7a commit 44a6708
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions itlwm/hal_iwn/ItlIwn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2210,7 +2210,7 @@ iwn_rx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc,
}
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) &&
Expand Down Expand Up @@ -2299,7 +2299,6 @@ iwn_rx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc,

/* 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);

Expand Down

0 comments on commit 44a6708

Please sign in to comment.