btdev: Fix not checking if a CIG has any active CIS
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 8 Jul 2022 00:23:53 +0000 (17:23 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitebc1aeb5bb6629fbe24d37badb4bcfd465408d93
tree77b8e976b58362828e0cfe00660736c62ef77b09
parent8fb37ecb8dc4d27eb904992e1492a6487d454931
btdev: Fix not checking if a CIG has any active CIS

Bluetooth Core specification says the CIG must be in configurable state
in order to accept the SetCIGParameters:

BLUETOOTH CORE SPECIFICATION Version 5.3 | Vol 4, Part E page 2553:

 'If the Host issues this command when the CIG is not in the
  configurable state, the Controller shall return the error
  code Command Disallowed (0x0C).'

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
emulator/btdev.c