forked from kofal.net/zmk
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:
committed by
Pete Johanson
parent
7d1c1ae8fd
commit
bc7b4b56bd
@@ -460,12 +460,6 @@ static void connected(struct bt_conn *conn, uint8_t err) {
|
||||
|
||||
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();
|
||||
|
||||
if (is_conn_active_profile(conn)) {
|
||||
|
||||
Reference in New Issue
Block a user