mac80211: constify IE parsing
authorJohannes Berg <johannes.berg@intel.com>
Tue, 12 Feb 2013 15:43:19 +0000 (16:43 +0100)
committerChristian Lamparter <chunkeey@googlemail.com>
Mon, 18 Feb 2013 00:34:50 +0000 (01:34 +0100)
Make all the parsed IE pointers const, and propagate
the change to all the users etc.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
include/linux/ieee80211.h

index acef0deaff5a8c32f846b1dbd7b552c023fcae73..55d59bf259ed2e735ac247ec4d38d89a06e69709 100644 (file)
@@ -2133,7 +2133,7 @@ static inline unsigned long ieee80211_tu_to_usec(unsigned long tu)
  * @tim_len: length of the TIM IE
  * @aid: the AID to look for
  */
-static inline bool ieee80211_check_tim(struct ieee80211_tim_ie *tim,
+static inline bool ieee80211_check_tim(const struct ieee80211_tim_ie *tim,
                                       u8 tim_len, u16 aid)
 {
        u8 mask;