nl80211: Delete Beacon information on deinit in wpa_supplicant AP mode
[wpasupplicant] / wpa_supplicant / ctrl_iface_dbus.c
index b772247..c88fdef 100644 (file)
@@ -18,6 +18,7 @@
 #include "eloop.h"
 #include "config.h"
 #include "wpa_supplicant_i.h"
+#include "drivers/driver.h"
 #include "wps/wps.h"
 #include "ctrl_iface_dbus.h"
 #include "ctrl_iface_dbus_handlers.h"
@@ -548,7 +549,8 @@ static DBusHandlerResult wpas_iface_message_handler(DBusConnection *connection,
 
        /* If the message was handled, send back the reply */
        if (reply) {
-               dbus_connection_send(connection, reply, NULL);
+               if (!dbus_message_get_no_reply(message))
+                       dbus_connection_send(connection, reply, NULL);
                dbus_message_unref(reply);
        }
 
@@ -607,7 +609,8 @@ static DBusHandlerResult wpas_message_handler(DBusConnection *connection,
 
        /* If the message was handled, send back the reply */
        if (reply) {
-               dbus_connection_send(connection, reply, NULL);
+               if (!dbus_message_get_no_reply(message))
+                       dbus_connection_send(connection, reply, NULL);
                dbus_message_unref(reply);
        }