From: Jouni Malinen Date: Sun, 29 Nov 2009 20:10:38 +0000 (+0200) Subject: Mark IE input to hostapd_eid_wmm_valid() const X-Git-Tag: hostap_0_7_1~438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9294bfefc749c617463720153417135f49e82441;p=thirdparty%2Fhostap.git Mark IE input to hostapd_eid_wmm_valid() const --- diff --git a/hostapd/wme.c b/hostapd/wme.c index 87e2d406d..660e141ac 100644 --- a/hostapd/wme.c +++ b/hostapd/wme.c @@ -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; diff --git a/hostapd/wme.h b/hostapd/wme.h index 63847b2dd..0f242fd77 100644 --- a/hostapd/wme.h +++ b/hostapd/wme.h @@ -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 */