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:
Felix Fietkau
2020-07-14 18:17:34 +02:00
parent f9a7a2f7db
commit 1641aa2016
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -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
View File
@@ -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);