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:
parent
495ff6730c
commit
e0363fd45b
2 changed files with 3 additions and 3 deletions
|
@ -279,7 +279,7 @@ struct bt_conn *bt_conn_lookup_addr_sco(const bt_addr_t *peer)
|
||||||
continue;
|
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]);
|
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;
|
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;
|
sco_conn->type = BT_CONN_TYPE_SCO;
|
||||||
|
|
||||||
if (link_type == BT_HCI_SCO) {
|
if (link_type == BT_HCI_SCO) {
|
||||||
|
|
|
@ -67,7 +67,7 @@ struct bt_conn_br {
|
||||||
|
|
||||||
struct bt_conn_sco {
|
struct bt_conn_sco {
|
||||||
/* Reference to ACL Connection */
|
/* Reference to ACL Connection */
|
||||||
struct bt_conn *conn;
|
struct bt_conn *acl;
|
||||||
uint16_t pkt_type;
|
uint16_t pkt_type;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue