mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-15 22:57:40 +07:00
Bluetooth: A2MP: Process A2MP Command Responses
Process A2MP responses, print cmd code and ident for now. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
This commit is contained in:
parent
6113f84fc1
commit
f6410a849b
@ -313,6 +313,15 @@ static int a2mp_discphyslink_req(struct amp_mgr *mgr, struct sk_buff *skb,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int a2mp_cmd_rsp(struct amp_mgr *mgr, struct sk_buff *skb,
|
||||||
|
struct a2mp_cmd *hdr)
|
||||||
|
{
|
||||||
|
BT_DBG("ident %d code %d", hdr->ident, hdr->code);
|
||||||
|
|
||||||
|
skb_pull(skb, le16_to_cpu(hdr->len));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Handle A2MP signalling */
|
/* Handle A2MP signalling */
|
||||||
static int a2mp_chan_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
|
static int a2mp_chan_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
@ -372,6 +381,9 @@ static int a2mp_chan_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb)
|
|||||||
case A2MP_GETAMPASSOC_RSP:
|
case A2MP_GETAMPASSOC_RSP:
|
||||||
case A2MP_CREATEPHYSLINK_RSP:
|
case A2MP_CREATEPHYSLINK_RSP:
|
||||||
case A2MP_DISCONNPHYSLINK_RSP:
|
case A2MP_DISCONNPHYSLINK_RSP:
|
||||||
|
err = a2mp_cmd_rsp(mgr, skb, hdr);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
BT_ERR("Unknown A2MP sig cmd 0x%2.2x", hdr->code);
|
BT_ERR("Unknown A2MP sig cmd 0x%2.2x", hdr->code);
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user