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

Commit 7dac900f authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

am c28001d9: Merge "Bluetooth: Updates background conn list properly during...

am c28001d9: Merge "Bluetooth: Updates background conn list properly during unpair" into klp-wireless-dev

* commit 'c28001d9':
  Bluetooth: Updates background conn list properly during unpair
parents 5c06b61f c28001d9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -334,8 +334,12 @@ BOOLEAN btm_update_bg_conn_list(BOOLEAN to_add, BD_ADDR bd_addr, UINT8 *p_attr_t
                p_cb->bg_dev_num --;
                p_cur = p_bg_dev;
                p_next = p_bg_dev + 1;
                for (j = i + 1 ;j < BTM_BLE_MAX_BG_CONN_DEV_NUM && p_next->in_use ; j ++, p_cur ++, p_next ++ )
                for (j = i + 1; j < BTM_BLE_MAX_BG_CONN_DEV_NUM && p_next->in_use;
                     j ++, p_cur ++, p_next ++)
                {
                    memcpy(p_cur, p_next, sizeof(tBTM_LE_BG_CONN_DEV));
                    memset(p_next, 0, sizeof(tBTM_LE_BG_CONN_DEV));
                }
            }
            ret = TRUE;
            break;