qcacmn: Mark first packet after wow wakeup

Add feature support to tag first packet that wakes up HOST from WoW.

rx_pkt_tlv.rx_msdu_end.reserved_1a field is used by TARGET to meet
such request.

Change-Id: I3d37e13e8cff49bc4f622d3070a19e4c4be56417
CRs-Fixed: 3137621
This commit is contained in:
Jia Ding
2021-12-03 10:13:24 +08:00
committed by Madan Koyyalamudi
parent 7148dfedf8
commit d40b388d2f
14 changed files with 218 additions and 4 deletions

View File

@@ -1631,6 +1631,24 @@ static uint8_t hal_get_idle_link_bm_id_kiwi(uint8_t chip_id)
return WBM_IDLE_DESC_LIST;
}
#ifdef WLAN_FEATURE_MARK_FIRST_WAKEUP_PACKET
/**
* hal_get_first_wow_wakeup_packet_kiwi(): Function to get if the buffer
* is the first one that wakes up host from WoW.
*
* @buf: network buffer
*
* Dummy function for KIWI
*
* Returns: 1 to indicate it is first packet received that wakes up host from
* WoW. Otherwise 0
*/
static inline uint8_t hal_get_first_wow_wakeup_packet_kiwi(uint8_t *buf)
{
return 0;
}
#endif
static void hal_hw_txrx_ops_attach_kiwi(struct hal_soc *hal_soc)
{
/* init and setup */
@@ -1859,6 +1877,10 @@ static void hal_hw_txrx_ops_attach_kiwi(struct hal_soc *hal_soc)
hal_soc->ops->hal_set_reo_ent_desc_reo_dest_ind =
hal_set_reo_ent_desc_reo_dest_ind_be;
hal_soc->ops->hal_get_idle_link_bm_id = hal_get_idle_link_bm_id_kiwi;
#ifdef WLAN_FEATURE_MARK_FIRST_WAKEUP_PACKET
hal_soc->ops->hal_get_first_wow_wakeup_packet =
hal_get_first_wow_wakeup_packet_kiwi;
#endif
};
struct hal_hw_srng_config hw_srng_table_kiwi[] = {