qcacmn: Check for system PM state before SW2TCL HP update

In SAP mode, intrabss forwarding can happen when system
suspend is in progress. This could potentially result in
a scenario where SW2TCL HP update goes through after
WOW_ENABLE command is sent to FW.

Fix is to check for system PM states and do an explicit
system wakeup if tx packet gets enqueued to SW2TCL after
wow is enabled. Flush the SW2TCL HP on system resume.

Change-Id: I8dcd108b0dc1d703168f2f7a0ef0627e4dc0b103
CRs-Fixed: 3087727
Tento commit je obsažen v:
Yeshwanth Sriram Guntuka
2021-12-02 11:53:01 +05:30
odevzdal Madan Koyyalamudi
rodič e5a33cd5b6
revize 454c7361e1
3 změnil soubory, kde provedl 41 přidání a 3 odebrání

Zobrazit soubor

@@ -756,6 +756,12 @@ void dp_set_rtpm_tput_policy_requirement(struct cdp_soc_t *soc_hdl,
qdf_atomic_set(&soc->rtpm_high_tput_flag, is_high_tput);
}
void
dp_tx_ring_access_end_wrapper(struct dp_soc *soc,
hal_ring_handle_t hal_ring_hdl,
int coalesce);
#else
#ifdef DP_POWER_SAVE
void
dp_tx_ring_access_end_wrapper(struct dp_soc *soc,
hal_ring_handle_t hal_ring_hdl,
@@ -768,6 +774,7 @@ dp_tx_ring_access_end_wrapper(struct dp_soc *soc,
{
dp_tx_ring_access_end(soc, hal_ring_hdl, coalesce);
}
#endif
static inline void
dp_set_rtpm_tput_policy_requirement(struct cdp_soc_t *soc_hdl,