bluetooth: fix build.

Fixes #11184.
This commit is contained in:
Adrien Destugues
2014-11-07 21:24:04 +01:00
parent 2c291e65bd
commit a12bde1cf5
2 changed files with 12 additions and 11 deletions
@@ -664,7 +664,7 @@ device_control(void* cookie, uint32 msg, void* params, size_t size)
// EVENTS
err = submit_rx_event(bdev);
if (err != B_OK) {
CLEAR_BIT(bdev->state, ANCILLYANT);
bdev->state = CLEAR_BIT(bdev->state, ANCILLYANT);
flowf("Queuing failed device stops running\n");
break;
}
@@ -673,14 +673,15 @@ device_control(void* cookie, uint32 msg, void* params, size_t size)
for (i = 0; i < MAX_ACL_IN_WINDOW; i++) {
err = submit_rx_acl(bdev);
if (err != B_OK && i == 0) {
CLEAR_BIT(bdev->state, ANCILLYANT); // Set the flaq in the HCI world
bdev->state = CLEAR_BIT(bdev->state, ANCILLYANT);
// Set the flaq in the HCI world
flowf("Queuing failed device stops running\n");
break;
}
}
#endif
SET_BIT(bdev->state, RUNNING);
bdev->state = SET_BIT(bdev->state, RUNNING);
#if BT_DRIVER_SUPPORTS_SCO
// TODO: SCO / eSCO
@@ -36,7 +36,7 @@ sched_tx_processing(bt_usb_dev* bdev)
/* Do while this bit is on... so someone should set it before we
* stop the iterations
*/
CLEAR_BIT(bdev->state, SENDING);
bdev->state = CLEAR_BIT(bdev->state, SENDING);
// check Commands
#ifdef EMPTY_COMMAND_QUEUE
while (!list_is_empty(&bdev->nbuffersTx[BT_COMMAND])) {
@@ -78,11 +78,11 @@ sched_tx_processing(bt_usb_dev* bdev)
} while (GET_BIT(bdev->state, SENDING));
CLEAR_BIT(bdev->state, PROCESSING);
bdev->state = CLEAR_BIT(bdev->state, PROCESSING);
} else {
// We are processing so MARK that we need to still go on with that
SET_BIT(bdev->state, SENDING);
bdev->state = SET_BIT(bdev->state, SENDING);
}
}