Home | History | Annotate | Download | only in ap

Lines Matching defs:hapd

27 	struct hostapd_data *hapd = eloop_data;
30 hapd->lci_req_token);
31 hapd->lci_req_active = 0;
35 static void hostapd_handle_lci_report(struct hostapd_data *hapd, u8 token,
38 if (!hapd->lci_req_active || hapd->lci_req_token != token) {
43 hapd->lci_req_active = 0;
44 eloop_cancel_timeout(hostapd_lci_rep_timeout_handler, hapd, NULL);
51 struct hostapd_data *hapd = eloop_data;
54 hapd->range_req_token);
55 hapd->range_req_active = 0;
59 static void hostapd_handle_range_report(struct hostapd_data *hapd, u8 token,
62 if (!hapd->range_req_active || hapd->range_req_token != token) {
68 hapd->range_req_active = 0;
69 eloop_cancel_timeout(hostapd_range_rep_timeout_handler, hapd, NULL);
74 static void hostapd_handle_beacon_report(struct hostapd_data *hapd,
90 wpa_msg(hapd->msg_ctx, MSG_INFO, BEACON_RESP_RX MACSTR " %u %02x %s",
95 static void hostapd_handle_radio_msmt_report(struct hostapd_data *hapd,
118 hostapd_handle_lci_report(hapd, token, ie + 2, ie[1]);
121 hostapd_handle_range_report(hapd, token, ie + 2, ie[1]);
124 hostapd_handle_beacon_report(hapd, mgmt->sa, token,
199 static void hostapd_send_nei_report_resp(struct hostapd_data *hapd,
221 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry,
272 hostapd_drv_send_action(hapd, hapd->iface->freq, 0, addr,
278 static void hostapd_handle_nei_report_req(struct hostapd_data *hapd,
290 if (!(hapd->conf->radio_measurements[0] &
305 ssid.ssid_len = hapd->conf->ssid.ssid_len;
306 os_memcpy(ssid.ssid, hapd->conf->ssid.ssid, ssid.ssid_len);
332 hostapd_send_nei_report_resp(hapd, mgmt->sa, token, &ssid, lci, civic,
337 void hostapd_handle_radio_measurement(struct hostapd_data *hapd,
354 hostapd_handle_radio_msmt_report(hapd, buf, len);
357 hostapd_handle_nei_report_req(hapd, buf, len);
367 int hostapd_send_lci_req(struct hostapd_data *hapd, const u8 *addr)
370 struct sta_info *sta = ap_get_sta(hapd, addr);
385 if (hapd->lci_req_active) {
388 hapd->lci_req_active = 0;
389 eloop_cancel_timeout(hostapd_lci_rep_timeout_handler, hapd,
398 hapd->lci_req_token++;
400 if (!hapd->lci_req_token)
401 hapd->lci_req_token++;
405 wpabuf_put_u8(buf, hapd->lci_req_token);
425 ret = hostapd_drv_send_action(hapd, hapd->iface->freq, 0, addr,
431 hapd->lci_req_active = 1;
434 hostapd_lci_rep_timeout_handler, hapd, NULL);
440 int hostapd_send_range_req(struct hostapd_data *hapd, const u8 *addr,
459 sta = ap_get_sta(hapd, addr);
472 if (hapd->range_req_active) {
475 hapd->range_req_active = 0;
476 eloop_cancel_timeout(hostapd_range_rep_timeout_handler, hapd,
485 hapd->range_req_token++;
486 if (!hapd->range_req_token) /* For wraparounds */
487 hapd->range_req_token++;
492 wpabuf_put_u8(buf, hapd->range_req_token); /* Dialog Token */
521 nr = hostapd_neighbor_get(hapd, responders + ETH_ALEN * i,
544 ret = hostapd_drv_send_action(hapd, hapd->iface->freq, 0, addr,
550 hapd->range_req_active = 1;
553 hostapd_range_rep_timeout_handler, hapd, NULL);
559 void hostapd_clean_rrm(struct hostapd_data *hapd)
561 hostpad_free_neighbor_db(hapd);
562 eloop_cancel_timeout(hostapd_lci_rep_timeout_handler, hapd, NULL);
563 hapd->lci_req_active = 0;
564 eloop_cancel_timeout(hostapd_range_rep_timeout_handler, hapd, NULL);
565 hapd->range_req_active = 0;
569 int hostapd_send_beacon_req(struct hostapd_data *hapd, const u8 *addr,
573 struct sta_info *sta = ap_get_sta(hapd, addr);
638 hapd->beacon_req_token++;
639 if (!hapd->beacon_req_token)
640 hapd->beacon_req_token++;
644 wpabuf_put_u8(buf, hapd->beacon_req_token);
655 ret = hostapd_drv_send_action(hapd, hapd->iface->freq, 0, addr,
661 return hapd->beacon_req_token;
665 void hostapd_rrm_beacon_req_tx_status(struct hostapd_data *hapd,
671 wpa_msg(hapd->msg_ctx, MSG_INFO, BEACON_REQ_TX_STATUS MACSTR