apps/bttester: do not fail pairing if it's already active

Sometimes it's simpler to call pair() even when procedure is already
active. Do not fail command in this case, as it doesn't influence
already ongoing procedure.
This commit is contained in:
Krzysztof Kopyściński
2023-06-16 15:14:21 +02:00
committed by Szymon Janc
parent 9d7c5c5006
commit dce1a41a7d
+2 -1
View File
@@ -1457,7 +1457,8 @@ pair(const uint8_t *data, uint16_t len)
goto rsp;
}
if (ble_gap_security_initiate(desc.conn_handle)) {
rc = ble_gap_security_initiate(desc.conn_handle);
if (rc != 0 && rc != BLE_HS_EALREADY) {
status = BTP_STATUS_FAILED;
goto rsp;
}