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

Notify client steer report event on UBUS

parent d849f9cf
No related branches found
No related tags found
1 merge request!219Add new event notifications for steering
Pipeline #88535 passed
......@@ -2540,6 +2540,7 @@ int handle_sta_steer_btm_report(void *cntlr, struct cmdu_buff *cmdu,
struct tlv *tv[1][16] = {0};
struct sta *s;
struct wifi_apsta_steer_history *attempt;
char ev_data[512] = {0};
int ret = 0;
trace("%s: --->\n", __func__);
......@@ -2561,6 +2562,15 @@ int handle_sta_steer_btm_report(void *cntlr, struct cmdu_buff *cmdu,
resp = (struct tlv_steer_btm_report *) tv[0][0]->data;
snprintf(ev_data, sizeof(ev_data),
"{\"bssid\":\""MACFMT"\""
",\"sta_mac\":\""MACFMT"\""
",\"target_bssid\":\""MACFMT"\""
",\"status\":%u}",
MAC2STR(resp->bssid), MAC2STR(resp->sta_macaddr),
MAC2STR(resp->target_bssid[0]), resp->status);
cntlr_notify_event(c, "client_steer_report", ev_data);
s = cntlr_find_sta(c, resp->sta_macaddr);
if (!s) {
dbg("|%s:%d| steer btm report: sta "MACFMT" not found!\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment