mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-14 17:51:51 +00:00
ubus: fix rrm string callback function
The rrm_nr_get_own call returns an array. We need the 3rd value. We do not need to call blobmsg_data before blobmsg_get_string to extract the value. Additionally this causes strange behavior where an offset in the string is accessed.
This commit is contained in:
parent
c2c0009d61
commit
b639145ce9
1 changed files with 1 additions and 1 deletions
|
@ -741,7 +741,7 @@ static void ubus_get_rrm_cb(struct ubus_request *req, int type, struct blob_attr
|
||||||
{
|
{
|
||||||
if(i==2)
|
if(i==2)
|
||||||
{
|
{
|
||||||
char* neighborreport = blobmsg_get_string(blobmsg_data(attr));
|
char* neighborreport = blobmsg_get_string(attr);
|
||||||
strcpy(entry->neighbor_report,neighborreport);
|
strcpy(entry->neighbor_report,neighborreport);
|
||||||
printf("Copied Neighborreport: %s,\n", entry->neighbor_report);
|
printf("Copied Neighborreport: %s,\n", entry->neighbor_report);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue