diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 1b2a795937b..c3e22d560ed 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -2354,7 +2354,7 @@ static int prng_reseed(struct tc_hmac_prng_struct *h) net_buf_unref(rsp); } - extra = sys_tick_get(); + extra = k_uptime_get(); ret = tc_hmac_prng_reseed(h, seed, sizeof(seed), (uint8_t *)&extra, sizeof(extra)); diff --git a/subsys/bluetooth/host/monitor.c b/subsys/bluetooth/host/monitor.c index a3d0235b18f..10274077662 100644 --- a/subsys/bluetooth/host/monitor.c +++ b/subsys/bluetooth/host/monitor.c @@ -65,7 +65,7 @@ static inline void encode_hdr(struct bt_monitor_hdr *hdr, uint16_t opcode, /* Extended header */ hdr->type = BT_MONITOR_TS32; - ts32 = sys_tick_get_32() * sys_clock_us_per_tick / 100; + ts32 = k_uptime_get() * 10; hdr->ts32 = sys_cpu_to_le32(ts32); }