mac80211: minstrel_ht: use bitfields to encode rate indexes
authorFelix Fietkau <nbd@nbd.name>
Wed, 27 Jan 2021 05:57:30 +0000 (06:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 12 Feb 2021 07:56:28 +0000 (08:56 +0100)
commita42fa256f66c425021038f40d9255d377a2d1a8d
treeda11b5497aaab95c653202b0fb066a1644351cdf
parent9e6d51265b0aba145ab03b30dcdf3b88902e71f0
mac80211: minstrel_ht: use bitfields to encode rate indexes

Get rid of a lot of divisions and modulo operations
Reduces code size and improves performance

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20210127055735.78599-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rc80211_minstrel_ht.c
net/mac80211/rc80211_minstrel_ht.h
net/mac80211/rc80211_minstrel_ht_debugfs.c