/* Get security properties. 
Get security properties for the given link. This is useful to know if the link is encrypted, bonded or authenticated */
ADI_BLER_RESULT adi_radio_GetLinkSecurityProperties(const uint16_t nConnHandle, uint8_t *const pProperties)
/* Get security properties. 
Get security properties for the given link. This is useful to know if the link is encrypted, bonded or authenticated */
ADI_BLER_RESULT adi_radio_GetLinkSecurityProperties(const uint16_t nConnHandle, uint8_t *const pProperties)
{
    ADI_BLER_RESULT bleResult;
    ADI_BLE_LOGEVENT(LOGID_CMD_BLESMP_GET_LINK_SECURITY_INFO);
    ADI_BLE_RADIO_CMD_START(CMD_BLESMP_GET_LINK_SECURITY_INFO);
    ASSERT(pProperties != NULL);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN], &nConnHandle, 2u);
    bleResult = bler_process_cmd(CMD_BLESMP_GET_LINK_SECURITY_INFO, 2u, pProperties, 1u);
    if(bleResult == ADI_BLER_SUCCESS){
    	bleResult = ADI_BLE_WAIT_FOR_COMPLETION(ADI_EVENT_FLAG_RESP_SUCCESS,ADI_BLER_CMD_TIMEOUT);
    }
    ADI_BLE_RADIO_CMD_END();
    return (bleResult);
}