diff options
author | Jouni Malinen <j@w1.fi> | 2013-05-18 11:19:24 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2013-05-18 11:19:24 (GMT) |
commit | 47bfe49c31dbe58e03b4638c09360e68a10155f0 (patch) | |
tree | 9d787f0c5ea0e99318612c9362069c44540012f4 /wpa_supplicant/ctrl_iface_unix.c | |
parent | 214e428b422b1cecb62664942a978725eff7fd92 (diff) | |
download | hostap-47bfe49c31dbe58e03b4638c09360e68a10155f0.zip hostap-47bfe49c31dbe58e03b4638c09360e68a10155f0.tar.gz hostap-47bfe49c31dbe58e03b4638c09360e68a10155f0.tar.bz2 |
Add wpa_msg_global() for global events
This function can be used instead of wpa_msg() and wpa_msg_ctrl() to
indicate that an event is not specific to a network interface.
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ctrl_iface_unix.c')
-rw-r--r-- | wpa_supplicant/ctrl_iface_unix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c index 9a6e049..aa71aff 100644 --- a/wpa_supplicant/ctrl_iface_unix.c +++ b/wpa_supplicant/ctrl_iface_unix.c @@ -250,7 +250,7 @@ static char * wpa_supplicant_ctrl_iface_path(struct wpa_supplicant *wpa_s) } -static void wpa_supplicant_ctrl_iface_msg_cb(void *ctx, int level, +static void wpa_supplicant_ctrl_iface_msg_cb(void *ctx, int level, int global, const char *txt, size_t len) { struct wpa_supplicant *wpa_s = ctx; @@ -261,7 +261,8 @@ static void wpa_supplicant_ctrl_iface_msg_cb(void *ctx, int level, if (wpa_s->global->ctrl_iface) { struct ctrl_iface_global_priv *priv = wpa_s->global->ctrl_iface; if (!dl_list_empty(&priv->ctrl_dst)) { - wpa_supplicant_ctrl_iface_send(wpa_s->ifname, + wpa_supplicant_ctrl_iface_send(global ? NULL : + wpa_s->ifname, priv->sock, &priv->ctrl_dst, level, txt, len); |