Diff between 8e9e005aa07584e05ef2dbb8069fac03f7db16b6 and f4ff283b43e46ba6dbcd4cf2058438dc96b759e6
Changed Files
| File | Additions | Deletions | Status |
| android/bluetooth.c | +3 | -0 | modified |
Full Patch
diff --git a/android/bluetooth.c b/android/bluetooth.c
index b818e88..6ec87c4 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
@@ -2903,6 +2903,9 @@ static void handle_disable_cmd(const void *buf, uint16_t len)
goto reply;
}
+ /* Cancel all pending requests. Need it in case of ongoing paring */
+ mgmt_cancel_index(mgmt_if, adapter.index);
+
if (!set_mode(MGMT_OP_SET_POWERED, 0x00)) {
status = HAL_STATUS_FAILED;
goto reply;