qcacld-3.0: Add support to dump ICMPV6 RS and RA in wow wakeup stats

Propagation from qcacld-2.0 to qcacld-3.0.

Add support to dump information for ICMPV6 RS and RA packets in
wow wakeup stats.

Change-Id: I1a2852189664fff31e29b487d7a8c66ee83931c5
CRs-Fixed: 1115364
This commit is contained in:
Himanshu Agarwal
2017-01-31 13:16:52 +05:30
committed by qcabuildsw
vanhempi ee3411a3b4
commit 471eaef30a

Näytä tiedosto

@@ -2739,6 +2739,14 @@ wma_pkt_proto_subtype_to_string(enum qdf_proto_subtype proto_subtype)
return "ICMPV6 REQUEST"; return "ICMPV6 REQUEST";
case QDF_PROTO_ICMPV6_RES: case QDF_PROTO_ICMPV6_RES:
return "ICMPV6 RESPONSE"; return "ICMPV6 RESPONSE";
case QDF_PROTO_ICMPV6_RS:
return "ICMPV6 RS";
case QDF_PROTO_ICMPV6_RA:
return "ICMPV6 RA";
case QDF_PROTO_ICMPV6_NS:
return "ICMPV6 NS";
case QDF_PROTO_ICMPV6_NA:
return "ICMPV6 NA";
case QDF_PROTO_IPV4_UDP: case QDF_PROTO_IPV4_UDP:
return "IPV4 UDP Packet"; return "IPV4 UDP Packet";
case QDF_PROTO_IPV4_TCP: case QDF_PROTO_IPV4_TCP:
@@ -2931,6 +2939,10 @@ static void wma_wow_parse_data_pkt_buffer(uint8_t *data,
case QDF_PROTO_ICMPV6_REQ: case QDF_PROTO_ICMPV6_REQ:
case QDF_PROTO_ICMPV6_RES: case QDF_PROTO_ICMPV6_RES:
case QDF_PROTO_ICMPV6_RS:
case QDF_PROTO_ICMPV6_RA:
case QDF_PROTO_ICMPV6_NS:
case QDF_PROTO_ICMPV6_NA:
WMA_LOGD("WOW Wakeup: %s rcvd", WMA_LOGD("WOW Wakeup: %s rcvd",
wma_pkt_proto_subtype_to_string(proto_subtype)); wma_pkt_proto_subtype_to_string(proto_subtype));
if (buf_len >= WMA_IPV6_PKT_INFO_GET_MIN_LEN) { if (buf_len >= WMA_IPV6_PKT_INFO_GET_MIN_LEN) {