Re: [PATCH 2/2] Bluetooth: Add blacklisting support for mgmt interface

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

 



* Antti Julku <antti.julku@xxxxxxxxx> [2011-06-15 12:01:15 +0300]:

> Management interface commands for blocking and unblocking devices.
> 
> Signed-off-by: Antti Julku <antti.julku@xxxxxxxxx>
> ---
>  include/net/bluetooth/mgmt.h |   10 ++++++
>  net/bluetooth/mgmt.c         |   70 ++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 80 insertions(+), 0 deletions(-)
> 
> diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
> index 4899286..45bea25 100644
> --- a/include/net/bluetooth/mgmt.h
> +++ b/include/net/bluetooth/mgmt.h
> @@ -199,6 +199,16 @@ struct mgmt_cp_remove_remote_oob_data {
>  
>  #define MGMT_OP_STOP_DISCOVERY		0x001C
>  
> +#define MGMT_OP_BLOCK_DEVICE		0x001D
> +struct mgmt_cp_block_device {
> +	bdaddr_t bdaddr;
> +} __packed;
> +
> +#define MGMT_OP_UNBLOCK_DEVICE		0x001E

To make hci code consistent call replace _DEVICE by _ADDR in both macros.

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