Re: [PATCH v2 1/6] Bluetooth: Store TX power level for connection

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

 



Hi Andrzej,

> This patch adds support to store local TX power level for connection
> when reply for HCI_Read_Transmit_Power_Level is received.
> 
> Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@xxxxxxxxx>
> ---
> include/net/bluetooth/hci.h      | 11 +++++++++++
> include/net/bluetooth/hci_core.h |  1 +
> net/bluetooth/hci_conn.c         |  1 +
> net/bluetooth/hci_event.c        | 29 +++++++++++++++++++++++++++++
> 4 files changed, 42 insertions(+)
> 
> diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
> index ad2ecc9..201a09a 100644
> --- a/include/net/bluetooth/hci.h
> +++ b/include/net/bluetooth/hci.h
> @@ -1054,6 +1054,17 @@ struct hci_cp_write_page_scan_activity {
> 	__le16   window;
> } __packed;
> 
> +#define HCI_OP_READ_TX_POWER_LEVEL	0x0c2d
> +struct hci_cp_read_tx_power_level {
> +	__le16   handle;
> +	__u8     type;
> +} __packed;
> +struct hci_rp_read_tx_power_level {
> +	__u8     status;
> +	__le16   handle;
> +	__s8     tx_power_level;
> +} __packed;

I applied this patch to bluetooth-next tree, but I replaced tx_power_level with tx_power to make it more consistent with what all the other tx_power structs and defines have.

Regards

Marcel

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