cfg80211: validate nl80211 station handling better
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Dec 2011 11:20:27 +0000 (12:20 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Dec 2011 19:45:45 +0000 (14:45 -0500)
commitbdd90d5e36a55271beb957b3d7ca3e29b2a90207
tree79243e73e6c64217bc676507504b72a2d59fc096
parentd83023daa219486e9aa139d423308a045bf0438b
cfg80211: validate nl80211 station handling better

The nl80211 station handling code is a bit messy
and doesn't do a lot of validation. It seems like
this could be an issue for drivers that don't use
mac80211 to validate everything.

As cfg80211 doesn't keep station state, move the
validation of allowing supported_rates to change
for TDLS only in station mode to mac80211.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/nl80211.h
include/net/cfg80211.h
net/mac80211/cfg.c
net/wireless/nl80211.c