[PATCH v2] Bluetooth: Add ncmd=0 recovery handling

2021-04-07 Thread Manish Mandlik
l the user decides that the Bluetooth is broken and may power cycles the Bluetooth. This patch triggers the hardware error to reset the controller and driver when it gets into such state as there is no other wat out. Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Manish Mandlik --- Changes

[PATCH] Bluetooth: Check scan state before disabling during suspend

2020-06-01 Thread Manish Mandlik
Check current scan state by checking HCI_LE_SCAN flag and send scan disable command only if scan is already enabled. Signed-off-by: Manish Mandlik --- net/bluetooth/hci_request.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/net/bluetooth/hci_request.c b/net

[PATCH v1] Bluetooth: Add ncmd=0 recovery handling

2021-03-19 Thread Manish Mandlik
This patch adds a timer when controller gets into such condition and resets the controller if controller doesn't recover within the timeout period. Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Manish Mandlik --- Hello Maintainers, We noticed that during suspend, sometimes the controlle

[PATCH v2] Bluetooth: Terminate the link if pairing is cancelled

2020-06-16 Thread Manish Mandlik
If user decides to cancel the ongoing pairing process (e.g. by clicking the cancel button on pairing/passkey window), abort any ongoing pairing and then terminate the link if it was created because of the pair device action. Signed-off-by: Manish Mandlik --- Changes in v2: - Added code to track