cfg80211/mac80211: improve ad-hoc multicast rate handling
authorFelix Fietkau <nbd@openwrt.org>
Mon, 22 Nov 2010 19:58:24 +0000 (20:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Nov 2010 21:19:35 +0000 (16:19 -0500)
commitdd5b4cc71cd09c33e1579cc6d5720656e94e52de
tree86a27c86480109d9b6bbedddc083095035fbef2d
parent46090979a55a0dc2cdb3d939f94fa47742108194
cfg80211/mac80211: improve ad-hoc multicast rate handling

- store the multicast rate as an index instead of the rate value
  (reduces cpu overhead in a hotpath)
- validate the rate values (must match a bitrate in at least one sband)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h
include/net/mac80211.h
net/mac80211/ibss.c
net/mac80211/rate.c
net/wireless/nl80211.c