@@ -1987,47 +1987,6 @@ static void scan_update_work(struct work_struct *work)
19871987 hci_req_sync (hdev , update_scan , 0 , HCI_CMD_TIMEOUT , NULL );
19881988}
19891989
1990- static int connectable_update (struct hci_request * req , unsigned long opt )
1991- {
1992- struct hci_dev * hdev = req -> hdev ;
1993-
1994- hci_dev_lock (hdev );
1995-
1996- __hci_req_update_scan (req );
1997-
1998- /* If BR/EDR is not enabled and we disable advertising as a
1999- * by-product of disabling connectable, we need to update the
2000- * advertising flags.
2001- */
2002- if (!hci_dev_test_flag (hdev , HCI_BREDR_ENABLED ))
2003- __hci_req_update_adv_data (req , hdev -> cur_adv_instance );
2004-
2005- /* Update the advertising parameters if necessary */
2006- if (hci_dev_test_flag (hdev , HCI_ADVERTISING ) ||
2007- !list_empty (& hdev -> adv_instances )) {
2008- if (ext_adv_capable (hdev ))
2009- __hci_req_start_ext_adv (req , hdev -> cur_adv_instance );
2010- else
2011- __hci_req_enable_advertising (req );
2012- }
2013-
2014- __hci_update_background_scan (req );
2015-
2016- hci_dev_unlock (hdev );
2017-
2018- return 0 ;
2019- }
2020-
2021- static void connectable_update_work (struct work_struct * work )
2022- {
2023- struct hci_dev * hdev = container_of (work , struct hci_dev ,
2024- connectable_update );
2025- u8 status ;
2026-
2027- hci_req_sync (hdev , connectable_update , 0 , HCI_CMD_TIMEOUT , & status );
2028- mgmt_set_connectable_complete (hdev , status );
2029- }
2030-
20311990static u8 get_service_classes (struct hci_dev * hdev )
20321991{
20331992 struct bt_uuid * uuid ;
@@ -2841,7 +2800,6 @@ void hci_request_setup(struct hci_dev *hdev)
28412800 INIT_WORK (& hdev -> discov_update , discov_update );
28422801 INIT_WORK (& hdev -> bg_scan_update , bg_scan_update );
28432802 INIT_WORK (& hdev -> scan_update , scan_update_work );
2844- INIT_WORK (& hdev -> connectable_update , connectable_update_work );
28452803 INIT_DELAYED_WORK (& hdev -> discov_off , discov_off );
28462804 INIT_DELAYED_WORK (& hdev -> le_scan_disable , le_scan_disable_work );
28472805 INIT_DELAYED_WORK (& hdev -> le_scan_restart , le_scan_restart_work );
@@ -2856,7 +2814,6 @@ void hci_request_cancel_all(struct hci_dev *hdev)
28562814 cancel_work_sync (& hdev -> discov_update );
28572815 cancel_work_sync (& hdev -> bg_scan_update );
28582816 cancel_work_sync (& hdev -> scan_update );
2859- cancel_work_sync (& hdev -> connectable_update );
28602817 cancel_delayed_work_sync (& hdev -> discov_off );
28612818 cancel_delayed_work_sync (& hdev -> le_scan_disable );
28622819 cancel_delayed_work_sync (& hdev -> le_scan_restart );
0 commit comments