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

Commit 3e3809f7 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Fix 0 CoD

Default value for CoD should be UNCLASSIFIED
This reverts the accidental behaviour change from aosp/3000407

Bug: 366551827
Test: mma -j32
Flag: exempt, bugfix
Change-Id: I42b7a00c34f35ebac0c91dfa2bf3601e2fca3713
parent df2a3640
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -671,6 +671,12 @@ void btif_update_remote_properties(const RawAddress& bdaddr, BD_NAME bd_name, DE
    cod = old_cod;
  }

  if (cod == 0) {
    /* Spec says UNCLASSIFIED is default value */
    log::info("CoD from storage was zero");
    cod = COD_UNCLASSIFIED;
  }

  if (old_cod != cod) {
    log::info("{} CoD: 0x{:06x} -> 0x{:06x}", bdaddr, old_cod, cod);
  }