mac80211: minstrel_ht: Increase the range of handled rate indexes
Since 5935839ad7
("mac80211: improve minstrel_ht rate sorting by
throughput & probability"), the rate indexes are manipulated via u8's
and hence allow for a maximum of 256 mcs_group entries in
minstrel_mcs_groups.
ATM, minstrel_ht advertizes support up to 3HTSS@40MHz, consuming:
8(MCS_GROUP_RATES) * (3(SS)*2(GI)*2(BW)+1(CCK)), i.e. 104 entries.
Support for 3VHTSS@80MHz will require:
10(MCS_GROUP_RATES) * (3(SS)*2(GI)*2(BW)+1(CCK)) +
10(MCS_GROUP_RATES) * (3(SS)*2(GI)*3(BW)), i.e. 130 + 180 entries.
This change moves from u8s to u16s where necessary.
Signed-off-by: Karl Beldan <karl.beldan@rivierawaves.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
8fa74e3aa6
commit
d4d141cae8
@@ -34,8 +34,8 @@ struct minstrel_mcs_group_data {
|
||||
u8 supported;
|
||||
|
||||
/* sorted rate set within a MCS group*/
|
||||
u8 max_group_tp_rate[MAX_THR_RATES];
|
||||
u8 max_group_prob_rate;
|
||||
u16 max_group_tp_rate[MAX_THR_RATES];
|
||||
u16 max_group_prob_rate;
|
||||
|
||||
/* MCS rate statistics */
|
||||
struct minstrel_rate_stats rates[MCS_GROUP_RATES];
|
||||
@@ -52,8 +52,8 @@ struct minstrel_ht_sta {
|
||||
unsigned int avg_ampdu_len;
|
||||
|
||||
/* overall sorted rate set */
|
||||
u8 max_tp_rate[MAX_THR_RATES];
|
||||
u8 max_prob_rate;
|
||||
u16 max_tp_rate[MAX_THR_RATES];
|
||||
u16 max_prob_rate;
|
||||
|
||||
/* time of last status update */
|
||||
unsigned long stats_update;
|
||||
|
Reference in New Issue
Block a user