mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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>
This commit is contained in:
parent
cdda9756ee
commit
ef15c65f89
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user