From: Szymon Janc <szymon.janc@tieto.com>
To: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/7] android/client: Omit length parameter for hex string data
Date: Thu, 27 Nov 2014 18:25:34 +0100 [thread overview]
Message-ID: <7124599.MLv8viNzLv@uw000953> (raw)
In-Reply-To: <1416910396-23174-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
Hi Grzegorz,
On Tuesday 25 of November 2014 11:13:10 Grzegorz Kolodziejczyk wrote:
> There is no need to pass length parameter to functions. Length of hex
> strings is automatically calculated from string in GET_VERIFY_HEX_STRING
> macro.
> ---
> android/client/if-gatt.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c
> index 2b874c3..112a49d 100644
> --- a/android/client/if-gatt.c
> +++ b/android/client/if-gatt.c
> @@ -1729,10 +1729,8 @@ static void scan_filter_add_remove_p(int argc, const char **argv)
> VERIFY_UUID(9, &p_uuid_mask);
> VERIFY_ADDR_ARG(10, &bd_addr);
> VERIFY_ADDR_TYPE(11, addr_type);
> - VERIFY_DATA_LEN(12, data_len);
> - GET_VERIFY_HEX_STRING(13, p_data, data_len);
> - VERIFY_MASK_LEN(14, mask_len);
> - GET_VERIFY_HEX_STRING(15, p_mask, mask_len);
> + GET_VERIFY_HEX_STRING(12, p_data, data_len);
> + GET_VERIFY_HEX_STRING(13, p_mask, mask_len);
>
> EXEC(if_gatt->client->scan_filter_add_remove, client_if, action,
> filt_type, filt_index, company_id, company_id_mask,
> @@ -1862,7 +1860,7 @@ static struct method client_methods[] = {
> STD_METHODCH(scan_filter_add_remove, "<client_if> <action> <filt_type>"
> " <filt_index> <company_id> <company_id_mask>"
> " [<p_uuid>] <p_uuid_mask> <addr> <addr_type>"
> - " <data_len> [<p_data>] <mask_len> [<p_mask>]"),
> + " [<p_data>] [<p_mask>]"),
> STD_METHODCH(scan_filter_clear, "<client_if> <filt_index>"),
> STD_METHODCH(scan_filter_enable, "<client_if> [<enable>]"),
> #else
All patches applied, thanks.
--
Best regards,
Szymon Janc
prev parent reply other threads:[~2014-11-27 17:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-25 10:13 [PATCH 1/7] android/client: Omit length parameter for hex string data Grzegorz Kolodziejczyk
2014-11-25 10:13 ` [PATCH 2/7] android/client: Add support for gattc set_adv_data cmd Grzegorz Kolodziejczyk
2014-11-25 10:13 ` [PATCH 3/7] android/client: Add support for gattc configure_mtu cmd Grzegorz Kolodziejczyk
2014-11-25 10:13 ` [PATCH 4/7] android/client: Add support for gattc conn_parameter_update cmd Grzegorz Kolodziejczyk
2014-11-25 10:13 ` [PATCH 5/7] android/client: Add support for gattc set_scan_parameters cmd Grzegorz Kolodziejczyk
2014-11-25 10:13 ` [PATCH 6/7] android/client: Add support for gattc multi_adv_enable cmd Grzegorz Kolodziejczyk
2014-11-25 10:13 ` [PATCH 7/7] android/client: Add support for gattc multi_adv_update cmd Grzegorz Kolodziejczyk
2014-11-27 17:25 ` 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=7124599.MLv8viNzLv@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