adapter: Disable platform scan filter feature 93/275493/1
authorWootak Jung <wootak.jung@samsung.com>
Thu, 26 May 2022 01:04:01 +0000 (10:04 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 26 May 2022 01:04:33 +0000 (10:04 +0900)
Change-Id: I27798e150d25068c59706f18eeded947d75ad00b

src/adapter.c
src/adapter.h

index f3c2dc4..57b32b6 100644 (file)
@@ -5092,7 +5092,9 @@ static DBusMessage *adapter_le_set_scan_params(DBusConnection *conn,
        cp.type = type;
        cp.interval = interval;
        cp.window = window;
+#ifdef TIZEN_FEATURE_PLATFROM_SCAN_FILTER
        adapter->scan_type = type;
+#endif
 
        if (mgmt_send(adapter->mgmt, MGMT_OP_LE_SET_SCAN_PARAMS,
                                        adapter->dev_id, sizeof(cp), &cp,
index a21bdc7..1bbe4c8 100644 (file)
 #define BT_DISC_TYPE_LE_ONLY    2
 #define BT_DISC_TYPE_LE_BREDR   3
 
-#define TIZEN_FEATURE_PLATFROM_SCAN_FILTER
+#define ADV_TYPE_IND   0x00
+#define ADV_TYPE_DIRECT_IND    0x01
+#define ADV_TYPE_SCAN_IND      0x02
+#define ADV_TYPE_NONCONN_IND           0x03
+#define ADV_TYPE_SCAN_RESPONSE         0x04
+
+//#define TIZEN_FEATURE_PLATFROM_SCAN_FILTER
 #ifdef TIZEN_FEATURE_PLATFROM_SCAN_FILTER
 
 #define COMPANY_ID_APPLE 0x004C
  * and value shall be changed when required */
 #define SCAN_FILTER_SLOTS_MAX 16
 
-#define ADV_TYPE_IND   0x00
-#define ADV_TYPE_DIRECT_IND    0x01
-#define ADV_TYPE_SCAN_IND      0x02
-#define ADV_TYPE_NONCONN_IND           0x03
-#define ADV_TYPE_SCAN_RESPONSE         0x04
-
 typedef enum {
        NONE_REPORT,
        SCAN_REPORT,