Changeset 40747


Ignore:
Timestamp:
2014-05-10T17:31:49+02:00 (4 years ago)
Author:
jow
Message:

iwinfo: adjust for changed wpa_supplicant control socket path

Signed-off-by: Jo-Philipp Wich <jow@…>

Location:
trunk/package/network/utils/iwinfo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/utils/iwinfo/Makefile

    r38448 r40747  
    11# 
    2 # Copyright (C) 2010-2013 Jo-Philipp Wich <xm@subsignal.org> 
     2# Copyright (C) 2010-2014 Jo-Philipp Wich <xm@subsignal.org> 
    33# 
    44# This is free software, licensed under the GPL 2 license. 
     
    88 
    99PKG_NAME:=libiwinfo 
    10 PKG_RELEASE:=47 
     10PKG_RELEASE:=48 
    1111 
    1212PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • trunk/package/network/utils/iwinfo/src/iwinfo_nl80211.c

    r37983 r40747  
    527527 
    528528        if (connect(sock, (struct sockaddr *) &remote, remote_length)) 
    529                 goto out; 
     529        { 
     530                remote_length = sizeof(remote.sun_family) + sprintf(remote.sun_path, 
     531                        "/var/run/wpa_supplicant/%s", ifname); 
     532 
     533                if (connect(sock, (struct sockaddr *) &remote, remote_length)) 
     534                        goto out; 
     535        } 
    530536 
    531537        local.sun_family = AF_UNIX; 
Note: See TracChangeset for help on using the changeset viewer.