From 0bf10fa3b2ff9e401987254010e33faeb406a58d Mon Sep 17 00:00:00 2001 From: Himanshu Agarwal Date: Fri, 21 Oct 2016 15:09:49 +0530 Subject: [PATCH] qcacmn: Print proto type for ICMP/ICMPv6 packets Propagation from qcacld-2.0 to qcacmn. Print proto type for ICMP and ICMPv6 packets which cause wow wakeup in HOST driver. Change-Id: I6d8cf8ad65652205bfad1a3531daf48a42a79350 CRs-Fixed: 1080772 --- qdf/linux/src/qdf_nbuf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qdf/linux/src/qdf_nbuf.c b/qdf/linux/src/qdf_nbuf.c index cb60d1f77cc0..ef6092fb867b 100644 --- a/qdf/linux/src/qdf_nbuf.c +++ b/qdf/linux/src/qdf_nbuf.c @@ -615,6 +615,9 @@ __qdf_nbuf_data_get_icmp_subtype(uint8_t *data) subtype = (uint8_t)(*(uint8_t *) (data + ICMP_SUBTYPE_OFFSET)); + QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG, + "ICMP proto type: 0x%02x", subtype); + switch (subtype) { case ICMP_REQUEST: proto_subtype = QDF_PROTO_ICMP_REQ; @@ -647,6 +650,9 @@ __qdf_nbuf_data_get_icmpv6_subtype(uint8_t *data) subtype = (uint8_t)(*(uint8_t *) (data + ICMPV6_SUBTYPE_OFFSET)); + QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG, + "ICMPv6 proto type: 0x%02x", subtype); + switch (subtype) { case ICMPV6_REQUEST: proto_subtype = QDF_PROTO_ICMPV6_REQ;