]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't allow registering the same rate control twice
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 28 Oct 2007 13:49:33 +0000 (14:49 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 11 Nov 2007 05:59:43 +0000 (21:59 -0800)
commitaf687372c6a771a81980f3cd5e2ad148992bf661
tree57498e6de24beb8a998e3a14743e8b7d73869e60
parent708d6996fecfab3f7b1e9efde5ebb417f4ffd94e
mac80211: don't allow registering the same rate control twice

Previously, mac80211 would allow registering the same rate control
algorithm twice. This is a programming error in the registration
and should not happen; additionally the second version could never
be selected. Disallow this and warn about it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_rate.c