diff --git a/src/core/agent.c b/src/core/agent.c index 3867264fd62bfd72e50d666bed150375ed006e53..5e039f73fadf2899337e501d5e070ab3236fd19a 100644 --- a/src/core/agent.c +++ b/src/core/agent.c @@ -2719,13 +2719,11 @@ static void parse_radio(struct ubus_request *req, int type, re->current_txpower_percent = (uint8_t) blobmsg_get_u32(tb[9]); if (tb[10]) { - // TODO: uncomment when radio mac is fixed in wifimngr - //char macaddr[18] = {0}; + char macaddr[18] = {0}; - re->macaddr[5] = atoi(re->name+2); - //strncpy(macaddr, blobmsg_data(tb[10]), 17); - //if (!hwaddr_aton(macaddr, re->macaddr)) - // return; + strncpy(macaddr, blobmsg_data(tb[10]), 17); + if (!hwaddr_aton(macaddr, re->macaddr)) + return; } }