|
@@ -216,7 +216,7 @@ mwifiex_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|
|
mwifiex_form_mgmt_frame(skb, buf, len);
|
|
|
mwifiex_queue_tx_pkt(priv, skb);
|
|
|
|
|
|
- *cookie = random32() | 1;
|
|
|
+ *cookie = prandom_u32() | 1;
|
|
|
cfg80211_mgmt_tx_status(wdev, *cookie, buf, len, true, GFP_ATOMIC);
|
|
|
|
|
|
wiphy_dbg(wiphy, "info: management frame transmitted\n");
|
|
@@ -271,7 +271,7 @@ mwifiex_cfg80211_remain_on_channel(struct wiphy *wiphy,
|
|
|
duration);
|
|
|
|
|
|
if (!ret) {
|
|
|
- *cookie = random32() | 1;
|
|
|
+ *cookie = prandom_u32() | 1;
|
|
|
priv->roc_cfg.cookie = *cookie;
|
|
|
priv->roc_cfg.chan = *chan;
|
|
|
|