Re: [PATCH net-next v7 09/10] wifi: ath10k: allocate dummy net_device dynamically

2024-04-22 Thread Kalle Valo
Breno Leitao writes: > 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 ath10k by converting it > into a pointer. Then use the leverage alloc_netdev()

[PATCH net-next v7 09/10] wifi: ath10k: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
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 ath10k by converting it into a pointer. Then use the leverage alloc_netdev() to allocate the net_device object