Johannes Berg e7ec86f54e mac80211: validate TIM IE length (redux)
The TIM IE must not be shorter than 4 bytes, so verify that
when parsing it and use the proper type. To ease that adjust
struct ieee80211_tim_ie to have a virtual bitmap of size
at least 1.

Also check that the TIM IE is actually present before trying
to parse it!

Because other people may need the function, make it a static
inline in ieee80211.h.

(The original "mac80211: validate TIM IE length" was a minimal fix for
2.6.30.  This purports to be the full, correct fix. -- JWL)

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2009-04-22 16:57:18 -04:00
..
2009-04-20 02:14:59 -07:00
2009-01-04 17:29:21 -08:00
2009-03-21 13:36:17 -07:00
2009-04-09 17:21:22 -07:00
2009-03-31 23:00:26 -04:00
2009-04-22 16:54:27 -04:00
2009-02-26 23:43:35 -08:00