Przeglądaj źródła

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
Himanshu Agarwal 8 lat temu
rodzic
commit
471eaef30a
1 zmienionych plików z 12 dodań i 0 usunięć
  1. 12 0
      core/wma/src/wma_features.c

+ 12 - 0
core/wma/src/wma_features.c

@@ -2739,6 +2739,14 @@ wma_pkt_proto_subtype_to_string(enum qdf_proto_subtype proto_subtype)
 		return "ICMPV6 REQUEST";
 	case QDF_PROTO_ICMPV6_RES:
 		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:
 		return "IPV4 UDP Packet";
 	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_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_pkt_proto_subtype_to_string(proto_subtype));
 		if (buf_len >= WMA_IPV6_PKT_INFO_GET_MIN_LEN) {