OSDN Git Service

Recitfy condition when removing device from IRK resolving list
authorNitin Arora <niarora@codeaurora.org>
Fri, 22 May 2015 00:58:36 +0000 (17:58 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Fri, 22 May 2015 02:44:32 +0000 (19:44 -0700)
This patch corrects the conditional logic before sending HCI
command to remove the IRK list entry from the IRK resolving
list based on the max size of resolving list

Change-Id: I9adc933f0988ae907b3e218ba63814d106784787

stack/btm/btm_ble_privacy.c

index c6f9d97..fa5a8e0 100644 (file)
@@ -445,7 +445,7 @@ void btm_ble_resolving_list_vsc_op_cmpl (tBTM_VSC_CMPL *p_params)
 tBTM_STATUS btm_ble_remove_resolving_list_entry(tBTM_SEC_DEV_REC *p_dev_rec)
 {
     /* if controller does not support RPA offloading or privacy 1.2, skip */
-    if (controller_get_interface()->get_ble_resolving_list_max_size())
+    if (controller_get_interface()->get_ble_resolving_list_max_size() == 0)
         return BTM_WRONG_MODE;
 
     tBTM_STATUS st = BTM_NO_RESOURCES;