Hi,
We are using CC2640R2 (simplelink_cc2640r2_sdk_2_30_00_28) as a peripheral device and Android / IOS mobile as a central device. We want to add mobile BLE MAC address in whitelist. We tried with below code in static void SimplePeripheral_processGapMessage() function under
uint8 remoteBdAddr[B_ADDR_LEN] = {0xdc,0xa3,0xca,0xcf,0xd7,0xd4}; //Mac address=d4:d7:cf:ca:a3:dc
case GAP_UPDATE_LINK_PARAM_REQ_EVENT:
uint8 adv_filter = GAP_ADV_WL_POLICY_WL_ALL_REQ;
//set the white list for advertise and scan
GapAdv_setParam(advHandleLegacy, GAP_ADV_PARAM_FILTER_POLICY, &adv_filter);
HCI_LE_ClearWhiteListCmd();
HCI_LE_AddWhiteListCmd( HCI_PUBLIC_DEVICE_ADDRESS, remoteBdAddr);
But it is observed that CC2640R2 is connecting with all mobiles.
MAC filtering is not working as expected can you please guide on how to resolve this issue.