Re: [PATCH v3 1/7] android/map-client: Don't check if interface is ready on init

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

 



Hi Grzegorz,

On Wednesday 17 of December 2014 15:01:31 Grzegorz Kolodziejczyk wrote:
> Map client don't have possibility to clean up its interface, only way to
> change it is to overwrite. Service also can be unregistered but
> interface doesn't change. This situation cause call to unregistered
> service with set interface.
> ---
>  android/hal-map-client.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/android/hal-map-client.c b/android/hal-map-client.c
> index 6c927d4..adf04fc 100644
> --- a/android/hal-map-client.c
> +++ b/android/hal-map-client.c
> @@ -119,8 +119,14 @@ static bt_status_t init(btmce_callbacks_t *callbacks)
>  
>  	DBG("");
>  
> -	if (interface_ready())
> -		return BT_STATUS_DONE;
> +	/*
> +	 * Interface ready check was removed because there is no cleanup
> +	 * function to unregister and clear callbacks. MAP client testers may
> +	 * restart bluetooth, unregister this profile and try to reuse it.
> +	 * This situation make service unregistered but callbacks are still
> +	 * set - interface is ready. On android devices there is no need to
> +	 * re-init MAP client profile while bluetooth is loaded.
> +	 */
>  
>  	cbs = callbacks;
>  

All patches applied (with some minor style fixes here and there), thanks. 

-- 
Best regards, 
Szymon Janc
--
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