Skip to content

Commit c5139fc

Browse files
csyuancnbd168
authored andcommitted
wifi: mt76: mt7996: do not hardcode vht beamform cap
Use the sts variable when setting vht beamform sts cap. Signed-off-by: Shayne Chen <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
1 parent 793445c commit c5139fc

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7996

1 file changed

+1
-1
lines changed

drivers/net/wireless/mediatek/mt76/mt7996/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ void mt7996_set_stream_vht_txbf_caps(struct mt7996_phy *phy)
465465

466466
*cap |= IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE |
467467
IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE |
468-
(3 << IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT);
468+
FIELD_PREP(IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK, sts - 1);
469469

470470
*cap &= ~(IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK |
471471
IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE |

0 commit comments

Comments
 (0)