Skip to content
Snippets Groups Projects

steering: adapt to changes in 'request_btm' API

Merged Filip Matusiak requested to merge fm-devel into devel
1 file
+ 8
6
Compare changes
  • Side-by-side
  • Inline
+ 8
6
@@ -915,7 +915,6 @@ int wifi_ubus_request_transition(struct ubus_context *ubus_ctx, const char *ifna
@@ -915,7 +915,6 @@ int wifi_ubus_request_transition(struct ubus_context *ubus_ctx, const char *ifna
struct blob_buf bb = {};
struct blob_buf bb = {};
char name[256] = {};
char name[256] = {};
char macstr[18] = {};
char macstr[18] = {};
uint8_t *bssid;
uint32_t id;
uint32_t id;
uint8_t mode = 0;
uint8_t mode = 0;
int ret;
int ret;
@@ -931,12 +930,15 @@ int wifi_ubus_request_transition(struct ubus_context *ubus_ctx, const char *ifna
@@ -931,12 +930,15 @@ int wifi_ubus_request_transition(struct ubus_context *ubus_ctx, const char *ifna
goto out;
goto out;
blob_buf_init(&bb, 0);
blob_buf_init(&bb, 0);
blobmsg_add_string(&bb, "client", macstr);
blobmsg_add_string(&bb, "sta", macstr);
t = blobmsg_open_array(&bb, "bssid");
t = blobmsg_open_array(&bb, "target_ap");
for (i = 0; i < bss_num; i++) {
for (i = 0; i < bss_num; i++) {
bssid = &bss[i * 6];
void *tt;
snprintf(macstr, sizeof(macstr), MACFMT, MAC2STR(bssid));
blobmsg_add_string(&bb, "", macstr);
tt = blobmsg_open_table(&bb, "");
 
snprintf(macstr, sizeof(macstr), MACFMT, MAC2STR(&bss[i * 6]));
 
blobmsg_add_string(&bb, "bssid", macstr);
 
blobmsg_close_table(&bb, tt);
}
}
blobmsg_close_array(&bb, t);
blobmsg_close_array(&bb, t);
Loading