Fix : Multiple advertising feature was not working 06/183206/1
authorinjun.yang <injun.yang@samsung.com>
Tue, 3 Jul 2018 09:36:58 +0000 (18:36 +0900)
committerinjun.yang <injun.yang@samsung.com>
Tue, 3 Jul 2018 09:36:58 +0000 (18:36 +0900)
[Problem] Multiple advertising feature was not working
[Cause & Measure] Advertising slot was not initialized because BT
chipset supported slot count is over the defined maximum. Platform can
support the large number of slots if BT chipset can. So we don't need
to define maximum value of slots. This patch removes the maximum value
of slots.
[Checking Method] Turn on Bluetooth and check advertising slot's
initialization.

Change-Id: Ic0a3293b4f4e7f7b048b61074fb95b9898efba7e

bt-service/bt-service-adapter-le.c

index 56a2ff8..214312b 100644 (file)
@@ -41,7 +41,6 @@
 #define BT_ADV_FILTER_POLICY_DEFAULT   0x00
 #define BT_ADV_TYPE_DEFAULT    0x00
 #define BT_ADV_FILTER_POLICY_ALLOW_SCAN_CONN_WL_ONLY   0x03
-#define BT_ADV_MULTI_MAX   16
 
 typedef struct {
        int adv_inst_max;
@@ -200,7 +199,6 @@ gboolean _bt_update_le_feature_support(const char *item, const char *value)
 
                slot_num = atoi(value);
                retv_if(slot_num < 0, FALSE);
-               retv_if(slot_num > BT_ADV_MULTI_MAX, FALSE);
 
                if (slot_num != le_feature_info.adv_inst_max) {
                        __bt_free_le_adv_slot();