Lines Matching defs:rrm
23 struct rrm_data *rrm = data;
25 if (!rrm->notify_neighbor_rep) {
27 "RRM: Unexpected neighbor report timeout");
31 wpa_printf(MSG_DEBUG, "RRM: Notifying neighbor report - NONE");
32 rrm->notify_neighbor_rep(rrm->neighbor_rep_cb_ctx, NULL);
34 rrm->notify_neighbor_rep = NULL;
35 rrm->neighbor_rep_cb_ctx = NULL;
40 * wpas_rrm_reset - Clear and reset all RRM data in wpa_supplicant
45 wpa_s->rrm.rrm_used = 0;
47 eloop_cancel_timeout(wpas_rrm_neighbor_rep_timeout_handler, &wpa_s->rrm,
49 if (wpa_s->rrm.notify_neighbor_rep)
50 wpas_rrm_neighbor_rep_timeout_handler(&wpa_s->rrm, NULL);
51 wpa_s->rrm.next_neighbor_rep_token = 1;
67 wpa_hexdump(MSG_DEBUG, "RRM: New Neighbor Report", report, report_len);
71 if (report[0] != wpa_s->rrm.next_neighbor_rep_token - 1) {
73 "RRM: Discarding neighbor report with token %d (expected %d)",
74 report[0], wpa_s->rrm.next_neighbor_rep_token - 1);
78 eloop_cancel_timeout(wpas_rrm_neighbor_rep_timeout_handler, &wpa_s->rrm,
81 if (!wpa_s->rrm.notify_neighbor_rep) {
82 wpa_msg(wpa_s, MSG_INFO, "RRM: Unexpected neighbor report");
89 wpas_rrm_neighbor_rep_timeout_handler(&wpa_s->rrm, NULL);
93 wpa_dbg(wpa_s, MSG_DEBUG, "RRM: Notifying neighbor report (token = %d)",
95 wpa_s->rrm.notify_neighbor_rep(wpa_s->rrm.neighbor_rep_cb_ctx,
97 wpa_s->rrm.notify_neighbor_rep = NULL;
98 wpa_s->rrm.neighbor_rep_cb_ctx = NULL;
151 wpa_dbg(wpa_s, MSG_DEBUG, "RRM: No connection, no RRM.");
155 if (!wpa_s->rrm.rrm_used) {
156 wpa_dbg(wpa_s, MSG_DEBUG, "RRM: No RRM in current connection.");
165 "RRM: No network support for Neighbor Report.");
170 if (wpa_s->rrm.notify_neighbor_rep) {
172 "RRM: Currently handling previous Neighbor Report.");
182 "RRM: Failed to allocate Neighbor Report Request");
187 "RRM: Neighbor report request (for %s), token=%d",
189 wpa_s->rrm.next_neighbor_rep_token);
193 wpabuf_put_u8(buf, wpa_s->rrm.next_neighbor_rep_token);
266 wpa_s->rrm.next_neighbor_rep_token++;
272 "RRM: Failed to send Neighbor Report Request");
277 wpa_s->rrm.neighbor_rep_cb_ctx = cb_ctx;
278 wpa_s->rrm.notify_neighbor_rep = cb;
281 &wpa_s->rrm, NULL);
365 if (!is_multicast_ether_addr(wpa_s->rrm.dst_addr) &&
369 wpa_printf(MSG_DEBUG, "RRM: Failed to add report element");
387 wpabuf_put_u8(report, wpa_s->rrm.token);
395 "RRM: Radio measurement report failed: Sending Action frame failed");
419 "RRM: non-measurement report element in measurement report frame");
1003 wpa_hexdump_buf(MSG_DEBUG, "RRM: Radio Measurement report", *buf);
1009 if (!is_multicast_ether_addr(wpa_s->rrm.dst_addr)) {
1015 wpa_printf(MSG_ERROR, "RRM: Memory allocation failed");
1041 "RRM: Cannot set scan duration due to missing driver support");
1291 if (!is_multicast_ether_addr(wpa_s->rrm.dst_addr) &&
1294 wpa_printf(MSG_DEBUG, "RRM: Failed to add report element");
1316 wpa_printf(MSG_DEBUG, "RRM: Enable bit not supported, ignore");
1324 "RRM: Parallel measurements are not supported, reject");
1339 "RRM: Driver does not support dwell time configuration - reject beacon report with mandatory duration");
1348 "RRM: Unsupported radio measurement type %u",
1354 if (!is_multicast_ether_addr(wpa_s->rrm.dst_addr) &&
1358 wpa_printf(MSG_DEBUG, "RRM: Failed to add report element");
1377 wpa_printf(MSG_DEBUG, "RRM: Truncated element");
1384 "RRM: Expected Measurement Request element, but EID is %u",
1390 wpa_printf(MSG_DEBUG, "RRM: Element length too short");
1395 wpa_printf(MSG_DEBUG, "RRM: Element length too long");
1423 "RRM: Ignoring radio measurement request: Not associated");
1427 if (!wpa_s->rrm.rrm_used) {
1429 "RRM: Ignoring radio measurement request: Not RRM network");
1435 "RRM: Ignoring too short radio measurement request");
1439 wpa_s->rrm.token = *frame;
1440 os_memcpy(wpa_s->rrm.dst_addr, dst, ETH_ALEN);
1464 "RRM: Ignoring link measurement request. Not associated");
1468 if (!wpa_s->rrm.rrm_used) {
1470 "RRM: Ignoring link measurement request. Not RRM network");
1476 "RRM: Measurement report failed. TX power insertion not supported");
1483 "RRM: Link measurement report failed. Request too short");
1502 "RRM: Link measurement report failed. Buffer allocation failed");
1509 wpa_hexdump_buf(MSG_DEBUG, "RRM: Link measurement report", buf);
1515 "RRM: Link measurement report failed. Send action failed");
1534 wpa_printf(MSG_DEBUG, "RRM: MLD: no match for TSF BSSID=" MACSTR,
1558 wpa_printf(MSG_DEBUG, "RRM: TSF BSSID: " MACSTR " current BSS: " MACSTR,
1564 "RRM: Ignore scan results due to mismatching TSF BSSID");
1580 "RRM: Ignore scan result for " MACSTR
1609 "RRM: Ignore scan result for " MACSTR
1630 wpa_hexdump_buf(MSG_DEBUG, "RRM: Radio Measurement report", buf);