Re: [PATCH v2 1/2] Bluetooth: Add support to Intel read supported feature

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

 



Hi Kiran,

> The command shall read the Intel controller supported
> feature. Based on the supported features addtional debug
> configuration shall be enabled.
> 
> Signed-off-by: Chethan T N <chethan.tumkur.narayan@xxxxxxxxx>
> Signed-off-by: Ps, AyappadasX <AyappadasX.Ps@xxxxxxxxx>
> Signed-off-by: Kiran K <kiran.k@xxxxxxxxx>
> ---
> drivers/bluetooth/btintel.c | 34 ++++++++++++++++++++++++++++++++++
> drivers/bluetooth/btintel.h | 14 ++++++++++++++
> drivers/bluetooth/btusb.c   |  8 +++++++-
> 3 files changed, 55 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/bluetooth/btintel.c b/drivers/bluetooth/btintel.c
> index 6a0e2c5a8beb..09e697b92426 100644
> --- a/drivers/bluetooth/btintel.c
> +++ b/drivers/bluetooth/btintel.c
> @@ -754,6 +754,40 @@ void btintel_reset_to_bootloader(struct hci_dev *hdev)
> }
> EXPORT_SYMBOL_GPL(btintel_reset_to_bootloader);
> 
> +int btintel_read_supported_features(struct hci_dev *hdev,
> +	struct intel_supported_features *supported_features)
> +{
> +	struct sk_buff *skb;
> +	u8 page_no = 1;
> +
> +	/* Intel controller supports two pages, each page is of 128-bit
> +	 * feature bit mask. And each bit defines specific feature support
> +	 */
> +	skb = __hci_cmd_sync(hdev, 0xfca6, sizeof(page_no), &page_no,
> +		HCI_INIT_TIMEOUT);

Please get the coding style right first. We have plenty of examples in the same file on how to do this.

Regards

Marcel




[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