1e5b75505Sopenharmony_ci/* 2e5b75505Sopenharmony_ci * hostapd / Radio Measurement (RRM) 3e5b75505Sopenharmony_ci * Copyright(c) 2013 - 2016 Intel Mobile Communications GmbH. 4e5b75505Sopenharmony_ci * Copyright(c) 2011 - 2016 Intel Corporation. All rights reserved. 5e5b75505Sopenharmony_ci * 6e5b75505Sopenharmony_ci * This software may be distributed under the terms of the BSD license. 7e5b75505Sopenharmony_ci * See README for more details. 8e5b75505Sopenharmony_ci */ 9e5b75505Sopenharmony_ci 10e5b75505Sopenharmony_ci#ifndef RRM_H 11e5b75505Sopenharmony_ci#define RRM_H 12e5b75505Sopenharmony_ci 13e5b75505Sopenharmony_ci/* 14e5b75505Sopenharmony_ci * Max measure request length is 255, -6 of the body we have 249 for the 15e5b75505Sopenharmony_ci * neighbor report elements. Each neighbor report element is at least 2 + 13 16e5b75505Sopenharmony_ci * bytes, so we can't have more than 16 responders in the request. 17e5b75505Sopenharmony_ci */ 18e5b75505Sopenharmony_ci#define RRM_RANGE_REQ_MAX_RESPONDERS 16 19e5b75505Sopenharmony_ci 20e5b75505Sopenharmony_civoid hostapd_handle_radio_measurement(struct hostapd_data *hapd, 21e5b75505Sopenharmony_ci const u8 *buf, size_t len); 22e5b75505Sopenharmony_ciint hostapd_send_lci_req(struct hostapd_data *hapd, const u8 *addr); 23e5b75505Sopenharmony_ciint hostapd_send_range_req(struct hostapd_data *hapd, const u8 *addr, 24e5b75505Sopenharmony_ci u16 random_interval, u8 min_ap, 25e5b75505Sopenharmony_ci const u8 *responders, unsigned int n_responders); 26e5b75505Sopenharmony_civoid hostapd_clean_rrm(struct hostapd_data *hapd); 27e5b75505Sopenharmony_ciint hostapd_send_beacon_req(struct hostapd_data *hapd, const u8 *addr, 28e5b75505Sopenharmony_ci u8 req_mode, const struct wpabuf *req); 29e5b75505Sopenharmony_civoid hostapd_rrm_beacon_req_tx_status(struct hostapd_data *hapd, 30e5b75505Sopenharmony_ci const struct ieee80211_mgmt *mgmt, 31e5b75505Sopenharmony_ci size_t len, int ok); 32e5b75505Sopenharmony_ci 33e5b75505Sopenharmony_ci#endif /* RRM_H */ 34