Re: [PATCH] Bluetooth: hcitool: add option for LE_Scan_Type parameter

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

 



Hi Andrei,

On Thu, Feb 10, 2011 at 6:36 PM, Emeltchenko Andrei
<Andrei.Emeltchenko.news@xxxxxxxxx> wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
>
> The LE_Scan_Type parameter controls the type of scan to perform.
> ---
>  tools/hcitool.c |   14 ++++++++++++--
>  1 files changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/tools/hcitool.c b/tools/hcitool.c
> index c097526..6d17ad5 100644
> --- a/tools/hcitool.c
> +++ b/tools/hcitool.c
> @@ -2350,23 +2350,33 @@ done:
>  static struct option lescan_options[] = {
>        { "help",       0, 0, 'h' },
>        { "privacy",    0, 0, 'p' },
> +       { "scantype",   1, 0, 's' },
>        { 0, 0, 0, 0 }
>  };
>
>  static const char *lescan_help =
>        "Usage:\n"
> -       "\tlescan [--privacy] enable privacy\n";
> +       "\tlescan [--privacy] enable privacy\n"
> +       "\tlescan [--scantype] set scan type 0 - passive, 1 - active (default)\n";

I think it is enough to have a "--passive" boolean option and set
scantype to 0x00 if it is TRUE and 0x01 if it is FALSE.

Regards,
-- 
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
--
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