Bluetooth: ISO: Fix not using the correct QoS
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 5 Aug 2022 21:02:21 +0000 (14:02 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 9 Aug 2022 00:06:36 +0000 (17:06 -0700)
commit1d1ab5d39be7590bb2400418877bff43da9e75ec
treece9fb72873b89d808ec7f0bc893929c54312141d
parent3f2893d3c142986aa935821460cb3adb77044722
Bluetooth: ISO: Fix not using the correct QoS

This fixes using wrong QoS settings when attempting to send frames while
acting as peripheral since the QoS settings in use are stored in
hconn->iso_qos not in sk->qos, this is actually properly handled on
getsockopt(BT_ISO_QOS) but not on iso_send_frame.

Fixes: ccf74f2390d60 ("Bluetooth: Add BTPROTO_ISO socket type")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c