From: Szymon Janc <szymon.janc@tieto.com>
To: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v3 1/7] android/map-client: Don't check if interface is ready on init
Date: Thu, 18 Dec 2014 18:42:02 +0100 [thread overview]
Message-ID: <2532647.79vsq0TZis@uw000953> (raw)
In-Reply-To: <1418824897-25342-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
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
prev parent reply other threads:[~2014-12-18 17:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-17 14:01 [PATCH v3 1/7] android/map-client: Don't check if interface is ready on init Grzegorz Kolodziejczyk
2014-12-17 14:01 ` [PATCH v3 2/7] android/tester: Refreactor tester-main header includes Grzegorz Kolodziejczyk
2014-12-17 14:01 ` [PATCH v3 3/7] android/tester: If print dbg log if emulator starts Grzegorz Kolodziejczyk
2014-12-17 14:01 ` [PATCH v3 4/7] android/tester: Add verification for test case list creators Grzegorz Kolodziejczyk
2014-12-17 14:01 ` [PATCH v3 5/7] android/tester: Refractor properties veryfying Grzegorz Kolodziejczyk
2014-12-17 14:01 ` [PATCH v3 6/7] android/tester: Set action status to fail if no l2cap data is given Grzegorz Kolodziejczyk
2014-12-17 14:01 ` [PATCH v3 7/7] android/tester: add initial support for map-client tester Grzegorz Kolodziejczyk
2014-12-18 17:42 ` Szymon Janc [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2532647.79vsq0TZis@uw000953 \
--to=szymon.janc@tieto.com \
--cc=grzegorz.kolodziejczyk@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox