From 4bd8905cd420e8b69bd12594089758cce2f40eda Mon Sep 17 00:00:00 2001 From: Tushnim Bhattacharyya Date: Thu, 8 Nov 2018 11:48:53 -0800 Subject: [PATCH] qcacld-3.0: Replace QDF_BUG(0) with cds_trigger_recovery() Replace QDF_BUG(0) with call cds_trigger_recovery() in wma_remove_peer(), as it is a possible scenario for NDI since the NDI vdev is managed by FW. Change-Id: Ief8a37c732a1feebe3a78f2f03da791712398d43 CRs-Fixed: 2346252 --- core/wma/src/wma_dev_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index e3095e2f0c2f..87c5544f1e69 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -1467,9 +1467,9 @@ QDF_STATUS wma_remove_peer(tp_wma_handle wma, uint8_t *bssid, if (!wma->interfaces[vdev_id].peer_count) { WMA_LOGE("%s: Can't remove peer with peer_addr %pM vdevid %d peer_count %d", - __func__, bssid, vdev_id, + __func__, bssid, vdev_id, wma->interfaces[vdev_id].peer_count); - QDF_BUG(0); + cds_trigger_recovery(QDF_REASON_UNSPECIFIED); return QDF_STATUS_E_INVAL; }