/* Set the maximum encryption key size. 
Set the maximum encryption key size supported by the local device. In the case of dynamic encryption key size mode the default value for the device maximum encryption key size is set to 16 */
ADI_BLER_RESULT adi_radio_SetMaxEncryptionKeySize(const uint8_t nKeySize)
/* Set the maximum encryption key size. 
Set the maximum encryption key size supported by the local device. In the case of dynamic encryption key size mode the default value for the device maximum encryption key size is set to 16 */
ADI_BLER_RESULT adi_radio_SetMaxEncryptionKeySize(const uint8_t nKeySize)
{
    ADI_BLER_RESULT bleResult;
    ADI_BLE_LOGEVENT(LOGID_CMD_BLESMP_SET_MAX_ENCRYPT_SIZE);
    ADI_BLE_RADIO_CMD_START(CMD_BLESMP_SET_MAX_ENCRYPT_SIZE);
    ASSERT(nKeySize >= 7u);
    ASSERT(nKeySize <= 16u);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN], &nKeySize, 1u);
    bleResult = bler_process_cmd(CMD_BLESMP_SET_MAX_ENCRYPT_SIZE, 1u, 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);
}