qcacld-3.0: Add and use API to check FW Down indication bit during probe

When commands to Firmware fail during probe due to Firmware being down, in
most cases QDF_BUGs are hit, not allowing re-probing to take place. A new
API is defined to check if the failure is due to Firmware being down or not.
If so, return error gracefully allowing re-probing to take place

Change-Id: Ib2f21a6f1ced1c16e9d2bdbda810b160ff63e2c6
CRs-fixed: 2027444
This commit is contained in:
Nachiket Kukade
2017-03-30 15:55:58 +05:30
committed by snandini
parent caf8c34bff
commit 8003d257b9
8 changed files with 157 additions and 11 deletions

View File

@@ -726,8 +726,12 @@ int htt_htc_attach(struct htt_pdev_t *pdev, uint16_t service_id)
status = htc_connect_service(pdev->htc_pdev, &connect, &response);
if (status != A_OK)
if (status != A_OK) {
if (!cds_is_fw_down())
QDF_BUG(0);
return -EIO; /* failure */
}
htt_update_endpoint(pdev, service_id, response.Endpoint);