| From e4f7c4696b0701162b5bef4bf699b13313f9c9f5 Mon Sep 17 00:00:00 2001 |
| From: Howard Hsu <howard-yh.hsu@mediatek.com> |
| Date: Mon, 18 Mar 2024 11:13:56 +0800 |
| Subject: [PATCH 007/116] wifi: mt76: mt7992: adjust beamform mcu cmd |
| configuration for mt7992 |
| |
| Adjust the correct beamform mcu cmd configuration for mt7992 chipsets. |
| |
| Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com> |
| --- |
| mt7996/mcu.c | 5 +++-- |
| 1 file changed, 3 insertions(+), 2 deletions(-) |
| |
| diff --git a/mt7996/mcu.c b/mt7996/mcu.c |
| index ceff487..0e5ddf6 100644 |
| --- a/mt7996/mcu.c |
| +++ b/mt7996/mcu.c |
| @@ -3920,8 +3920,9 @@ int mt7996_mcu_set_txbf(struct mt7996_dev *dev, u8 action) |
| |
| tlv = mt7996_mcu_add_uni_tlv(skb, action, sizeof(*req_mod_en)); |
| req_mod_en = (struct bf_mod_en_ctrl *)tlv; |
| - req_mod_en->bf_num = 3; |
| - req_mod_en->bf_bitmap = GENMASK(2, 0); |
| + req_mod_en->bf_num = mt7996_band_valid(dev, MT_BAND2) ? 3 : 2; |
| + req_mod_en->bf_bitmap = mt7996_band_valid(dev, MT_BAND2) ? |
| + GENMASK(2, 0) : GENMASK(1, 0); |
| break; |
| } |
| default: |
| -- |
| 2.18.0 |
| |