qcacmn: Disable obss scan before suspend

When obss scan is enabled, FW will trigger scan periodically by
a timer. If a scan was triggered, FW need to access host memory
for data transfer. Occasionally, suspend may happen during one
scan, then FW is unable to access host memory and fw will crash.
So disable the obss scan before suspend.

Change-Id: Ie507da929a3701473cb57888e96e702e34d4c95a
CRs-Fixed: 2927239
This commit is contained in:
Guisen Yang
2021-04-19 17:17:26 +08:00
committed by Madan Koyyalamudi
parent 841fa1bd6a
commit 3516552a3c
13 changed files with 194 additions and 6 deletions

View File

@@ -1431,6 +1431,18 @@ wmi_unified_ipa_offload_control_cmd(
*/
QDF_STATUS wmi_unified_pno_stop_cmd(wmi_unified_t wmi_handle, uint8_t vdev_id);
/**
* wmi_unified_obss_disable_cmd() - disable obss scan request
* @wmi_handle: wmi handle
* @vdev_id: vdev id
*
* This function request FW to disable obss scan.
*
* Return: QDF_STATUS_SUCCESS on success and others for failure
*/
QDF_STATUS wmi_unified_obss_disable_cmd(wmi_unified_t wmi_handle,
uint8_t vdev_id);
#ifdef FEATURE_WLAN_SCAN_PNO
/**
* wmi_unified_pno_start_cmd() - PNO start request