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

Commit 8bce25dc authored by Bhakthavatsala Raghavendra's avatar Bhakthavatsala Raghavendra
Browse files

Remove duplicate pairing response when device is in peripheral mode

Test: mmm packages/modules/Bluetooth
Flag: com.android.bluetooth.flags.remove_dup_pairing_response_in_oob_pairing
Bug: 265320397
Bug: 351948689
Change-Id: I53f9d57c9b330bf304f6b344ead3928327440708
parent fa9654de
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1512,7 +1512,9 @@ void smp_process_io_response(tSMP_CB* p_cb, tSMP_INT_DATA* /* p_data */) {
      switch (p_cb->loc_oob_flag) {
        case SMP_OOB_NONE:
          log::info("SMP_MODEL_SEC_CONN_OOB with SMP_OOB_NONE");
          if (!com::android::bluetooth::flags::remove_dup_pairing_response_in_oob_pairing()) {
              smp_send_pair_rsp(p_cb, NULL);
          }
          break;
        case SMP_OOB_PRESENT:
          log::info("SMP_MODEL_SEC_CONN_OOB with SMP_OOB_PRESENT");