mac80211: parse Timeout Interval Element using a struct
authorJohannes Berg <johannes.berg@intel.com>
Wed, 27 Mar 2013 13:38:07 +0000 (14:38 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 8 Apr 2013 07:16:58 +0000 (09:16 +0200)
commit79ba1d8910f517c3bd39d794ddb1a5b4c03795c4
treefaff88285c710cacce1c04beda8074b57b17801a
parent1946bed95707ef75d85e94ebe106ce7a119ca831
mac80211: parse Timeout Interval Element using a struct

Instead of open-coding the accesses and length check do
the length check in the IE parser and assign a struct
pointer for use in the remaining code.

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