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

Commit 00ea64e1 authored by Martin Brabham's avatar Martin Brabham
Browse files

OOB: Connector; Set name of remote from OOB data

There are 4 total "devices" listed in Settings.

Each shows a mac address, if a name doesn't exist it won't
show in things like the share a file dialog.

This names 1/4 of those addresses.  The LE Device (Advertiser)
displayed on the Connector's Settings->Connected devices list.

Bug: 192093473
Test: Manual, test app
Tag: #feature
Change-Id: I94024413e962f4742f6fa71c495d042aaede5ffb
Merged-In: I94024413e962f4742f6fa71c495d042aaede5ffb
parent a904a458
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2854,8 +2854,9 @@ static void btif_dm_ble_sc_oob_req_evt(tBTA_DM_SP_RMT_OOB* req_oob_type) {
  }

  /* Remote name update */
  btif_update_remote_properties(req_oob_type->bd_addr, req_oob_type->bd_name,
                                NULL, BT_DEVICE_TYPE_BLE);
  btif_update_remote_properties(req_oob_type->bd_addr,
                                oob_data_to_use.device_name, NULL,
                                BT_DEVICE_TYPE_BLE);

  bond_state_changed(BT_STATUS_SUCCESS, bd_addr, BT_BOND_STATE_BONDING);
  pairing_cb.is_ssp = false;