mac80211: check size of channel switch IE when parsing
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Aug 2012 14:13:02 +0000 (16:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Aug 2012 11:57:50 +0000 (13:57 +0200)
commit5bc1420b11903e9f8c470d3b33061b8de0c5c005
tree5fa942edea59ad047aa58f9d84c6259cd3b4f314
parent3049000b97bbfc90aa9ba413eadc4007e5bce2e0
mac80211: check size of channel switch IE when parsing

The channel switch IE has a fixed size, so we can
discard it in parsing if it's not the right size
and use the right struct pointer.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/util.c