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

Commit daac80da authored by Henri Chataing's avatar Henri Chataing
Browse files

gd: Update the definition of ExtendedInquiryResultRaw event

The event as defined cannot be parsed because the response
data cannot be distinguished from the padding bytes;
this change removes the padding.

Test: m root-canal
Change-Id: Id5078446fb267bcbafd95f1b9bc2f2a513115cdf
parent d18c06ea
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5527,11 +5527,10 @@ packet ExtendedInquiryResultRaw : Event (event_code = EXTENDED_INQUIRY_RESULT) {
  clock_offset : 15,
  _reserved_ : 1,
  rssi : 8,
  extended_inquiry_response : 8[],
  // Extended inquiry Result is always 255 bytes long
  // padded GapData with zeroes as necessary
  // Refer to BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 3, Part C Section 8 on page 1340
  _padding_[240],
  extended_inquiry_response : 8[240],
}


+1 −2
Original line number Diff line number Diff line
@@ -2249,8 +2249,7 @@ void LinkLayerController::IncomingInquiryResponsePacket(
              inquiry_response.GetPageScanRepetitionMode()),
          inquiry_response.GetClassOfDevice(),
          inquiry_response.GetClockOffset(), inquiry_response.GetRssi(),
          std::vector<uint8_t>(extended_inquiry_response_.begin(),
                               extended_inquiry_response_.end())));
          extended_inquiry_response_));
    } break;
    default:
      LOG_WARN("Unhandled Incoming Inquiry Response of type %d",