linux/drivers/net/wireless
Breno Leitao 08f116c9ea wifi: mt76: un-embedd netdev from mt76_dev
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_devices from struct mt76_dev by converting them
into pointers, and allocating them dynamically. Use the leverage
alloc_netdev_dummy() to allocate the net_device object at
mt76_dma_init().

The free of the device occurs at mt76_dma_cleanup().

Link: https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ [1]
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240619105311.3144908-1-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
History 2024-06-20 19:30:00 -07:00
..
admtek wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
ath wireless-next patches for v6.11 2024-06-10 17:40:26 -07:00
atmel wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
broadcom wireless-next patches for v6.11 2024-06-10 17:40:26 -07:00
intel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-06-20 13:49:59 -07:00
intersil wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
marvell wireless-next patches for v6.11 2024-06-10 17:40:26 -07:00
mediatek wifi: mt76: un-embedd netdev from mt76_dev 2024-06-20 19:30:00 -07:00
microchip wireless-next patches for v6.11 2024-06-10 17:40:26 -07:00
purelifi wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
quantenna wifi: qtnfmac: Remove generic .ndo_get_stats64 2024-05-02 10:20:04 +03:00
ralink wifi: rt2x00: remove unused delayed work data from link description 2024-05-20 08:05:52 +03:00
realtek wireless-next patches for v6.11 2024-06-10 17:40:26 -07:00
rsi wifi: rsi: sdio: simplify module initialization 2024-04-05 11:59:38 +03:00
silabs wifi: wfx: drop driver owner initialization 2024-04-04 11:09:12 +02:00
st wifi: cw1200: restore endian swapping 2024-03-05 20:54:15 +02:00
ti wifi: wl1251: simplify module initialization 2024-04-05 11:59:38 +03:00
virtual virtio: features, fixes, cleanups 2024-05-23 12:04:36 -07:00
zydas wifi: zd1211rw: silence sparse warnings 2024-02-28 13:37:23 +02:00
Kconfig wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00
Makefile wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00