mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 21:32:46 +02:00
wifi: mt76: mt7996: set correct value in beamforming mcu command for mt7992
Configure correct bf number and bitmap in beamforming mcu command for mt7992 chipsets, which only support dual-band. Signed-off-by: Howard Hsu <howard-yh.hsu@mediatek.com> Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Link: https://patch.msgid.link/20240816094635.2391-8-shayne.chen@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
9ca65757f0
commit
5dae5d09fe
|
|
@ -3923,8 +3923,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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user