Skip to content

Commit

Permalink
mt76: mt7921: use correct iftype data on 6GHz cap init
Browse files Browse the repository at this point in the history
Set 6GHz cap to iftype data which is matched to the type of
current interface.

Fixes: 50ac15a ("mt76: mt7921: add 6GHz support")
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Shayne Chen authored and Felix Fietkau committed Dec 19, 2021
1 parent 9b5271f commit 00ff523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mediatek/mt76/mt7921/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ mt7921_init_he_caps(struct mt7921_phy *phy, enum nl80211_band band,
if (vht_cap->cap & IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN)
cap |= IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS;

data->he_6ghz_capa.capa = cpu_to_le16(cap);
data[idx].he_6ghz_capa.capa = cpu_to_le16(cap);
}
idx++;
}
Expand Down

0 comments on commit 00ff523

Please sign in to comment.