summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArend van Spriel <arend.vanspriel@broadcom.com>2026-07-31 14:35:04 +0200
committerJohannes Berg <johannes.berg@intel.com>2026-08-02 17:40:07 +0200
commitef15c65f89bd5af397cd762b1bdc50a46edbedb1 (patch)
tree96d478149058471777652a711858729576cf1f15
parentcdda9756ee41197da77721d1715aea2df833cb96 (diff)
downloadlinux-next-ef15c65f89bd5af397cd762b1bdc50a46edbedb1.tar.gz
linux-next-ef15c65f89bd5af397cd762b1bdc50a46edbedb1.zip
wifi: nxpwifi: use pre-assigned cookie for remain_on_channel and mgmt_tx
Stop calling nxpwifi_roc_cookie() to generate cookies in nxpwifi_cfg80211_remain_on_channel() and nxpwifi_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-9-arend.vanspriel@broadcom.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--drivers/net/wireless/nxp/nxpwifi/cfg80211.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/nxp/nxpwifi/cfg80211.c b/drivers/net/wireless/nxp/nxpwifi/cfg80211.c
index 4f9e20f72811..198174ac754e 100644
--- a/drivers/net/wireless/nxp/nxpwifi/cfg80211.c
+++ b/drivers/net/wireless/nxp/nxpwifi/cfg80211.c
@@ -212,7 +212,6 @@ nxpwifi_cfg80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
tx_info->pkt_len = pkt_len;
nxpwifi_form_mgmt_frame(skb, buf, len);
- *cookie = nxpwifi_roc_cookie(priv->adapter);
if (ieee80211_is_action(mgmt->frame_control))
skb = nxpwifi_clone_skb_for_tx_status(priv,
@@ -277,7 +276,6 @@ nxpwifi_cfg80211_remain_on_channel(struct wiphy *wiphy,
duration);
if (!ret) {
- *cookie = nxpwifi_roc_cookie(adapter);
priv->roc_cfg.cookie = *cookie;
priv->roc_cfg.chan = *chan;