Skip to content

Commit

Permalink
pw_bluetooth: Correct some Emboss fields names
Browse files Browse the repository at this point in the history
Change-Id: I05cb267e2e4a6fdbe3b880b53d9cef04d54b7342
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/188727
Reviewed-by: Josh Conner <[email protected]>
Commit-Queue: Faraaz Sareshwala <[email protected]>
Lint: Lint 🤖 <[email protected]>
Docs-Not-Needed: Faraaz Sareshwala <[email protected]>
  • Loading branch information
Faraaz Sareshwala authored and CQ Bot Account committed Dec 18, 2024
1 parent 5db08a5 commit 8fddf43
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pw_bluetooth/public/pw_bluetooth/hci_android.emb
Original file line number Diff line number Diff line change
Expand Up @@ -560,15 +560,15 @@ struct LEMultiAdvtSetScanRespDataCommand:
-- kMaxLEAdvertisingDataLength bytes.
[requires: 0 <= this <= 31]

$next [+scan_resp_length] UInt:8[scan_resp_length] adv_data
$next [+scan_resp_length] UInt:8[scan_resp_length] scan_resp_data
$next [+1] UInt adv_handle
-- Handle used to identify an advertising set.


struct LEMultiAdvtSetRandomAddrCommand:
let vendor_size = AndroidCommandHeader.$size_in_bytes
0 [+vendor_size] AndroidCommandHeader vendor_command
$next [+hci.BdAddr.$size_in_bytes] hci.BdAddr peer_address
$next [+hci.BdAddr.$size_in_bytes] hci.BdAddr random_address
$next [+1] UInt adv_handle


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ AndroidExtendedLowEnergyAdvertiser::BuildSetScanResponse(
view.scan_resp_length().Write(scan_rsp_length);
view.adv_handle().Write(handle.value());

MutableBufferView data_view(view.adv_data().BackingStorage().data(),
MutableBufferView data_view(view.scan_resp_data().BackingStorage().data(),
scan_rsp_length);
data.WriteBlock(&data_view, std::nullopt);

Expand Down
4 changes: 2 additions & 2 deletions pw_bluetooth_sapphire/host/testing/fake_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3893,7 +3893,7 @@ void FakeController::OnAndroidLEMultiAdvtSetScanResp(

state.scan_rsp_length = params.scan_resp_length().Read();
std::memcpy(state.scan_rsp_data,
params.adv_data().BackingStorage().data(),
params.scan_resp_data().BackingStorage().data(),
params.scan_resp_length().Read());

view.status().Write(pwemb::StatusCode::SUCCESS);
Expand Down Expand Up @@ -3944,7 +3944,7 @@ void FakeController::OnAndroidLEMultiAdvtSetRandomAddr(

state.random_address =
DeviceAddress(DeviceAddress::Type::kLERandom,
DeviceAddressBytes(params.peer_address()));
DeviceAddressBytes(params.random_address()));

view.status().Write(pwemb::StatusCode::SUCCESS);
RespondWithCommandComplete(android_hci::kLEMultiAdvt, &packet);
Expand Down

0 comments on commit 8fddf43

Please sign in to comment.