summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaidiReddy Yenuga <saidir@codeaurora.org>2017-02-10 13:57:20 +0530
committerSaidiReddy Yenuga <saidir@codeaurora.org>2017-04-14 13:08:17 +0530
commit25d33bfe508e6c7e904cb1f82fbc05d32d2fea1b (patch)
tree51037fd0c4d1a5cd7f5a363b209784b0f9ae26fc
parent08290584a807fad4e78c6acff954b78cd3d88932 (diff)
qcacld-2.0: initialize proto_type in STA and SAP rx packet callback
proto_type is being used in STA and SAP rx packet callbacks without initializing . initialize proto_type to 0. CRs-Fixed: 1115269 Change-Id: I97fc0c582f76772e02528ccfe7ab035c807b1df8
-rw-r--r--CORE/HDD/src/wlan_hdd_softap_tx_rx.c2
-rw-r--r--CORE/HDD/src/wlan_hdd_tx_rx.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/CORE/HDD/src/wlan_hdd_softap_tx_rx.c b/CORE/HDD/src/wlan_hdd_softap_tx_rx.c
index 71c6169c996e..a9487d4d4870 100644
--- a/CORE/HDD/src/wlan_hdd_softap_tx_rx.c
+++ b/CORE/HDD/src/wlan_hdd_softap_tx_rx.c
@@ -830,7 +830,7 @@ VOS_STATUS hdd_softap_rx_packet_cbk(v_VOID_t *vosContext,
struct sk_buff *skb = NULL;
hdd_context_t *pHddCtx = NULL;
#ifdef QCA_PKT_PROTO_TRACE
- v_U8_t proto_type;
+ v_U8_t proto_type = 0;
#endif /* QCA_PKT_PROTO_TRACE */
struct sk_buff *skb_next;
unsigned int cpu_index;
diff --git a/CORE/HDD/src/wlan_hdd_tx_rx.c b/CORE/HDD/src/wlan_hdd_tx_rx.c
index e421c0c7bd59..bb1391cef235 100644
--- a/CORE/HDD/src/wlan_hdd_tx_rx.c
+++ b/CORE/HDD/src/wlan_hdd_tx_rx.c
@@ -1304,7 +1304,7 @@ VOS_STATUS hdd_rx_packet_cbk(v_VOID_t *vosContext,
struct sk_buff *skb_next;
unsigned int cpu_index;
#ifdef QCA_PKT_PROTO_TRACE
- v_U8_t proto_type;
+ v_U8_t proto_type = 0;
#endif /* QCA_PKT_PROTO_TRACE */
hdd_station_ctx_t *pHddStaCtx = NULL;
bool wake_lock = false;