diff options
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index cf63b635afc0..1c39d6a2e850 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c | |||
@@ -1246,7 +1246,7 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate) | |||
1246 | if (rate->he_dcm) | 1246 | if (rate->he_dcm) |
1247 | result /= 2; | 1247 | result /= 2; |
1248 | 1248 | ||
1249 | return result; | 1249 | return result / 10000; |
1250 | } | 1250 | } |
1251 | 1251 | ||
1252 | u32 cfg80211_calculate_bitrate(struct rate_info *rate) | 1252 | u32 cfg80211_calculate_bitrate(struct rate_info *rate) |
@@ -1998,7 +1998,7 @@ int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap, | |||
1998 | continue; | 1998 | continue; |
1999 | 1999 | ||
2000 | if (supp >= mcs_encoding) { | 2000 | if (supp >= mcs_encoding) { |
2001 | max_vht_nss = i; | 2001 | max_vht_nss = i + 1; |
2002 | break; | 2002 | break; |
2003 | } | 2003 | } |
2004 | } | 2004 | } |