We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5737b45 commit 6e53d6dCopy full SHA for 6e53d6d
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
@@ -176,7 +176,7 @@ mt7915_get_phy_mode(struct ieee80211_vif *vif, struct ieee80211_sta *sta)
176
if (ht_cap->ht_supported)
177
mode |= PHY_MODE_GN;
178
179
- if (he_cap->has_he)
+ if (he_cap && he_cap->has_he)
180
mode |= PHY_MODE_AX_24G;
181
} else if (band == NL80211_BAND_5GHZ) {
182
mode |= PHY_MODE_A;
@@ -187,7 +187,7 @@ mt7915_get_phy_mode(struct ieee80211_vif *vif, struct ieee80211_sta *sta)
187
if (vht_cap->vht_supported)
188
mode |= PHY_MODE_AC;
189
190
191
mode |= PHY_MODE_AX_5G;
192
}
193
0 commit comments