summaryrefslogtreecommitdiff
path: root/src/components/ble/NimbleController.cpp
diff options
context:
space:
mode:
authorJames A. Jerkins <evergreen@jamesjerkinscomputer.com>2021-12-21 22:02:01 (GMT)
committerJames A. Jerkins <evergreen@jamesjerkinscomputer.com>2021-12-21 22:02:01 (GMT)
commiteca0588c2328a72aee3c6132c7c4221277cb8b28 (patch)
treef0196e33aa66ceb3ee319963219ff647b04bcbd6 /src/components/ble/NimbleController.cpp
parent6a5946c4e3b8a2da29306b88222255260faf17a8 (diff)
Optional secure pairing with a passkey
Support passkey pairing when requested by the central Fix a comment and reorder warning
Diffstat (limited to 'src/components/ble/NimbleController.cpp')
-rw-r--r--src/components/ble/NimbleController.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/ble/NimbleController.cpp b/src/components/ble/NimbleController.cpp
index 3bf1ec8..d8510bd 100644
--- a/src/components/ble/NimbleController.cpp
+++ b/src/components/ble/NimbleController.cpp
@@ -134,9 +134,7 @@ void NimbleController::Init() {
RestoreBond();
- if (!ble_gap_adv_active() && !bleController.IsConnected()) {
- StartAdvertising();
- }
+ StartAdvertising();
}
void NimbleController::StartAdvertising() {
@@ -274,7 +272,7 @@ int NimbleController::OnGAPEvent(ble_gap_event* event) {
* display capability only so we only handle the "display" action here.
*
* Standards insist that the rand() PRNG be deterministic.
- * Use the nimble TRNG here since rand() is predictable.
+ * Use the tinycrypt prng here since rand() is predictable.
*/
NRF_LOG_INFO("Security event : BLE_GAP_EVENT_PASSKEY_ACTION");
if (event->passkey.params.action == BLE_SM_IOACT_DISP) {