mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user