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

@@ -2997,3 +2997,21 @@ bool dp_rx_deliver_special_frame(struct dp_soc *soc,
return false;
}
#endif
#ifdef WLAN_FEATURE_MARK_FIRST_WAKEUP_PACKET
void dp_rx_mark_first_packet_after_wow_wakeup(struct dp_pdev *pdev,
uint8_t *rx_tlv,
qdf_nbuf_t nbuf)
{
struct dp_soc *soc;
if (!pdev->is_first_wakeup_packet)
return;
soc = pdev->soc;
if (hal_get_first_wow_wakeup_packet(soc->hal_soc, rx_tlv)) {
qdf_nbuf_mark_wakeup_frame(nbuf);
dp_info("First packet after WOW Wakeup rcvd");
}
}
#endif