Skip to content

Commit

Permalink
Bluetooth: host: Add Kconfig option for auto data length procedure
Browse files Browse the repository at this point in the history
Add Kconfig option so that the application can disable automatic
initiation of the data length procedure. This is symmetric with the
PHY auto initiation kconfig option.

Signed-off-by: Joakim Andersson <[email protected]>
  • Loading branch information
joerchan authored and carlescufi committed May 7, 2020
1 parent f85433c commit 69dfcc6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions subsys/bluetooth/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,21 @@ config BT_AUTO_PHY_UPDATE
help
Initiate PHY Update Procedure on connection establishment.

Disable this if you want PHY Update Procedure feature supported but
want to rely on remote device to initiate the procedure at its
Disable this if you want the PHY Update Procedure feature supported
but want to rely on the remote device to initiate the procedure at its
discretion.

config BT_AUTO_DATA_LEN_UPDATE
bool "Auto-initiate Data Length Update procedure"
depends on BT_DATA_LEN_UPDATE
default y
help
Initiate Data Length Update Procedure on connection establishment.

Disable this if you want the Data Length Update Procedure feature
supported but want to rely on the remote device to initiate the
procedure at its discretion.

config BT_REMOTE_INFO
bool "Enable application access to remote information"
help
Expand Down
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,7 @@ static void conn_auto_initiate(struct bt_conn *conn)
}
}

if (IS_ENABLED(CONFIG_BT_DATA_LEN_UPDATE) &&
if (IS_ENABLED(CONFIG_BT_AUTO_DATA_LEN_UPDATE) &&
BT_FEAT_LE_DLE(bt_dev.le.features)) {
u16_t tx_octets, tx_time;

Expand Down

0 comments on commit 69dfcc6

Please sign in to comment.