wifi: mt76: add init_wiphy callback

Add an optional callback for drivers to finalize wiphy state after mt76
has initialized the supported bands and before registration.

Co-developed-by: Stella Liu <[email protected]>
Signed-off-by: Stella Liu <[email protected]>
Co-developed-by: Jeremy Yu <[email protected]>
Signed-off-by: Jeremy Yu <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Sean Wang
2026-08-25 11:23:44 +02:00
committed by Felix Fietkau
parent 302d9cb210
commit 342da0fac1
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -954,6 +954,9 @@ struct mt76_dev {
const struct mt76_bus_ops *bus;
const struct mt76_driver_ops *drv;
const struct mt76_mcu_ops *mcu_ops;
/* Optional callback to finalize wiphy state before registration. */
int (*init_wiphy)(struct mt76_dev *dev);
struct device *dev;
struct device *dma_dev;