Skip to content

Commit 9ee0d44

Browse files
Baochen Qiangjmberg-intel
authored andcommitted
wifi: cfg80211: fix typo in cfg80211_calculate_bitrate_he()
rates_996 is mistakenly written as rates_969, fix it. Fixes: c4cbaf7 ("cfg80211: Add support for HE") Signed-off-by: Baochen Qiang <[email protected]> Link: https://msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent c018411 commit 9ee0d44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/wireless/util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate)
15041504
5120, /* 0.833333... */
15051505
};
15061506
u32 rates_160M[3] = { 960777777, 907400000, 816666666 };
1507-
u32 rates_969[3] = { 480388888, 453700000, 408333333 };
1507+
u32 rates_996[3] = { 480388888, 453700000, 408333333 };
15081508
u32 rates_484[3] = { 229411111, 216666666, 195000000 };
15091509
u32 rates_242[3] = { 114711111, 108333333, 97500000 };
15101510
u32 rates_106[3] = { 40000000, 37777777, 34000000 };
@@ -1529,7 +1529,7 @@ static u32 cfg80211_calculate_bitrate_he(struct rate_info *rate)
15291529
else if (rate->bw == RATE_INFO_BW_80 ||
15301530
(rate->bw == RATE_INFO_BW_HE_RU &&
15311531
rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_996))
1532-
result = rates_969[rate->he_gi];
1532+
result = rates_996[rate->he_gi];
15331533
else if (rate->bw == RATE_INFO_BW_40 ||
15341534
(rate->bw == RATE_INFO_BW_HE_RU &&
15351535
rate->he_ru_alloc == NL80211_RATE_INFO_HE_RU_ALLOC_484))

0 commit comments

Comments
 (0)