Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28debd4e authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

Ensure inquiry is always stopped before service discovery

Service discovery cannot be initiated when the dm search state machine
is not in idle state. This patch ensures that service discovery is
always cancelled regardless of the current state of inquiry.

Bug: 27368986
Change-Id: Ib83d4c8d389e50a1c65e52b343f4996455747836
parent e02b870d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1214,7 +1214,7 @@ static void btif_dm_auth_cmpl_evt (tBTA_DM_AUTH_CMPL *p_auth_cmpl)
            }
#endif

            if(btif_dm_inquiry_in_progress)
            // Ensure inquiry is stopped before attempting service discovery
            btif_dm_cancel_discovery();

            btif_dm_get_remote_services(&bd_addr);