OSDN Git Service

Remove unused inquiry variables
authorChris Manton <cmanton@google.com>
Thu, 23 Oct 2014 23:31:49 +0000 (16:31 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 16 Mar 2015 23:51:37 +0000 (16:51 -0700)
bta/dm/bta_dm_act.c
bta/dm/bta_dm_int.h

index 960b31c..507c452 100644 (file)
@@ -560,13 +560,13 @@ void bta_dm_set_visibility (tBTA_DM_MSG *p_data)
     /* set modes for Discoverability and connectability if not ignore */
     if (p_data->set_visibility.disc_mode != BTA_DM_IGNORE)
         BTM_SetDiscoverability((UINT8)p_data->set_visibility.disc_mode,
-                                bta_dm_cb.inquiry_scan_window,
-                                bta_dm_cb.inquiry_scan_interval);
+                                0,
+                                0);
 
     if (p_data->set_visibility.conn_mode != BTA_DM_IGNORE)
         BTM_SetConnectability((UINT8)p_data->set_visibility.conn_mode,
-                                bta_dm_cb.page_scan_window,
-                                bta_dm_cb.page_scan_interval);
+                                0,
+                                0);
 
     /* Send False or True if not ignore */
     if (p_data->set_visibility.pair_mode != BTA_DM_IGNORE )
index e54dcff..075cdec 100644 (file)
@@ -944,10 +944,6 @@ typedef struct
     BOOLEAN                     disable_pair_mode;          /* disable pair mode or not */
     BOOLEAN                     conn_paired_only;   /* allow connectable to paired device only or not */
     tBTA_DM_API_SEARCH          search_msg;
-    UINT16                      page_scan_interval;
-    UINT16                      page_scan_window;
-    UINT16                      inquiry_scan_interval;
-    UINT16                      inquiry_scan_window;
 
     /* Storage for pin code request parameters */
     BD_ADDR                     pin_bd_addr;