SSH host keys on dev.iopsys.eu have changed, see https://dev.iopsys.eu/help/instance_configuration#ssh-host-keys-fingerprints

Commit d8b41dce authored by Anjan Chanda's avatar Anjan Chanda

fix status in stations dump

parent 10de0f1a
Pipeline #982 passed with stages
in 1 minute and 59 seconds
......@@ -865,7 +865,6 @@ static int wl_dump_stations(struct blob_buf *bb, const char *ifname,
unsigned char *macaddr)
{
void *t, *r;
int num = 1;
int i, j;
struct wifi_sta sx;
enum wifi_bw bw;
......@@ -897,9 +896,7 @@ static int wl_dump_stations(struct blob_buf *bb, const char *ifname,
snr = rssi - noise;
t = blobmsg_open_table(bb, "");
snprintf(sta_macstr, 18, "%02x:%02x:%02x:%02x:%02x:%02x",
sx.macaddr[0], sx.macaddr[1], sx.macaddr[2],
sx.macaddr[3], sx.macaddr[4], sx.macaddr[5]);
hwaddr_ntoa(sx.macaddr, sta_macstr);
blobmsg_add_string(bb, "macaddr", sta_macstr);
blobmsg_add_string(bb, "wdev", ifname);
blobmsg_add_string(bb, "frequency",
......@@ -914,8 +911,10 @@ static int wl_dump_stations(struct blob_buf *bb, const char *ifname,
blobmsg_add_u32(bb, "max_rate", sx.maxrate);
s = blobmsg_open_table(bb, "status");
blobmsg_add_u8(bb, "wmm", true); // FIXME
blobmsg_add_u8(bb, "ps", false); // FIXME
blobmsg_add_u8(bb, "wmm",
wifi_status_isset(sx.sbitmap, WIFI_STATUS_WMM) ? true : false);
blobmsg_add_u8(bb, "ps",
wifi_status_isset(sx.sbitmap, WIFI_STATUS_PS) ? true : false);
blobmsg_close_table(bb, s);
wl_dump_capabilities(bb, &sx.caps, sx.cbitmap);
......@@ -937,7 +936,6 @@ static int wl_dump_stations(struct blob_buf *bb, const char *ifname,
blobmsg_add_u32(bb, "", sx.rssi[j]);
blobmsg_close_array(bb, r);
blobmsg_close_table(bb, t);
num++;
}
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment