[PATCH] disconnected notification to dbus on intreface up

Avichal Agarwal avichal.a at samsung.com
Mon Jun 27 05:17:36 PDT 2016


From d05b55b745eb8c8a01c798f9e649983b9f6da0a1 Mon Sep 17 00:00:00 2001
From: Avichal Agarwal <avichal.a at samsung.com>
Date: Mon, 27 Jun 2016 17:16:31 +0530
Subject: [PATCH] disconnected notification to dbus on intreface up

This patch will send  (disconnected) state changed signal to dbus on
disable and enable the  interface.Before this patch the interface state
received by dbus was inactive , which should be disconnected.
commands:ifconfig (interface ) down/up

Signed-off-by: Avichal Agarwal <avichal.a at samsung.com>
---
 wpa_supplicant/dbus/dbus_new.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c
index 0263b2c..e3a9fd8 100644
--- a/wpa_supplicant/dbus/dbus_new.c
+++ b/wpa_supplicant/dbus/dbus_new.c
@@ -1982,6 +1982,7 @@ void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
 		break;
 	case WPAS_DBUS_PROP_STATE:
 		prop = "State";
+		flush = TRUE;
 		break;
 	case WPAS_DBUS_PROP_CURRENT_BSS:
 		prop = "CurrentBSS";
-- 
1.7.9.5



More information about the Hostap mailing list