qcacmn: Mark wow wakeup indication in the packet buffer

Mark the packet buffer to indicate that it was the
packet which woke-up the system from suspend state.

Change-Id: Id4235461f90feef945f518e5ac01c28f35883285
CRs-Fixed: 3654812
This commit is contained in:
Rakesh Pillai
2023-11-01 20:15:59 -07:00
committed by Ravindra Konda
parent 40d1805fce
commit 9e2fa7fdc6
2 changed files with 8 additions and 1 deletions

View File

@@ -817,6 +817,11 @@ struct rx_mon_pkt_tlvs {
#define HAL_RX_REO_QUEUE_DESC_ADDR_39_32_GET(_rx_pkt_tlv) \
HAL_RX_MPDU_START(_rx_pkt_tlv).rx_reo_queue_desc_addr_39_32
#ifdef WLAN_FEATURE_MARK_FIRST_WAKEUP_PACKET
#define HAL_RX_TLV_FIRST_WAKEUP_PKT_GET(_rx_pkt_tlv) \
HAL_RX_MSDU_END(_rx_pkt_tlv).reserved_1a
#endif
/* used by monitor mode for parsing from full TLV */
#define HAL_RX_MON_GET_FC_VALID(_rx_mpdu_start) \
HAL_RX_GET(rx_mpdu_start, RX_MPDU_INFO, MPDU_FRAME_CONTROL_VALID)

View File

@@ -1867,7 +1867,9 @@ static uint8_t hal_get_idle_link_bm_id_kiwi(uint8_t chip_id)
*/
static inline uint8_t hal_get_first_wow_wakeup_packet_kiwi(uint8_t *buf)
{
return 0;
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
return HAL_RX_TLV_FIRST_WAKEUP_PKT_GET(pkt_tlvs);
}
#endif