]> 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)
commit2a8e69a47694a1fab23c7839510eedb2f7ac9b2d
tree29927d762aff0f9d8a8eea57784fb0067fb58ca7
parent945aa291147bc155063418b6486c2de479c6fdc1
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