Re: [PATCH] android/client: Print peer and CHLD features only on connected event

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

 



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
--
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