/* Set a pairing policy. 
Set a pairing policy to be applied when receiving a pairing request event. The default policy is to always accept pairing and always accept bonding */
ADI_BLER_RESULT adi_radio_SetPairingPolicy(const uint8_t nAccept, const uint8_t nBond)
/* Set a pairing policy. 
Set a pairing policy to be applied when receiving a pairing request event. The default policy is to always accept pairing and always accept bonding */
ADI_BLER_RESULT adi_radio_SetPairingPolicy(const uint8_t nAccept, const uint8_t nBond)
{
    ADI_BLER_RESULT bleResult;
    ADI_BLE_LOGEVENT(LOGID_CMD_BLESMP_SET_PAIRING_POLICY);
    ADI_BLE_RADIO_CMD_START(CMD_BLESMP_SET_PAIRING_POLICY);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN], &nAccept, 1u);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN + 1], &nBond, 1u);
    bleResult = bler_process_cmd(CMD_BLESMP_SET_PAIRING_POLICY, 2u, NULL, 0u);
    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);
}