mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
mt76: mt7615: fix mt7615_mcu_set_test_param set non-bool parameters
Fixes testmode freq_offset Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+3
-4
@@ -2931,21 +2931,20 @@ int mt7615_mcu_get_temperature(struct mt7615_dev *dev, int index)
|
||||
}
|
||||
|
||||
int mt7615_mcu_set_test_param(struct mt7615_dev *dev, u8 param, bool test_mode,
|
||||
bool en)
|
||||
u32 val)
|
||||
{
|
||||
struct {
|
||||
u8 test_mode_en;
|
||||
u8 param_idx;
|
||||
u8 _rsv[2];
|
||||
|
||||
u8 enable;
|
||||
u8 _rsv2[3];
|
||||
__le32 value;
|
||||
|
||||
u8 pad[8];
|
||||
} req = {
|
||||
.test_mode_en = test_mode,
|
||||
.param_idx = param,
|
||||
.enable = en,
|
||||
.value = cpu_to_le32(val),
|
||||
};
|
||||
|
||||
return __mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD_ATE_CTRL, &req,
|
||||
|
||||
+1
-1
@@ -626,7 +626,7 @@ int mt7615_mcu_set_pulse_th(struct mt7615_dev *dev,
|
||||
int mt7615_mcu_set_radar_th(struct mt7615_dev *dev, int index,
|
||||
const struct mt7615_dfs_pattern *pattern);
|
||||
int mt7615_mcu_set_test_param(struct mt7615_dev *dev, u8 param, bool test_mode,
|
||||
bool en);
|
||||
u32 val);
|
||||
int mt7615_mcu_set_sku_en(struct mt7615_phy *phy, bool enable);
|
||||
int mt7615_mcu_apply_rx_dcoc(struct mt7615_phy *phy);
|
||||
int mt7615_mcu_apply_tx_dpd(struct mt7615_phy *phy);
|
||||
|
||||
Reference in New Issue
Block a user