]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1ab668e58dee3644f251b8b3b65a63ff8a693e3a
treeda11b5497aaab95c653202b0fb066a1644351cdf
parentd4ca6eb45e7d58899aa1f6f56d21f3077ae4285d
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