]> git.baikalelectronics.ru Git - kernel.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)
commit291aa463180f15c6591361765c62951a77566a83
tree29927d762aff0f9d8a8eea57784fb0067fb58ca7
parente04269fa73c38aaaa09c8048554fc4cb5dd258f9
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