]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: minstrel_ht: automatically calculate rate duration shift
authorFelix Fietkau <nbd@nbd.name>
Mon, 25 Mar 2019 08:50:16 +0000 (09:50 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Apr 2019 11:02:11 +0000 (13:02 +0200)
commitd1b5e0a37d5a8bb3b3df3733a01fbf98c2711fca
tree2d51ef5d7a02b631cb82c07865d8ac996fff02f5
parent37e5754dc80edacf1bf30442a26deeb590efc972
mac80211: minstrel_ht: automatically calculate rate duration shift

A per-group shift was added to reduce the size of the per-rate transmit
duration field to u16 without sacrificing a lot of precision
This patch changes the macros to automatically calculate the best value for
this shift based on the lowest rate within the group.
This simplifies adding more groups and slightly improves accuracy for some of
the existing groups.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c