Commit 9df66d5b authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Johannes Berg

cfg80211: fix default HE tx bitrate mask in 2G band

In 2G band, a HE sta can only supports HT and HE, but not supports VHT.
In this case, default HE tx bitrate mask isn't filled, when we use iw to
set bitrates without any parameter.
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Link: https://lore.kernel.org/r/20210609075944.51130-1-pkshih@realtek.comSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 057e377a
...@@ -4781,11 +4781,10 @@ static int nl80211_parse_tx_bitrate_mask(struct genl_info *info, ...@@ -4781,11 +4781,10 @@ static int nl80211_parse_tx_bitrate_mask(struct genl_info *info,
sband->ht_cap.mcs.rx_mask, sband->ht_cap.mcs.rx_mask,
sizeof(mask->control[i].ht_mcs)); sizeof(mask->control[i].ht_mcs));
if (!sband->vht_cap.vht_supported) if (sband->vht_cap.vht_supported) {
continue;
vht_tx_mcs_map = le16_to_cpu(sband->vht_cap.vht_mcs.tx_mcs_map); vht_tx_mcs_map = le16_to_cpu(sband->vht_cap.vht_mcs.tx_mcs_map);
vht_build_mcs_mask(vht_tx_mcs_map, mask->control[i].vht_mcs); vht_build_mcs_mask(vht_tx_mcs_map, mask->control[i].vht_mcs);
}
he_cap = ieee80211_get_he_iftype_cap(sband, wdev->iftype); he_cap = ieee80211_get_he_iftype_cap(sband, wdev->iftype);
if (!he_cap) if (!he_cap)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment