]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: fix and optimize MCS mask handling
authorFelix Fietkau <nbd@openwrt.org>
Tue, 16 Apr 2013 11:38:42 +0000 (13:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Apr 2013 21:42:29 +0000 (23:42 +0200)
commit2ffbe6d333664a089f17b13aa79eefe38f794bb7
tree29927d762aff0f9d8a8eea57784fb0067fb58ca7
parentdad6330d034a24a22008ee28b8ec447cbb0961c9
mac80211: fix and optimize MCS mask handling

Currently the code always copies the configured MCS mask (even if it is
set to default), but only uses it if legacy rates were also masked out.
Fix this by adding a flag that tracks whether the configured MCS mask is
set to default or not.
Optimize the code further by storing a pointer to the configured rate
mask in txrc instead of using memcpy.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/rate.c
net/mac80211/tx.c