Fix: advertisinog stopped suddenly 94/232494/1
authorinjun.yang <injun.yang@samsung.com>
Wed, 6 May 2020 01:16:50 +0000 (10:16 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 6 May 2020 02:19:25 +0000 (11:19 +0900)
[Model] All
[BinType] AP
[Customer] OPEN

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

[Problem] Advertising stopped suddenly
[Cause & Measure] Comparison code is wrong.
[Checking Method] n/a

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

Change-Id: Ifac82672ed7c178e496e775160b5ec7704f481b5
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-service-adaptation/services/gatt/bt-service-gatt.c

index e97a990..18798a4 100644 (file)
@@ -340,7 +340,7 @@ void _bt_check_adv_app_termination(const char *name)
                app = &numapps[k];
 
                /* Search for a app which has same sender and stop adv is running */
-               if (!strncasecmp(app->sender, name, strlen(name)) && app->is_initialized == TRUE) {
+               if (strcasecmp(app->sender, name) == 0 && app->is_initialized == TRUE) {
                        BT_DBG("numapps[%d] Match found, name: %s", k, name);
 
                        /* TODO 2: Need to manage app info as list, not array.