aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/uwb')
-rw-r--r--drivers/uwb/rsv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/uwb/rsv.c b/drivers/uwb/rsv.c
index 0b0d8bce842e..f4ae05f78c42 100644
--- a/drivers/uwb/rsv.c
+++ b/drivers/uwb/rsv.c
@@ -231,7 +231,7 @@ void uwb_rsv_backoff_win_increment(struct uwb_rc *rc)
231 return; 231 return;
232 232
233 bow->window <<= 1; 233 bow->window <<= 1;
234 bow->n = random32() & (bow->window - 1); 234 bow->n = prandom_u32() & (bow->window - 1);
235 dev_dbg(dev, "new_window=%d, n=%d\n: ", bow->window, bow->n); 235 dev_dbg(dev, "new_window=%d, n=%d\n: ", bow->window, bow->n);
236 236
237 /* reset the timer associated variables */ 237 /* reset the timer associated variables */
@@ -557,7 +557,7 @@ int uwb_rsv_establish(struct uwb_rsv *rsv)
557 if (ret) 557 if (ret)
558 goto out; 558 goto out;
559 559
560 rsv->tiebreaker = random32() & 1; 560 rsv->tiebreaker = prandom_u32() & 1;
561 /* get available mas bitmap */ 561 /* get available mas bitmap */
562 uwb_drp_available(rc, &available); 562 uwb_drp_available(rc, &available);
563 563