Skip to content
Snippets Groups Projects
Commit 6ff3bb4b authored by Anjan Chanda's avatar Anjan Chanda
Browse files

ignore STA metrics for bss different than currently set

parent 74e914f9
No related branches found
No related tags found
No related merge requests found
Pipeline #211305 passed
......@@ -2567,11 +2567,13 @@ int handle_sta_link_metrics_response(void *cntlr, struct cmdu_buff *cmdu,
if (memcmp(s->bssid, b->bssid, 6)) {
cntlr_dbg(LOG_STA,
"%s: STA " MACFMT " has new bssid in Assoc-Link-Metrics-Resp\n",
"%s: Ignore STA " MACFMT " link-metrics with different bssid\n",
__func__, MAC2STR(s->macaddr));
offset += sizeof(*b);
continue;
}
memcpy(s->bssid, b->bssid, 6);
s->de_sta->dl_est_thput = BUF_GET_BE32(b->dl_thput);
s->de_sta->ul_est_thput = BUF_GET_BE32(b->ul_thput);
s->de_sta->time_delta = BUF_GET_BE32(b->time_delta);
......@@ -2618,11 +2620,13 @@ int handle_sta_link_metrics_response(void *cntlr, struct cmdu_buff *cmdu,
if (memcmp(s->bssid, b->bssid, 6)) {
cntlr_dbg(LOG_STA,
"%s: STA " MACFMT " has new bssid in Assoc-Link-Metrics-Resp\n",
"%s: Ignore STA " MACFMT " link-metrics with different bssid\n",
__func__, MAC2STR(s->macaddr));
offset += sizeof(*b);
continue;
}
memcpy(s->bssid, b->bssid, 6);
s->de_sta->dl_rate = BUF_GET_BE32(b->dl_rate);
s->de_sta->ul_rate = BUF_GET_BE32(b->ul_rate);
s->de_sta->dl_utilization = BUF_GET_BE32(b->rx_util);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment