Skip to content

Commit 00ff523

Browse files
csyuancnbd168
authored andcommitted
mt76: mt7921: use correct iftype data on 6GHz cap init
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 <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
1 parent 9b5271f commit 00ff523

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

drivers/net/wireless/mediatek/mt76/mt7921/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ mt7921_init_he_caps(struct mt7921_phy *phy, enum nl80211_band band,
178178
if (vht_cap->cap & IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN)
179179
cap |= IEEE80211_HE_6GHZ_CAP_RX_ANTPAT_CONS;
180180

181-
data->he_6ghz_capa.capa = cpu_to_le16(cap);
181+
data[idx].he_6ghz_capa.capa = cpu_to_le16(cap);
182182
}
183183
idx++;
184184
}

0 commit comments

Comments
 (0)