Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] android/client: Print peer and CHLD features only on connected event
Date: Mon, 06 Oct 2014 15:45:18 +0200	[thread overview]
Message-ID: <2874517.49Oxin3lzP@uw000953> (raw)
In-Reply-To: <1412591654-10250-1-git-send-email-lukasz.rymanowski@tieto.com>

Hi Łukasz,

On Monday 06 of October 2014 12:34:14 Lukasz Rymanowski wrote:
> We want to print peer and CHLD features are only when client gets
> connected event. Otherwise it might be confusing as those fields are not
> set.
> ---
>  android/client/if-hf-client.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/android/client/if-hf-client.c b/android/client/if-hf-client.c
> index 07c09cd..0f4f3e9 100644
> --- a/android/client/if-hf-client.c
> +++ b/android/client/if-hf-client.c
> @@ -203,6 +203,10 @@ static void hf_client_connection_state_callback(
>  	haltest_info("%s: state=%s bd_addr=%s\n", __func__,
>  				bthf_client_connection_state_t2str(state),
>  				bt_bdaddr_t2str(bd_addr, last_addr));
> +
> +	if ( state != BTHF_CLIENT_CONNECTION_STATE_CONNECTED)
> +		return;
> +
>  	haltest_info("\tpeer_features%s\n", pear_features_t2str(peer_feat));
>  	haltest_info("\tchld_feat=%s\n", chld_features_t2str(chld_feat));
>  }
> 

Applied (after fixing bogus space after '('), thanks.

-- 
Best regards, 
Szymon Janc

      reply	other threads:[~2014-10-06 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-06 10:34 [PATCH] android/client: Print peer and CHLD features only on connected event Lukasz Rymanowski
2014-10-06 13:45 ` 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=2874517.49Oxin3lzP@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=lukasz.rymanowski@tieto.com \
    /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