This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Whitelist scan failing

Part Number: CC2640R2F

Hi,

I am using CC2640R2F,stack 2_40_00

I am calling DiscoverWhiteListDevices from GAP_DEVICE_INIT_DONE_EVENT but not able to discover the device. I am getting "0 devices discovered"

Also I had kept        DEFAULT_DEV_DISC_BY_SVC_UUID   as       TRUE 

Please tell me where should I call from DiscoverWhiteListDevices() function. My function definition is as below.

void DiscoverWhiteListDevices(void)
{

numScanRes = 0;
static uint8 bdAddressPeer[][6] = {0xD5,0xF2,0x93,0xEA,0x95,0xF8,};


HCI_LE_ClearWhiteListCmd();
HCI_LE_AddWhiteListCmd(ADDRMODE_PUBLIC, &bdAddressPeer[0][0]);

uint8_t whitelistfilter = SCAN_FLT_POLICY_WL;
GapScan_disable();

GapScan_setParam(SCAN_PARAM_FLT_POLICY, &whitelistfilter);
GapScan_enable(0, DEFAULT_SCAN_DURATION, 0);


}

Is there any mistake in my logic or am i missing something