qcacmn: Send ring sel cfg to configure rx pkt tlvs offset
Currently the FW configures the mac with appropriate offsets for rx pkt tlvs using the structure defined in te FW and the host does not send the ring selction config HTT message. This can create a problem when FW stops subscribing to tlvs or changes its rx pkt tlvs offset. Fix this by configuring the rx pkt tlv offsets via HTT ring selection config message. Change-Id: I1a2865f91b34dd7bda1af8651d7831097dac0bee CRs-Fixed: 2860504
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021 The Linux Foundation. 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
|
||||
@@ -3981,6 +3981,20 @@ uint32_t hal_rx_mpdu_start_offset_get(hal_soc_handle_t hal_soc_hdl)
|
||||
return hal_soc->ops->hal_rx_mpdu_start_offset_get();
|
||||
}
|
||||
|
||||
static inline
|
||||
uint32_t hal_rx_pkt_tlv_offset_get(hal_soc_handle_t hal_soc_hdl)
|
||||
{
|
||||
struct hal_soc *hal_soc = (struct hal_soc *)hal_soc_hdl;
|
||||
|
||||
if (!hal_soc || !hal_soc->ops) {
|
||||
hal_err("hal handle is NULL");
|
||||
QDF_BUG(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return hal_soc->ops->hal_rx_pkt_tlv_offset_get();
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_mpdu_end_offset_get(): Get the MPDU end offset from
|
||||
* rx_pkt_tlvs structure
|
||||
|
Reference in New Issue
Block a user