Re: [PATCH 1/4] android/hal-gatt: Fix missing check if interface is ready

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 26 May 2014 17:03:44 Szymon Janc wrote:
> ---
>  android/hal-gatt.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/android/hal-gatt.c b/android/hal-gatt.c
> index 93dc066..6f0d2c5 100644
> --- a/android/hal-gatt.c
> +++ b/android/hal-gatt.c
> @@ -573,6 +573,9 @@ static bt_status_t register_client(bt_uuid_t *uuid)
>  {
>  	struct hal_cmd_gatt_client_register cmd;
> 
> +	if (!interface_ready())
> +		return BT_STATUS_NOT_READY;
> +
>  	memcpy(cmd.uuid, uuid, sizeof(*uuid));
> 
>  	return hal_ipc_cmd(HAL_SERVICE_ID_GATT, HAL_OP_GATT_CLIENT_REGISTER,

Patches 1-3 are now applied.

-- 
Szymon K. Janc
szymon.janc@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux