Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8042b61e authored by Nitin Arora's avatar Nitin Arora Committed by Andre Eisenbach
Browse files

Delete 0 index LE scan filter at inquiry cancel

This patch ensures that the 0 index filter is deleted when the
inquiry is cancelled due to initiation of a direct connection
from inquiry or due to return from the Settings menu screen

Change-Id: I281c6ace15b17fb7e413c42d36e016b8f82d2ace
parent 74925d7d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1354,6 +1354,12 @@ static void btif_dm_search_devices_evt (UINT16 event, char *p_param)
            */
           if (btif_dm_inquiry_in_progress == FALSE)
           {
#if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))
               tBTA_DM_BLE_PF_FILT_PARAMS adv_filt_param;
               memset(&adv_filt_param, 0, sizeof(tBTA_DM_BLE_PF_FILT_PARAMS));
               BTA_DmBleScanFilterSetup(BTA_DM_BLE_SCAN_COND_DELETE, 0, &adv_filt_param, NULL,
                                        bte_scan_filt_param_cfg_evt, 0);
#endif
               HAL_CBACK(bt_hal_cbacks, discovery_state_changed_cb, BT_DISCOVERY_STOPPED);
           }
        }