• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revision5f98c2410fd68bbf06f5a33e75036e9b10b2145d (tree)
Zeit2016-09-17 02:33:49
AutorJakub Pawlowski <jpawlowski@goog...>
CommiterAndre Eisenbach

Log Message

Add a missing case for BTA_DM_SEARCH_CANCEL_CMPL_EVT

Cancelling discovery was not handled properly in
btif_dm_search_services_evt and was causing crashes due to assert in
default case.

Bug: 31442085
Change-Id: If9a2c203730c9b06df5ff8d8e251f0c35addcb82
(cherry picked from commit 7df43240c4a7cf5ecd58a39f03d235bf52929d79)

Ändern Zusammenfassung

Diff

--- a/btif/src/btif_dm.c
+++ b/btif/src/btif_dm.c
@@ -1554,6 +1554,10 @@ static void btif_dm_search_services_evt(UINT16 event, char *p_param)
15541554 /* fixme */
15551555 break;
15561556
1557+ case BTA_DM_SEARCH_CANCEL_CMPL_EVT:
1558+ /* no-op */
1559+ break;
1560+
15571561 #if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))
15581562 case BTA_DM_DISC_BLE_RES_EVT:
15591563 BTIF_TRACE_DEBUG("%s:, services 0x%x)", __FUNCTION__,