Re: [PATCH v5 2/6] Bluetooth: Refactor BR/EDR inquiry and LE scan triggering.

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

 



Hi Jakub,

On Mon, Mar 16, 2015, Jakub Pawlowski wrote:
> +static bool trigger_le_scan(struct hci_request *req, __le16 interval,
> +			    u8 *status)

Minor thing here: 'interval' should be u16 and the conversion done
inside the function. It's only for raw protocol PDU data that we use the
explicit-endian types.

> +	param_cp.interval = interval;

And here you'd then do param_cp.interval = cpu_to_le16(interval);

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