mgmt.c (15d8ce05ebec37a0d701cde768bbf21349f2329d) | mgmt.c (19186c7b45c134820ea6fde3165a2cf30c1ace47) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 4 Copyright (C) 2010 Nokia Corporation 5 Copyright (C) 2011-2012 Intel Corporation 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 --- 4511 unchanged lines hidden (view full) --- 4520 *mgmt_status = mgmt_le_support(hdev); 4521 if (*mgmt_status) 4522 return false; 4523 break; 4524 case DISCOV_TYPE_INTERLEAVED: 4525 *mgmt_status = mgmt_le_support(hdev); 4526 if (*mgmt_status) 4527 return false; | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 4 Copyright (C) 2010 Nokia Corporation 5 Copyright (C) 2011-2012 Intel Corporation 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 --- 4511 unchanged lines hidden (view full) --- 4520 *mgmt_status = mgmt_le_support(hdev); 4521 if (*mgmt_status) 4522 return false; 4523 break; 4524 case DISCOV_TYPE_INTERLEAVED: 4525 *mgmt_status = mgmt_le_support(hdev); 4526 if (*mgmt_status) 4527 return false; |
4528 /* Intentional fall-through */ | 4528 fallthrough; |
4529 case DISCOV_TYPE_BREDR: 4530 *mgmt_status = mgmt_bredr_support(hdev); 4531 if (*mgmt_status) 4532 return false; 4533 break; 4534 default: 4535 *mgmt_status = MGMT_STATUS_INVALID_PARAMS; 4536 return false; --- 1359 unchanged lines hidden (view full) --- 5896 break; 5897 case MGMT_LTK_P256_AUTH: 5898 authenticated = 0x01; 5899 type = SMP_LTK_P256; 5900 break; 5901 case MGMT_LTK_P256_DEBUG: 5902 authenticated = 0x00; 5903 type = SMP_LTK_P256_DEBUG; | 4529 case DISCOV_TYPE_BREDR: 4530 *mgmt_status = mgmt_bredr_support(hdev); 4531 if (*mgmt_status) 4532 return false; 4533 break; 4534 default: 4535 *mgmt_status = MGMT_STATUS_INVALID_PARAMS; 4536 return false; --- 1359 unchanged lines hidden (view full) --- 5896 break; 5897 case MGMT_LTK_P256_AUTH: 5898 authenticated = 0x01; 5899 type = SMP_LTK_P256; 5900 break; 5901 case MGMT_LTK_P256_DEBUG: 5902 authenticated = 0x00; 5903 type = SMP_LTK_P256_DEBUG; |
5904 /* fall through */ | 5904 fallthrough; |
5905 default: 5906 continue; 5907 } 5908 5909 hci_add_ltk(hdev, &key->addr.bdaddr, 5910 le_addr_type(key->addr.type), type, authenticated, 5911 key->val, key->enc_size, key->ediv, key->rand); 5912 } --- 2830 unchanged lines hidden --- | 5905 default: 5906 continue; 5907 } 5908 5909 hci_add_ltk(hdev, &key->addr.bdaddr, 5910 le_addr_type(key->addr.type), type, authenticated, 5911 key->val, key->enc_size, key->ediv, key->rand); 5912 } --- 2830 unchanged lines hidden --- |