aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-05-10 15:31:49 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-05-10 15:31:49 +0000
commitb87992375ccabb223e3196ef5c08ed9d71f61f9a (patch)
tree5fd6aec1a3920111344ab97073e2db9c4cff143c /package/network/utils
parent7daa8bafa6888cc5d63fce12c51d9f720b7d04a2 (diff)
downloadupstream-b87992375ccabb223e3196ef5c08ed9d71f61f9a.tar.gz
upstream-b87992375ccabb223e3196ef5c08ed9d71f61f9a.tar.bz2
upstream-b87992375ccabb223e3196ef5c08ed9d71f61f9a.zip
iwinfo: adjust for changed wpa_supplicant control socket path
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40747 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils')
-rw-r--r--package/network/utils/iwinfo/Makefile4
-rw-r--r--package/network/utils/iwinfo/src/iwinfo_nl80211.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/package/network/utils/iwinfo/Makefile b/package/network/utils/iwinfo/Makefile
index 9bebb7a619..699682b95e 100644
--- a/package/network/utils/iwinfo/Makefile
+++ b/package/network/utils/iwinfo/Makefile
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2010-2013 Jo-Philipp Wich <xm@subsignal.org>
+# Copyright (C) 2010-2014 Jo-Philipp Wich <xm@subsignal.org>
#
# This is free software, licensed under the GPL 2 license.
#
@@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
-PKG_RELEASE:=47
+PKG_RELEASE:=48
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_CONFIG_DEPENDS := \
diff --git a/package/network/utils/iwinfo/src/iwinfo_nl80211.c b/package/network/utils/iwinfo/src/iwinfo_nl80211.c
index a258d2f2b2..854be6bbf8 100644
--- a/package/network/utils/iwinfo/src/iwinfo_nl80211.c
+++ b/package/network/utils/iwinfo/src/iwinfo_nl80211.c
@@ -526,7 +526,13 @@ static char * nl80211_wpactl_info(const char *ifname, const char *cmd,
goto out;
if (connect(sock, (struct sockaddr *) &remote, remote_length))
- goto out;
+ {
+ remote_length = sizeof(remote.sun_family) + sprintf(remote.sun_path,
+ "/var/run/wpa_supplicant/%s", ifname);
+
+ if (connect(sock, (struct sockaddr *) &remote, remote_length))
+ goto out;
+ }
local.sun_family = AF_UNIX;
local_length = sizeof(local.sun_family) +