hci_event.c (51c19bf3d5cfaa66571e4b88ba2a6f6295311101) | hci_event.c (19186c7b45c134820ea6fde3165a2cf30c1ace47) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved. 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 2811 unchanged lines hidden (view full) --- 2820 } 2821 2822 params = hci_conn_params_lookup(hdev, &conn->dst, conn->dst_type); 2823 if (params) { 2824 switch (params->auto_connect) { 2825 case HCI_AUTO_CONN_LINK_LOSS: 2826 if (ev->reason != HCI_ERROR_CONNECTION_TIMEOUT) 2827 break; | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved. 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 2811 unchanged lines hidden (view full) --- 2820 } 2821 2822 params = hci_conn_params_lookup(hdev, &conn->dst, conn->dst_type); 2823 if (params) { 2824 switch (params->auto_connect) { 2825 case HCI_AUTO_CONN_LINK_LOSS: 2826 if (ev->reason != HCI_ERROR_CONNECTION_TIMEOUT) 2827 break; |
2828 /* Fall through */ | 2828 fallthrough; |
2829 2830 case HCI_AUTO_CONN_DIRECT: 2831 case HCI_AUTO_CONN_ALWAYS: 2832 list_del_init(¶ms->action); 2833 list_add(¶ms->action, &hdev->pend_le_conns); 2834 hci_update_background_scan(hdev); 2835 break; 2836 --- 1478 unchanged lines hidden (view full) --- 4315 case 0x1f: /* Unspecified error */ 4316 case 0x20: /* Unsupported LMP Parameter value */ 4317 if (conn->out) { 4318 conn->pkt_type = (hdev->esco_type & SCO_ESCO_MASK) | 4319 (hdev->esco_type & EDR_ESCO_MASK); 4320 if (hci_setup_sync(conn, conn->link->handle)) 4321 goto unlock; 4322 } | 2829 2830 case HCI_AUTO_CONN_DIRECT: 2831 case HCI_AUTO_CONN_ALWAYS: 2832 list_del_init(¶ms->action); 2833 list_add(¶ms->action, &hdev->pend_le_conns); 2834 hci_update_background_scan(hdev); 2835 break; 2836 --- 1478 unchanged lines hidden (view full) --- 4315 case 0x1f: /* Unspecified error */ 4316 case 0x20: /* Unsupported LMP Parameter value */ 4317 if (conn->out) { 4318 conn->pkt_type = (hdev->esco_type & SCO_ESCO_MASK) | 4319 (hdev->esco_type & EDR_ESCO_MASK); 4320 if (hci_setup_sync(conn, conn->link->handle)) 4321 goto unlock; 4322 } |
4323 /* fall through */ | 4323 fallthrough; |
4324 4325 default: 4326 conn->state = BT_CLOSED; 4327 break; 4328 } 4329 4330 bt_dev_dbg(hdev, "SCO connected with air mode: %02x", ev->air_mode); 4331 --- 1877 unchanged lines hidden --- | 4324 4325 default: 4326 conn->state = BT_CLOSED; 4327 break; 4328 } 4329 4330 bt_dev_dbg(hdev, "SCO connected with air mode: %02x", ev->air_mode); 4331 --- 1877 unchanged lines hidden --- |