Commit 742c5951 authored by Andrei Emeltchenko's avatar Andrei Emeltchenko Committed by Marcel Holtmann

Bluetooth: Simplify setting Configuration Field

Only Sliding Window Size is used at the moment for H5 Bluetooth
Configuration messages.
Signed-off-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 1d3a1e69
...@@ -116,12 +116,8 @@ static void h5_link_control(struct hci_uart *hu, const void *data, size_t len) ...@@ -116,12 +116,8 @@ static void h5_link_control(struct hci_uart *hu, const void *data, size_t len)
static u8 h5_cfg_field(struct h5 *h5) static u8 h5_cfg_field(struct h5 *h5)
{ {
u8 field = 0;
/* Sliding window size (first 3 bits) */ /* Sliding window size (first 3 bits) */
field |= (h5->tx_win & 0x07); return h5->tx_win & 0x07;
return field;
} }
static void h5_timed_event(unsigned long arg) static void h5_timed_event(unsigned long arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment