File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3887,8 +3887,10 @@ int hci_dev_open_sync(struct hci_dev *hdev)
38873887 hci_dev_test_flag (hdev , HCI_VENDOR_DIAG ) && hdev -> set_diag )
38883888 ret = hdev -> set_diag (hdev , true);
38893889
3890- msft_do_open (hdev );
3891- aosp_do_open (hdev );
3890+ if (!hci_dev_test_flag (hdev , HCI_USER_CHANNEL )) {
3891+ msft_do_open (hdev );
3892+ aosp_do_open (hdev );
3893+ }
38923894
38933895 clear_bit (HCI_INIT , & hdev -> flags );
38943896
@@ -4031,8 +4033,10 @@ int hci_dev_close_sync(struct hci_dev *hdev)
40314033
40324034 hci_sock_dev_event (hdev , HCI_DEV_DOWN );
40334035
4034- aosp_do_close (hdev );
4035- msft_do_close (hdev );
4036+ if (!hci_dev_test_flag (hdev , HCI_USER_CHANNEL )) {
4037+ aosp_do_close (hdev );
4038+ msft_do_close (hdev );
4039+ }
40364040
40374041 if (hdev -> flush )
40384042 hdev -> flush (hdev );
You can’t perform that action at this time.
0 commit comments