wifi: qtnfmac: use pre-assigned cookie for mgmt_tx

Stop overwriting *cookie with a random value in qtnf_mgmt_tx(). The
internal firmware frame identifier (short_cookie) is unchanged.

Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20260731123509.1975281-10-arend.vanspriel@broadcom.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Arend van Spriel 2026-07-31 14:35:05 +02:00 committed by Johannes Berg
parent ef15c65f89
commit b6dfce6c0b

View File

@ -454,8 +454,6 @@ qtnf_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
u16 flags = 0;
u16 freq;
*cookie = short_cookie;
if (params->offchan)
flags |= QLINK_FRAME_TX_FLAG_OFFCHAN;