Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 40747
#
-# 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.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
-PKG_RELEASE:=47
+PKG_RELEASE:=48
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_CONFIG_DEPENDS := \
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) +