mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: connac: move mt76_connac_mcu_rdd_cmd in mt76-connac module
Move mt76_connac_mcu_rdd_cmd routine in mt76-connac module and remove duplicated code. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0826b39922
commit
058de6d36f
@@ -1891,27 +1891,6 @@ int mt7615_mcu_del_wtbl_all(struct mt7615_dev *dev)
|
||||
&req, sizeof(req), true);
|
||||
}
|
||||
|
||||
int mt7615_mcu_rdd_cmd(struct mt7615_dev *dev,
|
||||
enum mt7615_rdd_cmd cmd, u8 index,
|
||||
u8 rx_sel, u8 val)
|
||||
{
|
||||
struct {
|
||||
u8 ctrl;
|
||||
u8 rdd_idx;
|
||||
u8 rdd_rx_sel;
|
||||
u8 val;
|
||||
u8 rsv[4];
|
||||
} req = {
|
||||
.ctrl = cmd,
|
||||
.rdd_idx = index,
|
||||
.rdd_rx_sel = rx_sel,
|
||||
.val = val,
|
||||
};
|
||||
|
||||
return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(SET_RDD_CTRL),
|
||||
&req, sizeof(req), true);
|
||||
}
|
||||
|
||||
int mt7615_mcu_set_fcc5_lpn(struct mt7615_dev *dev, int val)
|
||||
{
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user