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 */