1324714Scy/*
2324714Scy * hostapd / Radio Measurement (RRM)
3324714Scy * Copyright(c) 2013 - 2016 Intel Mobile Communications GmbH.
4324714Scy * Copyright(c) 2011 - 2016 Intel Corporation. All rights reserved.
5324714Scy *
6324714Scy * This software may be distributed under the terms of the BSD license.
7324714Scy * See README for more details.
8324714Scy */
9324714Scy
10324714Scy#ifndef RRM_H
11324714Scy#define RRM_H
12324714Scy
13324714Scy/*
14324714Scy * Max measure request length is 255, -6 of the body we have 249 for the
15324714Scy * neighbor report elements. Each neighbor report element is at least 2 + 13
16324714Scy * bytes, so we can't have more than 16 responders in the request.
17324714Scy */
18324714Scy#define RRM_RANGE_REQ_MAX_RESPONDERS 16
19324714Scy
20324714Scyvoid hostapd_handle_radio_measurement(struct hostapd_data *hapd,
21324714Scy				      const u8 *buf, size_t len);
22324714Scyint hostapd_send_lci_req(struct hostapd_data *hapd, const u8 *addr);
23324714Scyint hostapd_send_range_req(struct hostapd_data *hapd, const u8 *addr,
24324714Scy			   u16 random_interval, u8 min_ap,
25324714Scy			   const u8 *responders, unsigned int n_responders);
26324714Scyvoid hostapd_clean_rrm(struct hostapd_data *hapd);
27346981Scyint hostapd_send_beacon_req(struct hostapd_data *hapd, const u8 *addr,
28346981Scy			    u8 req_mode, const struct wpabuf *req);
29346981Scyvoid hostapd_rrm_beacon_req_tx_status(struct hostapd_data *hapd,
30346981Scy				      const struct ieee80211_mgmt *mgmt,
31346981Scy				      size_t len, int ok);
32324714Scy
33324714Scy#endif /* RRM_H */
34