From d379149a2607f5434fad10f908d29c248ab1c267 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Fri, 13 Nov 2020 11:55:25 +0900 Subject: [PATCH] Modify TDS transport type enums Change-Id: I6b30a330133b103c663af5f100d4f5e7c19b2526 Signed-off-by: Wootak Jung --- bt-service/services/tds/bt-service-tds.c | 4 ++-- include/bluetooth-api.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bt-service/services/tds/bt-service-tds.c b/bt-service/services/tds/bt-service-tds.c index 0de74ba..109f900 100644 --- a/bt-service/services/tds/bt-service-tds.c +++ b/bt-service/services/tds/bt-service-tds.c @@ -127,12 +127,12 @@ static unsigned char __bt_tds_get_organization_id(int transport) switch (transport) { case BLUETOOTH_TDS_TRANSPORT_BT: return 0x01; + case BLUETOOTH_TDS_TRANSPORT_CUSTOM: + return 0x04; case BLUETOOTH_TDS_TRANSPORT_WIFI_NAN: return 0x02; case BLUETOOTH_TDS_TRANSPORT_WIFI_SVC_ADV: return 0x03; - case BLUETOOTH_TDS_TRANSPORT_CUSTOM: - return 0x04; default: BT_ERR("Invaid transport"); return 0x00; diff --git a/include/bluetooth-api.h b/include/bluetooth-api.h index ee5aef1..aa5ae3b 100644 --- a/include/bluetooth-api.h +++ b/include/bluetooth-api.h @@ -519,9 +519,9 @@ typedef enum { */ typedef enum { BLUETOOTH_TDS_TRANSPORT_BT = 0x01, /* Transport type BR-EDR */ + BLUETOOTH_TDS_TRANSPORT_CUSTOM, /* Transport type custom */ BLUETOOTH_TDS_TRANSPORT_WIFI_NAN, /* Wi-Fi Alliance Neighbor Awareness Networking */ BLUETOOTH_TDS_TRANSPORT_WIFI_SVC_ADV, /* Wi-Fi Alliance Service Advertisement */ - BLUETOOTH_TDS_TRANSPORT_CUSTOM, /* Transport type custom */ /* ... */ BLUETOOTH_TDS_TRANSPORT_INVALID } bluetooth_tds_transport_t; -- 2.7.4