aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-11-22 06:58:16 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-11-26 14:54:20 -0500
commitd369167f0ac513e05ba1f7895bea8b7c64ac5a4e (patch)
tree18e011f47027f2b52349f69c386cc571984fb550 /drivers/net
parentfbbdcc0213bbf74acb5d6d210a9cb4db557edd30 (diff)
iwlegacy: initialize rx_status
The vendor radiotap patch added a few fields to struct ieee80211_rx_status that need to be zero, initialize the struct instead of using whatever was left on the stack. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlegacy/3945.c2
-rw-r--r--drivers/net/wireless/iwlegacy/4965-mac.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c
index 87e539894330..e0b9d7fa5de0 100644
--- a/drivers/net/wireless/iwlegacy/3945.c
+++ b/drivers/net/wireless/iwlegacy/3945.c
@@ -516,7 +516,7 @@ static void
516il3945_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb) 516il3945_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
517{ 517{
518 struct ieee80211_hdr *header; 518 struct ieee80211_hdr *header;
519 struct ieee80211_rx_status rx_status; 519 struct ieee80211_rx_status rx_status = {};
520 struct il_rx_pkt *pkt = rxb_addr(rxb); 520 struct il_rx_pkt *pkt = rxb_addr(rxb);
521 struct il3945_rx_frame_stats *rx_stats = IL_RX_STATS(pkt); 521 struct il3945_rx_frame_stats *rx_stats = IL_RX_STATS(pkt);
522 struct il3945_rx_frame_hdr *rx_hdr = IL_RX_HDR(pkt); 522 struct il3945_rx_frame_hdr *rx_hdr = IL_RX_HDR(pkt);
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c
index ef68b7239955..07ffa575e3ef 100644
--- a/drivers/net/wireless/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/iwlegacy/4965-mac.c
@@ -613,7 +613,7 @@ void
613il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb) 613il4965_hdl_rx(struct il_priv *il, struct il_rx_buf *rxb)
614{ 614{
615 struct ieee80211_hdr *header; 615 struct ieee80211_hdr *header;
616 struct ieee80211_rx_status rx_status; 616 struct ieee80211_rx_status rx_status = {};
617 struct il_rx_pkt *pkt = rxb_addr(rxb); 617 struct il_rx_pkt *pkt = rxb_addr(rxb);
618 struct il_rx_phy_res *phy_res; 618 struct il_rx_phy_res *phy_res;
619 __le32 rx_pkt_status; 619 __le32 rx_pkt_status;