wifi: qtnfmac: Move stats allocation to core
authorBreno Leitao <leitao@debian.org>
Fri, 26 Apr 2024 09:31:48 +0000 (02:31 -0700)
committerKalle Valo <kvalo@kernel.org>
Thu, 2 May 2024 07:20:04 +0000 (10:20 +0300)
commit3d1a6e573bb12c86d6df0436a5febb3e0e5825f5
tree97d196e41bcf6098a36dc3b0130302978bea0679
parentcc1380dd188204ada05936b034e93dbca9b5f06a
wifi: qtnfmac: Move stats allocation to core

With commit 34d21de99cea9 ("net: Move {l,t,d}stats allocation to core and
convert veth & vrf"), stats allocation could be done on net core instead
of this driver.

With this new approach, the driver doesn't have to bother with error
handling (allocation failure checking, making sure free happens in the
right spot, etc). This is core responsibility now.

Move qtnfmac driver to leverage the core allocation.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240426093156.2002258-1-leitao@debian.org
drivers/net/wireless/quantenna/qtnfmac/core.c