]> 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)
commit60dc2b03afb94ad651384d359e4c7b25435d5b6d
treeda11b5497aaab95c653202b0fb066a1644351cdf
parente8dc37e0f48c01e4af74c5d0a8b7b8a735eb4fbe
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