diff options
| author | Arend van Spriel <arend.vanspriel@broadcom.com> | 2026-07-31 14:35:02 +0200 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-08-02 17:40:07 +0200 |
| commit | 63d42f17296c6fef30bd4ff069440c691e435c0b (patch) | |
| tree | 1dee0b729d42298c3e42bea07194aa58aa7fd5d8 | |
| parent | c277330183a766e9c4531e56d54e391e980a0fc2 (diff) | |
| download | linux-next-63d42f17296c6fef30bd4ff069440c691e435c0b.tar.gz linux-next-63d42f17296c6fef30bd4ff069440c691e435c0b.zip | |
wifi: mwifiex: use pre-assigned cookie for remain_on_channel and mgmt_tx
Stop generating cookies via get_random_u32() in
mwifiex_cfg80211_remain_on_channel() and mwifiex_cfg80211_mgmt_tx().
Use the pre-assigned cookie from cfg80211 instead.
Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20260731123509.1975281-7-arend.vanspriel@broadcom.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
| -rw-r--r-- | drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index 8ec2d22a8c33..102321cf8542 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -259,7 +259,6 @@ mwifiex_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, tx_info->pkt_len = pkt_len; mwifiex_form_mgmt_frame(skb, buf, len); - *cookie = get_random_u32() | 1; if (ieee80211_is_action(mgmt->frame_control)) skb = mwifiex_clone_skb_for_tx_status(priv, @@ -326,7 +325,6 @@ mwifiex_cfg80211_remain_on_channel(struct wiphy *wiphy, duration); if (!ret) { - *cookie = get_random_u32() | 1; priv->roc_cfg.cookie = *cookie; priv->roc_cfg.chan = *chan; |
