qcacmn: Fix reachable Assert in convert_target_pdev_id_to_host_pdev_id

Currently, If invalid pdev_id is passed to
convert_target_pdev_id_to_host_pdev_id it results into Assert.

Fix is to remove QDF_ASSERT(0) in convert_target_pdev_id_to_host_pdev_id.
Return WMI_HOST_PDEV_ID_INVALID if convert_target_pdev_id_to_host_pdev_id
receives invalid pdev id.

Change-Id: Icb6a75c3f3664596fbba4532f5b29ed626ba28f2
CRs-Fixed: 2428787
This commit is contained in:
sheenam monga
2019-04-09 15:37:33 +05:30
committed by nshrivas
parent 88e3fc5032
commit 57effefdba
2 changed files with 14 additions and 4 deletions

View File

@@ -7363,6 +7363,7 @@ struct coex_config_params {
#define WMI_HOST_PDEV_ID_0 0
#define WMI_HOST_PDEV_ID_1 1
#define WMI_HOST_PDEV_ID_2 2
#define WMI_HOST_PDEV_ID_INVALID 0xFFFFFFFF
#ifndef CMN_VDEV_MGR_TGT_IF_ENABLE
/**