feat(bt): Add more experimental tweaks.

* Support auto security upgrade for splits properly.
* Disable 2M and legacy LLCP if the experimental
  Kconfig flag is selected.
This commit is contained in:
Peter Johanson
2023-12-06 23:07:20 +00:00
committed by Pete Johanson
parent 96f9031951
commit 63c8c5700a
3 changed files with 20 additions and 14 deletions

View File

@@ -397,11 +397,13 @@ static void split_central_process_connection(struct bt_conn *conn) {
LOG_DBG("Current security for connection: %d", bt_conn_get_security(conn));
#if !IS_ENABLED(CONFIG_BT_GATT_AUTO_SEC_REQ)
err = bt_conn_set_security(conn, BT_SECURITY_L2);
if (err) {
LOG_ERR("Failed to set security (reason %d)", err);
return;
}
#endif // !IS_ENABLED(CONFIG_BT_GATT_AUTO_SEC_REQ)
struct peripheral_slot *slot = peripheral_slot_for_conn(conn);
if (slot == NULL) {