diff options
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.c | 16 | ||||
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.h | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index 17ef54a7a492..ccec718c29f9 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c | |||
@@ -240,8 +240,8 @@ minstrel_ht_calc_tp(struct minstrel_ht_sta *mi, int group, int rate) | |||
240 | * MCS groups, CCK rates do not provide aggregation and are therefore at last. | 240 | * MCS groups, CCK rates do not provide aggregation and are therefore at last. |
241 | */ | 241 | */ |
242 | static void | 242 | static void |
243 | minstrel_ht_sort_best_tp_rates(struct minstrel_ht_sta *mi, u8 index, | 243 | minstrel_ht_sort_best_tp_rates(struct minstrel_ht_sta *mi, u16 index, |
244 | u8 *tp_list) | 244 | u16 *tp_list) |
245 | { | 245 | { |
246 | int cur_group, cur_idx, cur_thr, cur_prob; | 246 | int cur_group, cur_idx, cur_thr, cur_prob; |
247 | int tmp_group, tmp_idx, tmp_thr, tmp_prob; | 247 | int tmp_group, tmp_idx, tmp_thr, tmp_prob; |
@@ -278,7 +278,7 @@ minstrel_ht_sort_best_tp_rates(struct minstrel_ht_sta *mi, u8 index, | |||
278 | * Find and set the topmost probability rate per sta and per group | 278 | * Find and set the topmost probability rate per sta and per group |
279 | */ | 279 | */ |
280 | static void | 280 | static void |
281 | minstrel_ht_set_best_prob_rate(struct minstrel_ht_sta *mi, u8 index) | 281 | minstrel_ht_set_best_prob_rate(struct minstrel_ht_sta *mi, u16 index) |
282 | { | 282 | { |
283 | struct minstrel_mcs_group_data *mg; | 283 | struct minstrel_mcs_group_data *mg; |
284 | struct minstrel_rate_stats *mr; | 284 | struct minstrel_rate_stats *mr; |
@@ -321,8 +321,8 @@ minstrel_ht_set_best_prob_rate(struct minstrel_ht_sta *mi, u8 index) | |||
321 | */ | 321 | */ |
322 | static void | 322 | static void |
323 | minstrel_ht_assign_best_tp_rates(struct minstrel_ht_sta *mi, | 323 | minstrel_ht_assign_best_tp_rates(struct minstrel_ht_sta *mi, |
324 | u8 tmp_mcs_tp_rate[MAX_THR_RATES], | 324 | u16 tmp_mcs_tp_rate[MAX_THR_RATES], |
325 | u8 tmp_cck_tp_rate[MAX_THR_RATES]) | 325 | u16 tmp_cck_tp_rate[MAX_THR_RATES]) |
326 | { | 326 | { |
327 | unsigned int tmp_group, tmp_idx, tmp_cck_tp, tmp_mcs_tp; | 327 | unsigned int tmp_group, tmp_idx, tmp_cck_tp, tmp_mcs_tp; |
328 | int i; | 328 | int i; |
@@ -386,8 +386,8 @@ minstrel_ht_update_stats(struct minstrel_priv *mp, struct minstrel_ht_sta *mi) | |||
386 | struct minstrel_mcs_group_data *mg; | 386 | struct minstrel_mcs_group_data *mg; |
387 | struct minstrel_rate_stats *mr; | 387 | struct minstrel_rate_stats *mr; |
388 | int group, i, j; | 388 | int group, i, j; |
389 | u8 tmp_mcs_tp_rate[MAX_THR_RATES], tmp_group_tp_rate[MAX_THR_RATES]; | 389 | u16 tmp_mcs_tp_rate[MAX_THR_RATES], tmp_group_tp_rate[MAX_THR_RATES]; |
390 | u8 tmp_cck_tp_rate[MAX_THR_RATES], index; | 390 | u16 tmp_cck_tp_rate[MAX_THR_RATES], index; |
391 | 391 | ||
392 | if (mi->ampdu_packets > 0) { | 392 | if (mi->ampdu_packets > 0) { |
393 | mi->avg_ampdu_len = minstrel_ewma(mi->avg_ampdu_len, | 393 | mi->avg_ampdu_len = minstrel_ewma(mi->avg_ampdu_len, |
@@ -517,7 +517,7 @@ minstrel_next_sample_idx(struct minstrel_ht_sta *mi) | |||
517 | } | 517 | } |
518 | 518 | ||
519 | static void | 519 | static void |
520 | minstrel_downgrade_rate(struct minstrel_ht_sta *mi, u8 *idx, bool primary) | 520 | minstrel_downgrade_rate(struct minstrel_ht_sta *mi, u16 *idx, bool primary) |
521 | { | 521 | { |
522 | int group, orig_group; | 522 | int group, orig_group; |
523 | 523 | ||
diff --git a/net/mac80211/rc80211_minstrel_ht.h b/net/mac80211/rc80211_minstrel_ht.h index 01570e0e014b..8b54e894b197 100644 --- a/net/mac80211/rc80211_minstrel_ht.h +++ b/net/mac80211/rc80211_minstrel_ht.h | |||
@@ -34,8 +34,8 @@ struct minstrel_mcs_group_data { | |||
34 | u8 supported; | 34 | u8 supported; |
35 | 35 | ||
36 | /* sorted rate set within a MCS group*/ | 36 | /* sorted rate set within a MCS group*/ |
37 | u8 max_group_tp_rate[MAX_THR_RATES]; | 37 | u16 max_group_tp_rate[MAX_THR_RATES]; |
38 | u8 max_group_prob_rate; | 38 | u16 max_group_prob_rate; |
39 | 39 | ||
40 | /* MCS rate statistics */ | 40 | /* MCS rate statistics */ |
41 | struct minstrel_rate_stats rates[MCS_GROUP_RATES]; | 41 | struct minstrel_rate_stats rates[MCS_GROUP_RATES]; |
@@ -52,8 +52,8 @@ struct minstrel_ht_sta { | |||
52 | unsigned int avg_ampdu_len; | 52 | unsigned int avg_ampdu_len; |
53 | 53 | ||
54 | /* overall sorted rate set */ | 54 | /* overall sorted rate set */ |
55 | u8 max_tp_rate[MAX_THR_RATES]; | 55 | u16 max_tp_rate[MAX_THR_RATES]; |
56 | u8 max_prob_rate; | 56 | u16 max_prob_rate; |
57 | 57 | ||
58 | /* time of last status update */ | 58 | /* time of last status update */ |
59 | unsigned long stats_update; | 59 | unsigned long stats_update; |