[PATCH 3/6] P2P: Add dissasoc_low_ack in p2p device properties.

Sane, Jayant jayant.sane
Thu Jun 9 09:40:53 PDT 2011


Activates the Keep Alive mechanism enabled in mac802.11
Allows to trigger Peer Disconnected signal if signal is lost on p2p peer.

Signed-off-by: Jean-Michel Bachot <jean-michelx.bachot at linux.intel.com>
Signed-off-by: Jayant Sane <jayant.sane at intel.com>
---
Note: This patch set applies on top of earlier submitted "DBus-add-support-for-P2P"
series of patches

 wpa_supplicant/dbus/dbus_new_handlers_p2p.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
index d6226a2..48d776e 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers_p2p.c
@@ -749,6 +749,11 @@ DBusMessage *wpas_dbus_getter_p2p_device_properties(DBusMessage * message,
 					 wpa_s->conf->p2p_group_idle))
 		goto err_no_mem;
 
+	/* Dissasociation low ack */
+	if (!wpa_dbus_dict_append_uint32(&dict_iter, "disassoc_low_ack",
+					 wpa_s->conf->disassoc_low_ack))
+		goto err_no_mem;
+
 	if (!wpa_dbus_dict_close_write(&variant_iter, &dict_iter) ||
 	    !dbus_message_iter_close_container(&iter, &variant_iter))
 		goto err_no_mem;
@@ -889,8 +894,11 @@ DBusMessage *wpas_dbus_setter_p2p_device_properties(DBusMessage * message,
 			wpa_s->conf->changed_parameters |=
 						      CFG_CHANGED_P2P_INTRA_BSS;
 		} else if ((os_strcmp(entry.key, "GroupIdle") == 0) &&
-			   (entry.type == DBUS_TYPE_UINT32))
+			   (entry.type == DBUS_TYPE_UINT32)) {
 			wpa_s->conf->p2p_group_idle = entry.uint32_value;
+		} else if ((os_strcmp(entry.key, "disassoc_low_ack") == 0) &&
+			   (entry.type == DBUS_TYPE_UINT32))
+			wpa_s->conf->disassoc_low_ack = entry.uint32_value;
 		else
 			goto error_clear;
 
-- 
1.7.1





More information about the Hostap mailing list