Browse Source

qcacmn: Fix incorrect tcp_proto value from hal_rx_get_proto_params

tcp_proto is not set correctly from hal_rx_get_proto_params() API,
currently it is using HAL_RX_TLV_GET_IP_OFFSET, use
HAL_RX_TLV_GET_TCP_PROTO to fix it.

Change-Id: I1f3c6aa4b8f5420f176bda4aff158dcfa2a7ef5a
CRs-Fixed: 3073794
Jinwei Chen 3 năm trước cách đây
mục cha
commit
db033fdb9f
2 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 2 1
      hal/wifi3.0/be/hal_be_rx_tlv.h
  2. 2 1
      hal/wifi3.0/li/hal_li_generic_api.c

+ 2 - 1
hal/wifi3.0/be/hal_be_rx_tlv.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -1691,7 +1692,7 @@ static inline int hal_rx_get_proto_params_be(uint8_t *buf, void *proto_params)
 	struct hal_proto_params *param =
 				(struct hal_proto_params *)proto_params;
 
-	param->tcp_proto = HAL_RX_TLV_GET_IP_OFFSET(rx_pkt_tlvs);
+	param->tcp_proto = HAL_RX_TLV_GET_TCP_PROTO(rx_pkt_tlvs);
 	param->udp_proto = HAL_RX_TLV_GET_UDP_PROTO(rx_pkt_tlvs);
 	param->ipv6_proto = HAL_RX_TLV_GET_IPV6(rx_pkt_tlvs);
 

+ 2 - 1
hal/wifi3.0/li/hal_li_generic_api.c

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -245,7 +246,7 @@ static int hal_rx_get_proto_params_li(uint8_t *buf, void *proto_params)
 	struct hal_proto_params *param =
 				(struct hal_proto_params *)proto_params;
 
-	param->tcp_proto = HAL_RX_TLV_GET_IP_OFFSET(buf);
+	param->tcp_proto = HAL_RX_TLV_GET_TCP_PROTO(buf);
 	param->udp_proto = HAL_RX_TLV_GET_UDP_PROTO(buf);
 	param->ipv6_proto = HAL_RX_TLV_GET_IPV6(buf);