gadget/bt/stack/btu/btu_hcif.cc:729:22: error: no member named ‘BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED’ in namespace ‘android::util’

A number of Bluetooth problems have been in point of fact giving me the run round whilst seeking to collect AOKP for the Xperia XA2 Extremely. Let’s have a look:

gadget/bt/stack/btu/btu_hcif.cc:729:22: error: no member named ‘BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED’ in namespace ‘android::util’
android::util::BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED, “”, care for,
~~~~~~~~~~~~~~~^
gadget/bt/stack/btu/btu_hcif.cc:1698:22: error: no member named ‘BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED’ in namespace ‘android::util’
android::util::BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED, “”, care for,
~~~~~~~~~~~~~~~^
2 mistakes generated.

I made a number of adjustments to the gadget/bt/stack/btu/btu_hcif.cc document:

Modified: Line 729
static void read_encryption_key_size_complete_after_encryption_change(
uint8_t standing, uint16_t care for, uint8_t key_size) {
int ret = 0;
//WJH int ret = android::util::stats_write(
//WJH android::util::BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED, “”, care for,
//WJH HCI_READ_ENCR_KEY_SIZE, HCI_COMMAND_COMPLETE_EVT, standing, 0, key_size);
if (ret < 0)
LOG(WARNING) << __func__ << “: didn’t log encryption key dimension ”
<< std::to_string(key_size);

modified line 1698
static void read_encryption_key_size_complete_after_key_refresh(
uint8_t standing, uint16_t care for, uint8_t key_size) {
int ret = 0;
//WJH int ret = android::util::stats_write(
//WJH android::util::BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED, “”, care for,
//WJH HCI_READ_ENCR_KEY_SIZE, HCI_COMMAND_COMPLETE_EVT, standing, 0, key_size);
if (ret < 0)
LOG(WARNING) << __func__ << “: didn’t log encryption key dimension ”
<< std::to_string(key_size);

To start with I used to be in point of fact anxious in regards to the result of those adjustments, however the Bluetooth nonetheless turns out to paintings correctly in all my exams. So I’m no longer positive what it’s that I “got rid of”. Expectantly it’s not anything essential, nevertheless it does beg the query: when are we reducing one thing out that we if truth be told want? How do we all know once we get there?

This did “repair” the problem right through collect, and because the Bluetooth works, I’m going to move with it’s k…..

Linux – stay it easy.