Skip to content

Commit

Permalink
mt76: mt7915: improve code readability in mt7915_mcu_sta_bfer_ht
Browse files Browse the repository at this point in the history
Even if it is a not real issue, add missing brackets in
mt7915_mcu_sta_bfer_ht routine in order to improve code readability

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Oct 19, 2021
1 parent 8d12f9e commit e7883cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7915/mcu.c
Expand Up @@ -1775,7 +1775,7 @@ mt7915_mcu_sta_bfer_ht(struct ieee80211_sta *sta, struct mt7915_phy *phy,
bf->tx_mode = MT_PHY_TYPE_HT;
bf->bf_cap = MT_IBF;

if (mcs->tx_params & IEEE80211_HT_MCS_TX_RX_DIFF &&
if ((mcs->tx_params & IEEE80211_HT_MCS_TX_RX_DIFF) &&
(mcs->tx_params & IEEE80211_HT_MCS_TX_DEFINED))
n = FIELD_GET(IEEE80211_HT_MCS_TX_MAX_STREAMS_MASK,
mcs->tx_params);
Expand Down

0 comments on commit e7883cd

Please sign in to comment.