Commit 4d72abf7 authored by Anjan Chanda's avatar Anjan Chanda
Browse files

show if 4addr enabled in sta status

parent 9e161c14
Pipeline #30132 failed with stages
in 17 seconds
......@@ -3343,6 +3343,7 @@ static int wl_sta_status(struct ubus_context *ctx, struct ubus_object *obj,
enum wifi_bw bw;
int noise, rssi, snr;
enum wifi_band band = BAND_2;
bool addr4mode = false;
ifname = ubus_sta_to_ifname(obj);
wifi_radio_get_ifstatus(ifname, &ifs);
......@@ -3352,10 +3353,13 @@ static int wl_sta_status(struct ubus_context *ctx, struct ubus_object *obj,
if (ret)
return UBUS_STATUS_UNKNOWN_ERROR;
wifi_get_4addr(ifname, &addr4mode);
memset(&bb, 0, sizeof(bb));
blob_buf_init(&bb, 0);
blobmsg_add_string(&bb, "ifname", ifname);
blobmsg_add_string(&bb, "status", ifstatus_str(ifs));
blobmsg_add_u8(&bb, "4addr", addr4mode);
hwaddr_ntoa(sta.macaddr, sta_macstr);
blobmsg_add_string(&bb, "macaddr", sta_macstr);
sprintf(std_buf2 + strlen(std_buf2), "%s",
......
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