Hello,
I am trying to make the firmware in the broadcasting only mode to change the broadcasting beacon mac address every 10 seconds. In 2541, I can directly feed the fake mac address into the broadcasting packet easily.
So far, I have tried the API: HCI_EXT_SetBDADDRCmd and GAP_ConfigDeviceAddr. However it seems they are only effective before the command GAPRole_StartDevice. Do you have any idea?
uint8 mac_pseudo[6];
LL_PseudoRand((uint8*)mac_pseudo, 6 );
HCI_EXT_SetBDADDRCmd(mac_pseudo);
GAP_ConfigDeviceAddr(ADDRTYPE_STATIC, mac_pseudo);