forked from kofal.net/zmk
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:
committed by
Pete Johanson
parent
96f9031951
commit
63c8c5700a
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user