This isn't required nor used anymore, and it's been +8 years.
See
"
735a03be: iwinfo: adjust for changed wpa_supplicant control socket path"
on the main repository.
Signed-off-by: Andre Heider <a.heider@gmail.com>
remote.sun_family = AF_UNIX;
remote_length = sizeof(remote.sun_family) +
remote.sun_family = AF_UNIX;
remote_length = sizeof(remote.sun_family) +
- sprintf(remote.sun_path, "/var/run/wpa_supplicant-%s/%s",
- ifname, ifname);
+ sprintf(remote.sun_path, "/var/run/wpa_supplicant/%s", ifname);
/* Set client socket file permissions so that bind() creates the client
* socket with these permissions and there is no need to try to change
/* Set client socket file permissions so that bind() creates the client
* socket with these permissions and there is no need to try to change
if (connect(sock, (struct sockaddr *)&remote, remote_length))
{
if (connect(sock, (struct sockaddr *)&remote, remote_length))
{
- remote_length = sizeof(remote.sun_family) +
- sprintf(remote.sun_path, "/var/run/wpa_supplicant/%s", ifname);
-
- if (connect(sock, (struct sockaddr *)&remote, remote_length))
- {
- close(sock);
- return -1;
- }
+ close(sock);
+ return -1;
}
local->sun_family = AF_UNIX;
}
local->sun_family = AF_UNIX;