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

Commit 7f9a97fe authored by Zero Liu's avatar Zero Liu Committed by huirong liao
Browse files

Fix output report missed in the second bond flow

[Root Cause]
Since HidReport isn't cleared after remove_bond, it will cause load the old cache firstly.
It means that default p_rpt->rpt_type isn't INPUT now, and cause OUTPUT
and Feature report will not be read in bta_hh_le_search_hid_chars api.

[Solution]
Clear HidReport and HidReportVersion in bt_config.conf after remove_bond

Bug: 266219642
Test: atest net_test_btif pass

Change-Id: Ia747e328a30d95af1dc1a6db5381f2fd04e11f77
parent 62cca5ac
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -232,6 +232,8 @@ bt_status_t btif_storage_remove_hid_info(const RawAddress& remote_bd_addr) {
  btif_config_remove(bdstr, "HidSSRMaxLatency");
  btif_config_remove(bdstr, "HidSSRMinTimeout");
  btif_config_remove(bdstr, "HidDescriptor");
  btif_config_remove(bdstr, "HidReport");
  btif_config_remove(bdstr, "HidReportVersion");
  return BT_STATUS_SUCCESS;
}