fix(ble): Disable Auto Sec Req again.
* Auto security request actually makes macOS worse, so disable it, and remove our early request in favor of using GATT enforcement to ensure connections are secured.
This commit is contained in:
parent
7d1c1ae8fd
commit
bc7b4b56bd
2 changed files with 0 additions and 7 deletions
|
@ -144,7 +144,6 @@ if ZMK_BLE
|
||||||
|
|
||||||
config ZMK_BLE_EXPERIMENTAL_CONN
|
config ZMK_BLE_EXPERIMENTAL_CONN
|
||||||
bool "Experimental BLE connection changes"
|
bool "Experimental BLE connection changes"
|
||||||
imply BT_GATT_AUTO_SEC_REQ
|
|
||||||
help
|
help
|
||||||
Enables a combination of settings that are planned to be default in future versions of ZMK
|
Enables a combination of settings that are planned to be default in future versions of ZMK
|
||||||
to improve connection stability. This includes changes to timing on BLE pairing initation,
|
to improve connection stability. This includes changes to timing on BLE pairing initation,
|
||||||
|
|
|
@ -460,12 +460,6 @@ static void connected(struct bt_conn *conn, uint8_t err) {
|
||||||
|
|
||||||
LOG_DBG("Connected %s", addr);
|
LOG_DBG("Connected %s", addr);
|
||||||
|
|
||||||
#if !IS_ENABLED(CONFIG_BT_GATT_AUTO_SEC_REQ)
|
|
||||||
if (bt_conn_set_security(conn, BT_SECURITY_L2)) {
|
|
||||||
LOG_ERR("Failed to set security");
|
|
||||||
}
|
|
||||||
#endif // !IS_ENABLED(CONFIG_BT_GATT_AUTO_SEC_REQ)
|
|
||||||
|
|
||||||
update_advertising();
|
update_advertising();
|
||||||
|
|
||||||
if (is_conn_active_profile(conn)) {
|
if (is_conn_active_profile(conn)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue