wifi: mt76: mt7921: refactor regulatory notifier flow

Rename mt7921_regd_update() to mt7921_mcu_regd_update() to centralize
regd updates with error handling.

Co-developed-by: Sean Wang <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: JB Tsai <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
JB Tsai
2026-06-09 12:28:21 +02:00
committed by Felix Fietkau
parent 1ec0abf5d9
commit cd3d2a68c9
4 changed files with 36 additions and 16 deletions
+1 -1
View File
@@ -589,7 +589,7 @@ static int mt7921_pci_resume(struct device *device)
if (err < 0)
goto failed;
mt7921_regd_update(dev);
mt7921_mcu_regd_update(dev, mdev->alpha2, dev->country_ie_env);
err = mt7921_mcu_radio_led_ctrl(dev, EXT_CMD_RADIO_ON_LED);
failed:
pm->suspended = false;