@@ -975,7 +975,7 @@ void hci_discovery_set_state(struct hci_dev *hdev, int state)
975975
976976 switch (state ) {
977977 case DISCOVERY_STOPPED :
978- hci_update_background_scan (hdev );
978+ hci_update_passive_scan (hdev );
979979
980980 if (old_state != DISCOVERY_STARTING )
981981 mgmt_discovering (hdev , 0 );
@@ -1850,7 +1850,7 @@ int hci_dev_reset_stat(__u16 dev)
18501850 return ret ;
18511851}
18521852
1853- static void hci_update_scan_state (struct hci_dev * hdev , u8 scan )
1853+ static void hci_update_passive_scan_state (struct hci_dev * hdev , u8 scan )
18541854{
18551855 bool conn_changed , discov_changed ;
18561856
@@ -1951,7 +1951,7 @@ int hci_dev_cmd(unsigned int cmd, void __user *arg)
19511951 * get correctly modified as this was a non-mgmt change.
19521952 */
19531953 if (!err )
1954- hci_update_scan_state (hdev , dr .dev_opt );
1954+ hci_update_passive_scan_state (hdev , dr .dev_opt );
19551955 break ;
19561956
19571957 case HCISETLINKPOL :
@@ -3096,7 +3096,7 @@ bool hci_add_adv_monitor(struct hci_dev *hdev, struct adv_monitor *monitor,
30963096
30973097 switch (hci_get_adv_monitor_offload_ext (hdev )) {
30983098 case HCI_ADV_MONITOR_EXT_NONE :
3099- hci_update_background_scan (hdev );
3099+ hci_update_passive_scan (hdev );
31003100 bt_dev_dbg (hdev , "%s add monitor status %d" , hdev -> name , * err );
31013101 /* Message was not forwarded to controller - not an error */
31023102 return false;
@@ -3160,7 +3160,7 @@ bool hci_remove_single_adv_monitor(struct hci_dev *hdev, u16 handle, int *err)
31603160
31613161 pending = hci_remove_adv_monitor (hdev , monitor , handle , err );
31623162 if (!* err && !pending )
3163- hci_update_background_scan (hdev );
3163+ hci_update_passive_scan (hdev );
31643164
31653165 bt_dev_dbg (hdev , "%s remove monitor handle %d, status %d, %spending" ,
31663166 hdev -> name , handle , * err , pending ? "" : "not " );
@@ -3192,7 +3192,7 @@ bool hci_remove_all_adv_monitor(struct hci_dev *hdev, int *err)
31923192 }
31933193
31943194 if (update )
3195- hci_update_background_scan (hdev );
3195+ hci_update_passive_scan (hdev );
31963196
31973197 bt_dev_dbg (hdev , "%s remove all monitors status %d, %spending" ,
31983198 hdev -> name , * err , pending ? "" : "not " );
@@ -3486,7 +3486,7 @@ void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type)
34863486
34873487 hci_conn_params_free (params );
34883488
3489- hci_update_background_scan (hdev );
3489+ hci_update_passive_scan (hdev );
34903490
34913491 BT_DBG ("addr %pMR (type %u)" , addr , addr_type );
34923492}
0 commit comments