mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: support TxBF for DBDC
With this patch, TxBF can be run on both bands simultaneously. Signed-off-by: Ryder Lee <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -209,6 +209,13 @@ static int mt7915_txbf_init(struct mt7915_dev *dev)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
if (dev->dbdc_support) {
|
||||
ret = mt7915_mcu_set_txbf_module(dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* trigger sounding packets */
|
||||
ret = mt7915_mcu_set_txbf_sounding(dev);
|
||||
if (ret)
|
||||
|
||||
@@ -3424,6 +3424,25 @@ int mt7915_mcu_set_ser(struct mt7915_dev *dev, u8 action, u8 set, u8 band)
|
||||
&req, sizeof(req), false);
|
||||
}
|
||||
|
||||
int mt7915_mcu_set_txbf_module(struct mt7915_dev *dev)
|
||||
{
|
||||
#define MT_BF_MODULE_UPDATE 25
|
||||
struct {
|
||||
u8 action;
|
||||
u8 bf_num;
|
||||
u8 bf_bitmap;
|
||||
u8 bf_sel[8];
|
||||
u8 rsv[8];
|
||||
} __packed req = {
|
||||
.action = MT_BF_MODULE_UPDATE,
|
||||
.bf_num = 2,
|
||||
.bf_bitmap = GENMASK(1, 0),
|
||||
};
|
||||
|
||||
return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD_TXBF_ACTION, &req,
|
||||
sizeof(req), true);
|
||||
}
|
||||
|
||||
int mt7915_mcu_set_txbf_type(struct mt7915_dev *dev)
|
||||
{
|
||||
#define MT_BF_TYPE_UPDATE 20
|
||||
|
||||
@@ -335,6 +335,7 @@ int mt7915_mcu_set_pm(struct mt7915_dev *dev, int band, int enter);
|
||||
int mt7915_mcu_set_sku_en(struct mt7915_phy *phy, bool enable);
|
||||
int mt7915_mcu_set_txpower_sku(struct mt7915_phy *phy);
|
||||
int mt7915_mcu_set_txbf_type(struct mt7915_dev *dev);
|
||||
int mt7915_mcu_set_txbf_module(struct mt7915_dev *dev);
|
||||
int mt7915_mcu_set_txbf_sounding(struct mt7915_dev *dev);
|
||||
int mt7915_mcu_set_fcc5_lpn(struct mt7915_dev *dev, int val);
|
||||
int mt7915_mcu_set_pulse_th(struct mt7915_dev *dev,
|
||||
|
||||
Reference in New Issue
Block a user