Skip to content

Commit

Permalink
Revert using sl_bt_advertiser_set_random_address for MG24 family as t…
Browse files Browse the repository at this point in the history
…here is still issues linked to its use (#18625)
  • Loading branch information
jmartinez-silabs authored and pull[bot] committed Feb 13, 2024
1 parent 288ae73 commit 1059767
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/EFR32/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,10 +743,14 @@ CHIP_ERROR BLEManagerImpl::StartAdvertising(void)
ChipLogDetail(DeviceLayer, "Start BLE advertissement");
}

#ifndef EFR32MG24
// set_random_address causes issues in BLE driver later on with MG24 family.
// To be remove when updateing to GSDK4.0
const uint8_t kResolvableRandomAddrType = 2; // Private resolvable random address type
bd_addr unusedBdAddr; // We can ignore this field when setting random address.
sl_bt_advertiser_set_random_address(advertising_set_handle, kResolvableRandomAddrType, unusedBdAddr, &unusedBdAddr);
(void) unusedBdAddr;
#endif

err = ConfigureAdvertisingData();
SuccessOrExit(err);
Expand Down

0 comments on commit 1059767

Please sign in to comment.