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

Commit 179acecb authored by William Escande's avatar William Escande
Browse files

btm_sec: Class of device regression fix

Bug: 314889276
Fix: 314889276
Test: Manual testing cf b/314889276#comment23
Flag: Exempt, unflag regression fix
Change-Id: I554c9c7b056bb096d3a9609dafe2d96d134f307c
parent 609efa2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1919,7 +1919,7 @@ void btm_sec_conn_req(const RawAddress& bda, const DEV_CLASS dc) {
  /* Host is not interested or approved connection.  Save BDA and DC and */
  /* pass request to L2CAP */
  btm_sec_cb.connecting_bda = bda;
  memcpy(btm_sec_cb.connecting_dc, &dc, DEV_CLASS_LEN);
  memcpy(btm_sec_cb.connecting_dc, dc, DEV_CLASS_LEN);

  p_dev_rec = btm_find_or_alloc_dev(bda);
  p_dev_rec->sm4 |= BTM_SM4_CONN_PEND;