summaryrefslogtreecommitdiff
path: root/openwrt/package/wificonf
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-10-05 13:35:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-10-05 13:35:36 +0000
commit10c2e18de5b9d7b0be0e9981a5357f8e61e75475 (patch)
tree663d2c03c2f5586df491f05f2b4b15ae8ebe8b9e /openwrt/package/wificonf
parent2605e4cf960d085804b1ef6108e70bcdcf64f95b (diff)
downloadmtk-20170518-10c2e18de5b9d7b0be0e9981a5357f8e61e75475.zip
mtk-20170518-10c2e18de5b9d7b0be0e9981a5357f8e61e75475.tar.gz
mtk-20170518-10c2e18de5b9d7b0be0e9981a5357f8e61e75475.tar.bz2
fix ap_isolate
SVN-Revision: 2052
Diffstat (limited to 'openwrt/package/wificonf')
-rw-r--r--openwrt/package/wificonf/wificonf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/wificonf/wificonf.c b/openwrt/package/wificonf/wificonf.c
index 491479f..b3acbff 100644
--- a/openwrt/package/wificonf/wificonf.c
+++ b/openwrt/package/wificonf/wificonf.c
@@ -126,11 +126,11 @@ int bcom_set_val(int skfd, char *ifname, char *var, void *val, int len)
return -1;
strcpy(buf, var);
+ memcpy(&buf[strlen(var) + 1], val, len);
if ((ret = bcom_ioctl(skfd, ifname, WLC_SET_VAR, buf, sizeof(buf))))
return ret;
- memcpy(val, buf, len);
return 0;
}