Re: [PATCH net-next v7 10/10] wifi: ath11k: 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 ath11k_ext_irq_grp by converting it > into a pointer. Then use the leverage allo

[PATCH net-next v7 10/10] wifi: ath11k: 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 ath11k_ext_irq_grp by converting it into a pointer. Then use the leverage alloc_netdev() to allocate the net_dev