qcacld-3.0: Try to recover from htc_connect_service failure

In the case of low memory allocation failures, the system should be able to
continue functioning after the connect_service failure.

Change-Id: Icd054d541aa95dbf4099426cf73f3dfe6c2c4565
CRs-Fixed: 2097391
This commit is contained in:
Houston Hoffman 2017-08-22 18:50:14 -07:00 • committed by Anjaneedevi Kapparapu
commit fa60ff5562

View file

@ -761,10 +761,14 @@ int htt_htc_attach(struct htt_pdev_t *pdev, uint16_t service_id)
status = htc_connect_service(pdev->htc_pdev, &connect, &response);
if (status != QDF_STATUS_SUCCESS) {
if (!cds_is_fw_down())
QDF_BUG(0);
if (cds_is_fw_down())
return -EIO;
return -EIO; /* failure */
if (status == QDF_STATUS_E_NOMEM ||
cds_is_self_recovery_enabled())
return qdf_status_to_os_return(status);
QDF_BUG(0);
}
htt_update_endpoint(pdev, service_id, response.Endpoint);