Emit signal for MTU changed event 53/213853/1
authorinjun.yang <injun.yang@samsung.com>
Mon, 1 Jul 2019 08:02:56 +0000 (17:02 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 16 Sep 2019 01:34:11 +0000 (10:34 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] Internal
[Occurrence Version] N/A

[Problem] Unable to notice MTU changed event to application
[Cause & Measure] Send signal to detect MTU changed event on GATT server
[Checking Method] n/a

[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change

Change-Id: Ic9446ee005211a6805a7e62791c03b410d3ff0a1
Signed-off-by: injun.yang <injun.yang@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/device.c
src/shared/gatt-client.c
src/shared/gatt-server.c [changed mode: 0755->0644]

index aeb27ee..adc2710 100644 (file)
@@ -4454,6 +4454,8 @@ static const GDBusSignalTable device_signals[] = {
        { GDBUS_SIGNAL("IpspStateChanged",
                        GDBUS_ARGS({"connected","b"}, {"if_name","s"}))},
        { GDBUS_SIGNAL("OtcDisconnected", NULL)},
+       { GDBUS_SIGNAL("AttMtuChanged",
+                       GDBUS_ARGS({"mtu", "q"})) },
        { }
 };
 #endif
index 7524e3c..c824530 100644 (file)
@@ -1416,7 +1416,7 @@ static void exchange_mtu_cb(bool success, uint8_t att_ecode, void *user_data)
        }
 
        util_debug(client->debug_callback, client->debug_data,
-                                       "MTU exchange complete, with MTU: %u",
+                                       "att client MTU exchange complete, with MTU: %u",
                                        bt_att_get_mtu(client->att));
 
 discover:
old mode 100755 (executable)
new mode 100644 (file)
index 858c3a7..968b69e
@@ -1510,7 +1510,7 @@ static void exchange_mtu_cb(uint8_t opcode, const void *pdu,
 #endif
 
        util_debug(server->debug_callback, server->debug_data,
-                       "MTU exchange complete, with MTU: %u", final_mtu);
+                       "att server MTU exchange complete, with MTU: %u", final_mtu);
 }
 
 static bool gatt_server_register_att_handlers(struct bt_gatt_server *server)