aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface_unix.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-05-18 16:18:31 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-18 16:18:31 (GMT)
commitc4bf83a7231f2f41d21530d8c73a1033ae728ba5 (patch)
tree5f907208dd701e0ae5ca804383a977126e015792 /wpa_supplicant/ctrl_iface_unix.c
parent7793c959e6ff88d57d8577b83ef8001826658f9f (diff)
downloadhostap-c4bf83a7231f2f41d21530d8c73a1033ae728ba5.zip
hostap-c4bf83a7231f2f41d21530d8c73a1033ae728ba5.tar.gz
hostap-c4bf83a7231f2f41d21530d8c73a1033ae728ba5.tar.bz2
P2P: No duplicate AP-STA-CONNECTED/DISCONNECTED as global event
These events are sent as a special case to both the group interface and "parent interface" (i.e., the interface that was used for managing P2P negotiation). The latter is not really correct event, so get rid of it with the new global control interface design where there is no need to support legacy upper layer implementations. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ctrl_iface_unix.c')
-rw-r--r--wpa_supplicant/ctrl_iface_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c
index aa71aff..1b4b9b0 100644
--- a/wpa_supplicant/ctrl_iface_unix.c
+++ b/wpa_supplicant/ctrl_iface_unix.c
@@ -258,7 +258,7 @@ static void wpa_supplicant_ctrl_iface_msg_cb(void *ctx, int level, int global,
if (wpa_s == NULL)
return;
- if (wpa_s->global->ctrl_iface) {
+ if (global != 2 && 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(global ? NULL :