mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76x0: alloc mcu buffers first in mt76x0_mcu_cmd_init
swap mt76u_mcu_init_rx and mt76x0_mcu_function_select in mt76x0_mcu_cmd_init routine in order to allocate mcu buffers first and then send mcu commands Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
246a216a2b
commit
aae3fb8f53
+4
-2
@@ -387,9 +387,11 @@ int mt76x0_mcu_init(struct mt76x0_dev *dev)
|
||||
|
||||
int mt76x0_mcu_cmd_init(struct mt76x0_dev *dev)
|
||||
{
|
||||
int ret = mt76x0_mcu_function_select(dev, Q_SELECT, 1);
|
||||
int ret;
|
||||
|
||||
ret = mt76u_mcu_init_rx(&dev->mt76);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return mt76u_mcu_init_rx(&dev->mt76);
|
||||
return mt76x0_mcu_function_select(dev, Q_SELECT, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user