qcacld-3.0: Print wow_nack reason code

Currently, Fw did not set NACK reason code
to Host when Fw is not ready for WoW.

As part of the new change, Fw will send NACK
reason code along with WoW NACK to host.
Make changes in host to store and print
NACK reason code.

Change-Id: Ic978af9572c8de37df3fb926083aac5e6ddefda7
CRs-Fixed: 3481177
This commit is contained in:
Amit Mehta
2022-02-13 15:55:23 +05:30
committed by Madan Koyyalamudi
부모 d82a7c1fc4
커밋 c6ad6f2fe0
6개의 변경된 파일45개의 추가작업 그리고 11개의 파일을 삭제

파일 보기

@@ -1074,10 +1074,12 @@ int ucfg_pmo_psoc_clear_target_wake_up(struct wlan_objmgr_psoc *psoc);
* ucfg_pmo_psoc_target_suspend_acknowledge() - Clear initial wake up status
* @context: caller-provided context
* @wow_nack: Was WoW NACK'ed
* @reason_code: WoW status reason code
*
* Return: None
*/
void ucfg_pmo_psoc_target_suspend_acknowledge(void *context, bool wow_nack);
void ucfg_pmo_psoc_target_suspend_acknowledge(void *context, bool wow_nack,
uint16_t reason_code);
/**
* ucfg_pmo_psoc_wakeup_host_event_received() - got host wake up evennt from fwr
@@ -1890,7 +1892,8 @@ ucfg_pmo_psoc_clear_target_wake_up(struct wlan_objmgr_psoc *psoc)
}
static inline void
ucfg_pmo_psoc_target_suspend_acknowledge(void *context, bool wow_nack)
ucfg_pmo_psoc_target_suspend_acknowledge(void *context, bool wow_nack,
uint16_t reason_code)
{
}

파일 보기

@@ -224,6 +224,7 @@ enum pmo_wow_state {
* @target_suspend: target suspend event
* @target_resume: target resume event
* @wow_nack: wow negative ack flag
* @reason_code : wow status reason code
* @wow_initial_wake_up: target initial wake up is received
* @wow_wake_lock: wow wake lock
* @lphb_cache: lphb cache
@@ -245,7 +246,8 @@ struct pmo_wow {
enum pmo_wow_state wow_state;
qdf_event_t target_suspend;
qdf_event_t target_resume;
int wow_nack;
bool wow_nack;
uint16_t reason_code;
atomic_t wow_initial_wake_up;
qdf_wake_lock_t wow_wake_lock;
/*