linux/drivers/net/wireless/quantenna/qtnfmac
Arend van Spriel 914781c728 wifi: cfg80211: convert cookie output to input parameter
The remain_on_channel, mgmt_tx, and probe_peer ops previously used
a u64 *cookie output parameter. Now that cfg80211 pre-assigns the
cookie value before invoking drivers, the parameter conveys a value
from caller to driver, not the other way around. Convert it to a
plain u64 input parameter across the ops struct (cfg80211.h),
rdev-ops.h wrappers, nl80211.c/mlme.c call sites, mac80211, and
all driver implementations.

The tx_control_port op is excluded: its cookie pointer is nullable
(passed as NULL when dont_wait_for_ack is set), so the nullable
pointer semantics are still required.

Internal mac80211 helpers ieee80211_start_roc_work() and
ieee80211_attach_ack_skb() still take u64 *cookie because they
assign to the pointee; their callers now pass &cookie to take the
address of the local value parameter.

wil6210's internal wil_p2p_listen() is also updated to take u64
cookie since it is called directly from the remain_on_channel
callback.

Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20260731123509.1975281-12-arend.vanspriel@broadcom.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2026-08-02 17:40:08 +02:00
..
pcie wifi: qtnfmac: topaz: defer IRQ enabling until IPC init 2026-06-03 14:11:56 +02:00
bus.h wifi: qtnfmac: allocate dummy net_device dynamically 2024-03-21 17:09:25 +02:00
cfg80211.c wifi: cfg80211: convert cookie output to input parameter 2026-08-02 17:40:08 +02:00
cfg80211.h
commands.c wifi: cfg80211: move AP HT/VHT/... operation to beacon info 2026-04-28 09:29:02 +02:00
commands.h
core.c qtnfmac: use alloc_netdev macro for single queue devices 2026-03-19 09:08:09 +01:00
core.h wifi: qtnfmac: fix spelling error in core.h 2024-12-12 20:01:33 +02:00
debug.c
debug.h
event.c wifi: nl80211/cfg80211: support stations of non-netdev interfaces 2026-03-02 09:23:03 +01:00
event.h
Kconfig
Makefile
qlink_util.c
qlink_util.h
qlink.h wifi: qtnfmac: Avoid multiple -Wflex-array-member-not-at-end warnings 2025-02-11 11:58:34 +01:00
qtn_hw_ids.h
shm_ipc_defs.h
shm_ipc.c
shm_ipc.h
switchdev.h
trans.c
trans.h
util.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
util.h