diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-10-10 10:38:30 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-10-11 02:34:24 -0400 |
commit | bd1eb66ba4eee21de3be24212b135f57101ad930 (patch) | |
tree | 37b3c0f63a3487429ce735c56f80968b6b198444 /include | |
parent | 76ef7cf7722331097f5f47d23342128b1b5d072d (diff) |
Bluetooth: AMP: Handle AMP_LINK connection
AMP_LINK represents physical link between AMP controllers.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index b697ef342020..d5ed054d77cf 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -73,6 +73,7 @@ struct discovery_state { | |||
73 | struct hci_conn_hash { | 73 | struct hci_conn_hash { |
74 | struct list_head list; | 74 | struct list_head list; |
75 | unsigned int acl_num; | 75 | unsigned int acl_num; |
76 | unsigned int amp_num; | ||
76 | unsigned int sco_num; | 77 | unsigned int sco_num; |
77 | unsigned int le_num; | 78 | unsigned int le_num; |
78 | }; | 79 | }; |
@@ -449,6 +450,9 @@ static inline void hci_conn_hash_add(struct hci_dev *hdev, struct hci_conn *c) | |||
449 | case ACL_LINK: | 450 | case ACL_LINK: |
450 | h->acl_num++; | 451 | h->acl_num++; |
451 | break; | 452 | break; |
453 | case AMP_LINK: | ||
454 | h->amp_num++; | ||
455 | break; | ||
452 | case LE_LINK: | 456 | case LE_LINK: |
453 | h->le_num++; | 457 | h->le_num++; |
454 | break; | 458 | break; |
@@ -470,6 +474,9 @@ static inline void hci_conn_hash_del(struct hci_dev *hdev, struct hci_conn *c) | |||
470 | case ACL_LINK: | 474 | case ACL_LINK: |
471 | h->acl_num--; | 475 | h->acl_num--; |
472 | break; | 476 | break; |
477 | case AMP_LINK: | ||
478 | h->amp_num--; | ||
479 | break; | ||
473 | case LE_LINK: | 480 | case LE_LINK: |
474 | h->le_num--; | 481 | h->le_num--; |
475 | break; | 482 | break; |
@@ -486,6 +493,8 @@ static inline unsigned int hci_conn_num(struct hci_dev *hdev, __u8 type) | |||
486 | switch (type) { | 493 | switch (type) { |
487 | case ACL_LINK: | 494 | case ACL_LINK: |
488 | return h->acl_num; | 495 | return h->acl_num; |
496 | case AMP_LINK: | ||
497 | return h->amp_num; | ||
489 | case LE_LINK: | 498 | case LE_LINK: |
490 | return h->le_num; | 499 | return h->le_num; |
491 | case SCO_LINK: | 500 | case SCO_LINK: |
@@ -801,6 +810,10 @@ static inline void hci_proto_disconn_cfm(struct hci_conn *conn, __u8 reason) | |||
801 | sco_disconn_cfm(conn, reason); | 810 | sco_disconn_cfm(conn, reason); |
802 | break; | 811 | break; |
803 | 812 | ||
813 | /* L2CAP would be handled for BREDR chan */ | ||
814 | case AMP_LINK: | ||
815 | break; | ||
816 | |||
804 | default: | 817 | default: |
805 | BT_ERR("unknown link type %d", conn->type); | 818 | BT_ERR("unknown link type %d", conn->type); |
806 | break; | 819 | break; |