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

Commit a766c1db authored by Chris Manton's avatar Chris Manton
Browse files

Re-order stack/btm/btm_sec::btm_sec_connected

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I6e1524691e204aee43e1d46ba7b5aceff6f15ff9
parent 56f6cc3d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3559,6 +3559,7 @@ void btm_sec_connected(const RawAddress& bda, uint16_t handle, uint8_t status,
  }

  p_dev_rec->hci_handle = handle;
  btm_acl_created(bda, handle, HCI_ROLE_PERIPHERAL, BT_TRANSPORT_BR_EDR);

  /* role may not be correct here, it will be updated by l2cap, but we need to
   */
@@ -3572,8 +3573,6 @@ void btm_sec_connected(const RawAddress& bda, uint16_t handle, uint8_t status,
  btm_set_packet_types_from_address(bda, BT_TRANSPORT_BR_EDR,
                                    acl_get_supported_packet_types());

  btm_acl_created(bda, handle, HCI_ROLE_PERIPHERAL, BT_TRANSPORT_BR_EDR);

  /* Initialize security flags.  We need to do that because some            */
  /* authorization complete could have come after the connection is dropped */
  /* and that would set wrong flag that link has been authorized already    */