software/drivers/sd8887/src/bluetooth/bt/bt_main.c
/**
 *  @brief This function initializes firmware
 *
 *  @param priv    A pointer to bt_private structure
 *  @return    BT_STATUS_SUCCESS or BT_STATUS_FAILURE
 */
@brief This function initializes firmware
@param priv    A pointer to bt_private structure
@return    BT_STATUS_SUCCESS or BT_STATUS_FAILURE
@brief This function initializes firmware @param priv A pointer to bt_private structure @return BT_STATUS_SUCCESS or BT_STATUS_FAILURE
static int
bt_init_fw(bt_private *priv)
{
	int ret = BT_STATUS_SUCCESS;
	ENTER();
	if (fw == 0) {
		sbi_enable_host_int(priv);
		goto done;
	}
	sbi_disable_host_int(priv);
	if (sbi_download_fw(priv)) {
		PRINTM(ERROR, " FW failed to be download!\n");
		ret = BT_STATUS_FAILURE;
		goto done;
	}
done:
	LEAVE();
	return ret;
}
static int bt_init_fw ( bt_private * priv ) { int ret = BT_STATUS_SUCCESS ; ENTER ( ) ; if ( fw == 0 ) { sbi_enable_host_int ( priv ) ; goto done ; } sbi_disable_host_int ( priv ) ; if ( sbi_download_fw ( priv ) ) { PRINTM ( ERROR , " \n " ) ; ret = BT_STATUS_FAILURE ; goto done ; } done : LEAVE ( ) ; return ret ; }
@brief This function initializes firmware
  @param priv    A pointer to bt_private structure
  @return    BT_STATUS_SUCCESS or BT_STATUS_FAILURE
@brief This function initializes firmware @param priv A pointer to bt_private structure @return BT_STATUS_SUCCESS or BT_STATUS_FAILURE