Bluetooth: SCO: Rename 'conn' to 'acl'

This patch renames the 'conn' variable to 'acl' which is reference
to ACL connection for SCO connection.

Change-Id: I5f0a60bc5d80de08fa5b963cf545c71552909401
Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
This commit is contained in:
Sathish Narasimman 2017-03-16 13:43:15 +05:30 committed by Johan Hedberg
commit e0363fd45b
2 changed files with 3 additions and 3 deletions

View file

@ -279,7 +279,7 @@ struct bt_conn *bt_conn_lookup_addr_sco(const bt_addr_t *peer)
continue;
}
if (!bt_addr_cmp(peer, &sco_conns[i].sco.conn->br.dst)) {
if (!bt_addr_cmp(peer, &sco_conns[i].sco.acl->br.dst)) {
return bt_conn_ref(&sco_conns[i]);
}
}
@ -316,7 +316,7 @@ struct bt_conn *bt_conn_add_sco(const bt_addr_t *peer, int link_type)
return NULL;
}
sco_conn->sco.conn = bt_conn_lookup_addr_br(peer);
sco_conn->sco.acl = bt_conn_lookup_addr_br(peer);
sco_conn->type = BT_CONN_TYPE_SCO;
if (link_type == BT_HCI_SCO) {

View file

@ -67,7 +67,7 @@ struct bt_conn_br {
struct bt_conn_sco {
/* Reference to ACL Connection */
struct bt_conn *conn;
struct bt_conn *acl;
uint16_t pkt_type;
};
#endif