fix ap_isolate
SVN-Revision: 2052
This commit is contained in:
parent
2605e4cf96
commit
10c2e18de5
@ -126,11 +126,11 @@ int bcom_set_val(int skfd, char *ifname, char *var, void *val, int len)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
strcpy(buf, var);
|
strcpy(buf, var);
|
||||||
|
memcpy(&buf[strlen(var) + 1], val, len);
|
||||||
|
|
||||||
if ((ret = bcom_ioctl(skfd, ifname, WLC_SET_VAR, buf, sizeof(buf))))
|
if ((ret = bcom_ioctl(skfd, ifname, WLC_SET_VAR, buf, sizeof(buf))))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
memcpy(val, buf, len);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user