Looking at PM_EVT_CONN_SEC_FAILED parameters, i.e.,
pm_evt_t.params.pm_conn_sec_failed_evt_t.error (pm_sec_error_code_t)
re: nRF5 SDK v16.0.0, nRF58233, S113
Looking at the definition for pm_sec_error_code_t: “Possible values are defined in Peer Manager defined security errors and GAP Security status.“
Peer Manager defined security errors – “the first 256 numbers, from PM_CONN_SEC_ERROR_BASE to (PM_CONN_SEC_ERROR_BASE + 0xFF), correspond to the status codes in Bluetooth status codes…” This is the HCI status codes. For example, BLE_HCI_STATUS_CODE_UNKNOWN_BTLE_COMMAND is 0x01.
GAP Security status – BLE_GAP_SEC_STATUS_XXX, e.g., BLE_GAP_SEC_STATUS_TIMEOUT is 0x01
Conclusion: the two status code ranges overlap – how does one interpret pm_conn_sec_failed_evt_t.error?