qcacmn: Remove NDP_HOST_UPDATE processing

Firmware sends NDP_HOST_UPDATE event as an immediate response to this
request and starts cleaning peers one by one. Once an NDP session is
ended (indicating NDP_END to peer + internal cleanup), firmware sends
NDP_END_IND to host.
Currently, host driver stops the wait timer and change state from NDP
end to disconnected upon receiving the NDP_HOST_UPDATE. But firmware
might still be in the process of NDP cleanup. As the NDP_END_ALL
context is unblocked, driver may send NAN disable request to firmware.
This may cause inconsistency in firmware state machine and firmware may
drop the ongoing NDP_END request. So, peer doesn't get the NDP_END frame
in such cases.
Unblock the NDP_END_ALL-wait call only upon last NDP_END indication to
avoid such issues. This change moves the major functionality of
NDP_HOST_UPDATE processing to last NDP_END indication. Cleanup/remove
the processing of NDP_HOST_UPDATE as it's not needed anymore.

Change-Id: I00e73d211de4626484ffb2483c00adce1a7302c1
CRs-Fixed: 3512923
This commit is contained in:
Rahul Gusain
2023-05-26 12:28:18 +05:30
committed by Rahul Choudhary
parent f4f5f1cb88
commit f5f76bb000
4 changed files with 1 additions and 48 deletions

View File

@@ -193,14 +193,4 @@ QDF_STATUS wmi_extract_nan_event_rsp(wmi_unified_t wmi_handle, void *evt_buf,
struct nan_event_params *temp_evt_params,
uint8_t **nan_msg_buf);
/**
* wmi_extract_ndp_host_event - api to extract ndp event from event buffer
* @wmi_handle: wmi handle
* @data: event buffer
* @evt: event buffer to populate
*
* Return: status of operation
*/
QDF_STATUS wmi_extract_ndp_host_event(wmi_unified_t wmi_handle, uint8_t *data,
struct nan_datapath_host_event *evt);
#endif /* _WMI_UNIFIED_NAN_API_H_ */