The slave will be the first to respond with CIS Estabished but only the
master has the CIG params set so this switch to master so parameters are
proper.
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
evt.status = status;
+ if (dev->conn)
+ dev = dev->conn;
+
if (!evt.status) {
evt.conn_handle = cpu_to_le16(ISO_HANDLE);
/* TODO: Figure out if these values makes sense */
evt.s_bn = 0x01;
evt.m_ft = 0x01;
evt.s_ft = 0x01;
- evt.m_mtu = dev->iso_mtu;
- evt.s_mtu = dev->iso_mtu;
+ evt.m_mtu = dev->le_cig.cis.m_sdu;
+ evt.s_mtu = dev->le_cig.cis.s_sdu;
evt.interval = dev->le_cig.params.m_latency;
}