linux/drivers/net/wireless/ath/wil6210
Breno Leitao 10d2b4f4aa wifi: wil6210: Do not use embedded netdev in wil6210_priv
Embedding net_device into structures prohibits the usage of flexible
arrays in the net_device structure. For more details, see the discussion
at [1].

Un-embed the net_device from struct wil6210_priv by converting it
into a pointer. Then use the leverage alloc_netdev_dummy() to allocate
the net_device object at wil_if_add(). The free of the device
occurs at wil_if_remove().

Link: https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ [1]
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240503103304.339489-1-leitao@debian.org
2024-05-07 13:05:24 +03:00
..
Kconfig
Makefile
boot_loader.h
cfg80211.c wifi: wil6210: cfg80211: Use __counted_by() in struct wmi_start_scan_cmd and avoid some -Wfamnae warnings 2024-04-04 13:11:27 +03:00
debug.c
debugfs.c
ethtool.c
fw.c
fw.h wifi: wil6210: fix sparse warnings 2024-03-25 12:50:42 +02:00
fw_inc.c wifi: wil6210: fix sparse warnings 2024-03-25 12:50:42 +02:00
interrupt.c
main.c
netdev.c wifi: wil6210: Do not use embedded netdev in wil6210_priv 2024-05-07 13:05:24 +03:00
p2p.c
pcie_bus.c
pm.c
pmc.c
pmc.h
rx_reorder.c
trace.c
trace.h
txrx.c wifi: wil6210: fix fortify warnings 2023-07-27 19:12:49 +03:00
txrx.h wifi: wil6210: fix fortify warnings 2023-07-27 19:12:49 +03:00
txrx_edma.c wifi: wil6210: fix fortify warnings 2023-07-27 19:12:49 +03:00
txrx_edma.h wifi: wil6210: fix fortify warnings 2023-07-27 19:12:49 +03:00
wil6210.h wifi: wil6210: Do not use embedded netdev in wil6210_priv 2024-05-07 13:05:24 +03:00
wil_crash_dump.c
wil_platform.c
wil_platform.h
wmi.c wifi: wil6210: wmi: Use __counted_by() in struct wmi_set_link_monitor_cmd and avoid -Wfamnae warning 2024-04-04 13:12:20 +03:00
wmi.h wifi: wil6210: wmi: Use __counted_by() in struct wmi_set_link_monitor_cmd and avoid -Wfamnae warning 2024-04-04 13:12:20 +03:00