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
This commit is contained in:

committed by
Madan Koyyalamudi

parent
5f1d4dd7fb
commit
db033fdb9f
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
* 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
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* 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 *param =
|
||||||
(struct hal_proto_params *)proto_params;
|
(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->udp_proto = HAL_RX_TLV_GET_UDP_PROTO(rx_pkt_tlvs);
|
||||||
param->ipv6_proto = HAL_RX_TLV_GET_IPV6(rx_pkt_tlvs);
|
param->ipv6_proto = HAL_RX_TLV_GET_IPV6(rx_pkt_tlvs);
|
||||||
|
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
* 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
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* 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 *param =
|
||||||
(struct hal_proto_params *)proto_params;
|
(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->udp_proto = HAL_RX_TLV_GET_UDP_PROTO(buf);
|
||||||
param->ipv6_proto = HAL_RX_TLV_GET_IPV6(buf);
|
param->ipv6_proto = HAL_RX_TLV_GET_IPV6(buf);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user