Skip to content
Snippets Groups Projects
Commit ad737cf8 authored by Filip Matusiak's avatar Filip Matusiak
Browse files

Propagate and print beacon measurement start time

parent fc2b87a2
Branches
No related tags found
1 merge request!147Improve beacon metrics usage in steering
......@@ -76,7 +76,7 @@ struct bcn_meas_element {
uint8_t meas_report_type;
uint8_t op_class;
uint8_t channel;
uint8_t start_time[8];
uint8_t start_time[8]; /* measuring STA's TSF timer */
uint8_t duration[2];
uint8_t frame_info;
uint8_t rcpi;
......
......
......@@ -2115,6 +2115,7 @@ int handle_beacon_metrics_response(void *cntlr, struct cmdu_buff *cmdu)
b->requested = requested;
/* TODO: only most recent measurement marked as fresh */
b->stale = false;
memcpy(&b->meas_start_time, &elem->start_time, 8);
/* Move to the next measurement report */
ppos = ppos + elem->tag_length + 2;
......
......
......@@ -629,6 +629,7 @@ static int cntlr_status(struct ubus_context *ctx, struct ubus_object *obj,
blobmsg_add_string(&bb, "bssid", bssstr);
blobmsg_add_u32(&bb, "requested", bcn->requested);
blobmsg_add_u32(&bb, "stale", bcn->stale);
blobmsg_add_u64(&bb, "meas_start_time", bcn->meas_start_time);
blobmsg_close_table(&bb, ttttt);
}
......@@ -2877,6 +2878,7 @@ int cntlr_bcn_metrics_resp(struct ubus_context *ctx, struct ubus_object *obj,
blobmsg_add_string(&bb, "bssid", bssstr);
blobmsg_add_u32(&bb, "requested", bcn->requested);
blobmsg_add_u32(&bb, "stale", bcn->stale);
blobmsg_add_u64(&bb, "meas_start_time", bcn->meas_start_time);
blobmsg_close_table(&bb, ttttt);
}
......
......
......@@ -120,7 +120,7 @@ struct wifi_sta_meas_report {
uint8_t opclass;
uint8_t channel;
uint64_t meas_start_time;
uint64_t meas_start_time; /* measuring STA's TSF timer */
uint16_t meas_duration;
uint8_t rfi; /* Reported Frame Information */
uint8_t rcpi;
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment