Mark IE input to hostapd_eid_wmm_valid() const
authorJouni Malinen <j@w1.fi>
Sun, 29 Nov 2009 20:10:38 +0000 (22:10 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Nov 2009 20:10:38 +0000 (22:10 +0200)
hostapd/wme.c
hostapd/wme.h

index 87e2d40..660e141 100644 (file)
@@ -92,7 +92,7 @@ u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid)
 /* This function is called when a station sends an association request with
  * WMM info element. The function returns zero on success or non-zero on any
  * error in WMM element. eid does not include Element ID and Length octets. */
-int hostapd_eid_wmm_valid(struct hostapd_data *hapd, u8 *eid, size_t len)
+int hostapd_eid_wmm_valid(struct hostapd_data *hapd, const u8 *eid, size_t len)
 {
        struct wmm_information_element *wmm;
 
index 63847b2..0f242fd 100644 (file)
@@ -19,7 +19,8 @@
 struct ieee80211_mgmt;
 
 u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid);
-int hostapd_eid_wmm_valid(struct hostapd_data *hapd, u8 *eid, size_t len);
+int hostapd_eid_wmm_valid(struct hostapd_data *hapd, const u8 *eid,
+                         size_t len);
 #ifdef NEED_AP_MLME
 int hostapd_wmm_sta_config(struct hostapd_data *hapd, struct sta_info *sta);
 #else /* NEED_AP_MLME */