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
This commit is contained in:
Tushnim Bhattacharyya 2018-11-08 11:48:53 -08:00 • committed by nshrivas
commit 4bd8905cd4

View file

@ -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;
}