bluedroid: fix encrypt keysize of GATT characteristic permission

This commit is contained in:
chenjianhua
2022-11-25 11:38:11 +08:00
parent 8574ec3bd3
commit c37184aa85
8 changed files with 5 additions and 31 deletions
@@ -560,6 +560,10 @@ esp_err_t esp_ble_gap_set_security_param(esp_ble_sm_param_t param_type,
return ESP_ERR_INVALID_ARG;
}
}
if (param_type == ESP_BLE_APP_ENC_KEY_SIZE) {
LOG_ERROR("ESP_BLE_APP_ENC_KEY_SIZE is deprecated, use ESP_GATT_PERM_ENCRYPT_KEY_SIZE in characteristic definition");
return ESP_ERR_NOT_SUPPORTED;
}
btc_msg_t msg = {0};
btc_ble_gap_args_t arg;