qcacmn: Add new feature to support protocol tags
With this feature, using appropriate commands, link layer, network layer,
transport layer and some of the application protocols can be tagged with
the user provided tag values for easier identification of protocols. The
supported protocols today are as follows.
ARP, DHCPv4, DHCPv6, DNS over TCP (v4), DNS over TCP (v6), DNS over UDP
(v4), DNS over UDP (v6), ICMPv4, ICMPv6, TCPv4, TCPv6, UDPv4,
UDPv6, IPv4, IPv6, EAP.
Receive packets are tagged by hardware. Tags are applied after the first
matching rule. Hence it is recommended that the rules are
programmed in such a way that tags are configured from application layer
to data link layer to get expected results.
Change-Id: Ibdc2bd2b78234f482074955e89fb93f05988eaca
diff --git a/hal/wifi3.0/hal_generic_api.h b/hal/wifi3.0/hal_generic_api.h
index 5aa4cb2..4459cfa 100644
--- a/hal/wifi3.0/hal_generic_api.h
+++ b/hal/wifi3.0/hal_generic_api.h
@@ -1233,8 +1233,12 @@
filter_category = HAL_RX_GET(rx_mpdu_start, RX_MPDU_INFO_0,
RXPCU_MPDU_FILTER_IN_CATEGORY);
- if (filter_category == 1)
+
+ if (filter_category == 0)
+ ppdu_info->rx_status.rxpcu_filter_pass = 1;
+ else if (filter_category == 1)
ppdu_info->rx_status.monitor_direct_used = 1;
+
break;
}
case WIFIRX_MPDU_END_E: