Skip to content

Commit dc54da0

Browse files
committed
Nordic BLE: Force signing and link requirements to false.
1 parent 02e3c13 commit dc54da0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/nRF5xPalSecurityManager.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,14 @@ bool nRF5xSecurityManager::sm_handler(const ble_evt_t *evt)
797797
);
798798

799799
if (pairing_cb && pairing_cb->role == PAIRING_INITIATOR) {
800+
// override signing parameter
801+
initiator_dist.set_signing(false);
802+
responder_dist.set_signing(false);
803+
804+
// override link parameter
805+
initiator_dist.set_link(false);
806+
responder_dist.set_link(false);
807+
800808
// when this event is received by an initiator, it should not be
801809
// forwarded via the handler; this is not a behaviour expected
802810
// by the bluetooth standard ...

0 commit comments

Comments
 (0)