aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface_udp.c
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>2020-01-12 22:02:20 (GMT)
committerJouni Malinen <j@w1.fi>2020-02-23 13:40:58 (GMT)
commit12fb9698ab7c640fce3f73ab2c5bf5ad5f886ddf (patch)
tree9790b11ba7c9163fafb0cdb7c29a514d3b477e8c /wpa_supplicant/ctrl_iface_udp.c
parent7a934fe72a61163448022026feb058484d5f290c (diff)
downloadhostap-12fb9698ab7c640fce3f73ab2c5bf5ad5f886ddf.zip
hostap-12fb9698ab7c640fce3f73ab2c5bf5ad5f886ddf.tar.gz
hostap-12fb9698ab7c640fce3f73ab2c5bf5ad5f886ddf.tar.bz2
Use IFNAME= prefix for global UDP control interface events
There does not seem to be a good reason for using the different IFACE= prefix on the UDP control interface. This got added when the UDP interface in wpa_supplicant was extended in commit f0e5d3b5c6c7 ("wpa_supplicant: Share attach/detach/send UDP ctrl_iface functions") and that was then extended to hostapd in commit e9208056856c ("hostapd: Extend global control interface notifications"). Replace the IFACE= prefix in UDP case with IFNAME= to be consistent with the UNIX domain socket based control interface. This fixes a problem when at least one test case fail (hapd_ctrl_sta) when remote/udp used. This also fixes test_connectivity(). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface_udp.c')
-rw-r--r--wpa_supplicant/ctrl_iface_udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface_udp.c b/wpa_supplicant/ctrl_iface_udp.c
index 8a6057a..1e92b97 100644
--- a/wpa_supplicant/ctrl_iface_udp.c
+++ b/wpa_supplicant/ctrl_iface_udp.c
@@ -516,7 +516,7 @@ static void wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s,
return;
if (ifname)
- os_snprintf(levelstr, sizeof(levelstr), "IFACE=%s <%d>",
+ os_snprintf(levelstr, sizeof(levelstr), "IFNAME=%s <%d>",
ifname, level);
else
os_snprintf(levelstr, sizeof(levelstr), "<%d>", level);