From f9905ea416829fbd6f6dbfed763701664071f103 Mon Sep 17 00:00:00 2001 From: Jm Casler Date: Tue, 4 Jan 2022 19:26:50 -0800 Subject: [PATCH] MITM disabled --- src/nimble/BluetoothUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimble/BluetoothUtil.cpp b/src/nimble/BluetoothUtil.cpp index 42ff06b7d..bf7b9e16c 100644 --- a/src/nimble/BluetoothUtil.cpp +++ b/src/nimble/BluetoothUtil.cpp @@ -516,7 +516,7 @@ void reinitBluetooth() ble_hs_cfg.sm_io_cap = BLE_SM_IO_CAP_DISP_ONLY; ble_hs_cfg.sm_bonding = 1; - ble_hs_cfg.sm_mitm = 1; + ble_hs_cfg.sm_mitm = 0; ble_hs_cfg.sm_sc = 1; // per https://github.com/espressif/esp-idf/issues/5530#issuecomment-652933685 ble_hs_cfg.sm_our_key_dist = BLE_SM_PAIR_KEY_DIST_ID | BLE_SM_PAIR_KEY_DIST_ENC;