Report FW configuration status to upper layer
Report Firware configuration if success or failure from vendor library
to the upper layers to take necessary actions to proceed with Stack
initialization or not.
Test: mm -j 8
Change-Id: I56e4749b0eb995eb484a6f56a8e1c684678a02f4
Signed-off-by: Lakshmipathi K <lakshmipathi.k@intel.com>
diff --git a/system/hci/src/hci_layer.cc b/system/hci/src/hci_layer.cc
index 7a198e6..0cd351f 100644
--- a/system/hci/src/hci_layer.cc
+++ b/system/hci/src/hci_layer.cc
@@ -423,7 +423,7 @@
vendor->send_async_command(VENDOR_CONFIGURE_FIRMWARE, NULL);
}
-static void firmware_config_callback(UNUSED_ATTR bool success) {
+static void firmware_config_callback(bool success) {
LOG_INFO(LOG_TAG, "%s", __func__);
alarm_cancel(startup_timer);
@@ -435,9 +435,8 @@
pthread_mutex_unlock(&commands_pending_response_lock);
return;
}
-
- firmware_is_configured = true;
- future_ready(startup_future, FUTURE_SUCCESS);
+ firmware_is_configured = success;
+ future_ready(startup_future, success ? FUTURE_SUCCESS : FUTURE_FAIL);
startup_future = NULL;
pthread_mutex_unlock(&commands_pending_response_lock);