Please check on BleApp_Config() which of the following functions are being called:
- void BleConnManager_GapDualRoleConfig(void);
- void BleConnManager_GapPeripheralConfig(void);
- void BleConnManager_GapCentralConfig(void);
Once you identify the function, go to it and take a look to the following code:
//Code from BleConnManager_GapDualRoleConfig
#if gAppUsePrivacy_d
gAdvParams.peerAddressType = gBleAddrTypeRandom_c;
gScanParams.ownAddressType = gBleAddrTypeRandom_c;
#endif
As you can see, if privacy is enabled this will modify the scanning/advertisement paramenters. If you want to set the advertisement address as random, add the following line
//Code from BleConnManager_GapDualRoleConfig
#if gAppUsePrivacy_d
gAdvParams.peerAddressType = gBleAddrTypeRandom_c;
gAdvParams.ownAddressType = gBleAddrTypeRandom_c;
gScanParams.ownAddressType = gBleAddrTypeRandom_c;
#endif