aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHelmut Schaa <[email protected]>2011-11-14 15:28:20 +0100
committerJohn W. Linville <[email protected]>2011-11-17 15:43:57 -0500
commita5f69d94d8e239b48299abdd836840b7447866ab (patch)
tree649d879ce4d9203537e5c071fcf60da3270d5355 /tools/perf/scripts/python
parentb79296beeba470074737a7d5a941f4ddd64863d8 (diff)
mac80211: Get rid of search loop for rate group index
Finding the group index for a specific rate is done by looping through all groups and returning if the correct one is found. This code is called for each tx'ed frame and thus it makes sense to reduce its runtime. Do this by calculating the group index by this formula based on the SGI and HT40 flags as well as the stream number: idx = (HT40 * 2 * MINSTREL_MAX_STREAMS) + (SGI * MINSTREL_MAX_STREAMS) + (streams - 1) Hence, the groups are ordered by th HT40 flag first, then by the SGI flag and afterwards by the number of used streams. This should reduce the runtime of minstrel_ht_get_group_idx considerable. Signed-off-by: Helmut Schaa <[email protected]> Acked-by: Felix Fietkau <[email protected]> Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions