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 scanning not working

Part Number: CC2640R2F

Hi,

I am using CC2640R2F,stack 2_40_00_32

I want to scan for whitelist devices.But I am not able to discover the whitelist devices.Below is my code.Also my mac addresses are reversed.

I am Calling DiscoverWhiteListDevices(); in static void SimpleCentral_processGapMsg(gapEventHdr_t *pMsg)  as below

temp16 = SCAN_FLT_PDU_CONNECTABLE_ONLY | SCAN_FLT_PDU_COMPLETE_ONLY;
GapScan_setParam(SCAN_PARAM_FLT_PDU_TYPE, &temp16);

scMaxPduSize = pPkt->dataPktLen;

DiscoverWhiteListDevices();                                       //call to function 

// Enable "Discover Devices", "Set Scanning PHY", and "Set Address Type"
// in the main menu
tbm_setItemStatus(&scMenuMain,
SC_ITEM_STARTDISC | SC_ITEM_SCANPHY, SC_ITEM_NONE);

/****************************************************************************************/  Function definition

void DiscoverWhiteListDevices(void)
{

//numScanRes = 0;
static uint8 bdAddressPeer[][6] = {0xCD,0x13,0x24,0x15,0x32,0x24,
                                                      0xCE,0x45,0x81,0x0E,0x32,0x24,};

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


uint8_t whitelistfilter = SCAN_FLT_POLICY_WL;
GapScan_disable();

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

//tbm_setItemStatus(&scMenuMain, SC_ITEM_STOPDISC,
//(SC_ITEM_ALL & ~SC_ITEM_STOPDISC));
}

Please help