Просмотр исходного кода

qcacld-3.0: Take count PACKET_FILTER_MATCH into wakeup stats

Currently WOW_REASON_PACKET_FILTER_MATCH is not taken count into wakeup
stats, we can add this wakeup reason to unicast/multicast stats like
Pattern Bitmap Match.

Change-Id: I801e1dcd5a75c694f138cb01f588e2c4ea16502a
CRs-Fixed: 2350437
Will Huang 6 лет назад
Родитель
Сommit
3f7cb65660
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      core/wma/src/wma_features.c

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

@@ -1644,6 +1644,7 @@ static bool wma_wow_reason_has_stats(enum wake_reason_e reason)
 	case WOW_REASON_ACTION_FRAME_RECV:
 	case WOW_REASON_BPF_ALLOW:
 	case WOW_REASON_PATTERN_MATCH_FOUND:
+	case WOW_REASON_PACKET_FILTER_MATCH:
 	case WOW_REASON_RA_MATCH:
 	case WOW_REASON_NLOD:
 	case WOW_REASON_NLO_SCAN_COMPLETE:
@@ -1755,6 +1756,7 @@ static void wma_print_wow_stats(t_wma_handle *wma,
 	switch (wake_info->wake_reason) {
 	case WOW_REASON_BPF_ALLOW:
 	case WOW_REASON_PATTERN_MATCH_FOUND:
+	case WOW_REASON_PACKET_FILTER_MATCH:
 	case WOW_REASON_RA_MATCH:
 	case WOW_REASON_NLOD:
 	case WOW_REASON_NLO_SCAN_COMPLETE:
@@ -2686,6 +2688,7 @@ static int wma_wake_event_packet(
 	case WOW_REASON_PATTERN_MATCH_FOUND:
 	case WOW_REASON_RA_MATCH:
 	case WOW_REASON_RECV_MAGIC_PATTERN:
+	case WOW_REASON_PACKET_FILTER_MATCH:
 		WMA_LOGD("Wake event packet:");
 		qdf_trace_hex_dump(QDF_MODULE_ID_WMA, QDF_TRACE_LEVEL_DEBUG,
 				   packet, packet_len);