aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-27 14:54:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-27 14:54:53 +0000
commitdbba30940dc0685c42da78341dd000c9495ae4f5 (patch)
tree2176a932b44b8a714c2d1cad5dfedacb888a3020 /package/network
parent8af754d5d7a002d89c121af3277b9c1f00ea8f0c (diff)
downloadupstream-dbba30940dc0685c42da78341dd000c9495ae4f5.tar.gz
upstream-dbba30940dc0685c42da78341dd000c9495ae4f5.tar.bz2
upstream-dbba30940dc0685c42da78341dd000c9495ae4f5.zip
hostapd: fix a compiler warning in ap+station patch
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45062 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/patches/370-ap_sta_support.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/hostapd/patches/370-ap_sta_support.patch b/package/network/services/hostapd/patches/370-ap_sta_support.patch
index 6b0fbe6e57..92a5fddad7 100644
--- a/package/network/services/hostapd/patches/370-ap_sta_support.patch
+++ b/package/network/services/hostapd/patches/370-ap_sta_support.patch
@@ -53,7 +53,7 @@
+{
+ const char *cmd = "STOP_AP";
+ char buf[256];
-+ int len = sizeof(buf);
++ size_t len = sizeof(buf);
+
+ if (wpa_ctrl_request(wpa_s->hostapd, cmd, os_strlen(cmd), buf, &len, NULL) < 0) {
+ wpa_printf(MSG_ERROR, "\nFailed to stop hostapd AP interfaces\n");
@@ -66,7 +66,7 @@
+{
+ char *cmd = NULL;
+ char buf[256];
-+ int len = sizeof(buf);
++ size_t len = sizeof(buf);
+ enum hostapd_hw_mode hw_mode;
+ u8 channel;
+ int sec_chan = 0;