@@ -2856,9 +2856,13 @@ static int ieee80211_set_bitrate_mask(struct wiphy *wiphy,
memcpy(sdata->rc_rateidx_vht_mcs_mask[i],
mask->control[i].vht_mcs,
sizeof(mask->control[i].vht_mcs));
+ memcpy(sdata->rc_rateidx_he_mcs_mask[i],
+ mask->control[i].he_mcs,
+ sizeof(mask->control[i].he_mcs));
sdata->rc_has_mcs_mask[i] = false;
sdata->rc_has_vht_mcs_mask[i] = false;
+ sdata->rc_has_he_mcs_mask[i] = false;
if (!sband)
continue;
@@ -2875,6 +2879,13 @@ static int ieee80211_set_bitrate_mask(struct wiphy *wiphy,
break;
}
}
+
+ for (j = 0; j < NL80211_HE_NSS_MAX; j++) {
+ if (~sdata->rc_rateidx_he_mcs_mask[i][j]) {
+ sdata->rc_has_he_mcs_mask[i] = true;
+ break;
+ }
+ }
}
return 0;
@@ -968,6 +968,9 @@ struct ieee80211_sub_if_data {
u32 beacon_rateidx_mask[NUM_NL80211_BANDS];
bool beacon_rate_set;
+ bool rc_has_he_mcs_mask[NUM_NL80211_BANDS];
+ u16 rc_rateidx_he_mcs_mask[NUM_NL80211_BANDS][NL80211_HE_NSS_MAX];
+
union {
struct ieee80211_if_ap ap;
struct ieee80211_if_wds wds;