Fix matching the results
Trivial fix of using wrong variable name.
Bug: 352454998
Test: atest VtsHalBluetoothAudioTargetTest
Flag: Exempt; trivial fix covered with unit tests
Change-Id: I666c684dbd9f2b58a3d1cbe7449e21af57e55df4
diff --git a/bluetooth/audio/aidl/default/LeAudioOffloadAudioProvider.cpp b/bluetooth/audio/aidl/default/LeAudioOffloadAudioProvider.cpp
index 9b89055..61c29d3 100644
--- a/bluetooth/audio/aidl/default/LeAudioOffloadAudioProvider.cpp
+++ b/bluetooth/audio/aidl/default/LeAudioOffloadAudioProvider.cpp
@@ -818,7 +818,7 @@
auto matched_setting = matchWithRequirement(
matched_ase_configuration_settings, requirement, false);
if (matched_setting.has_value()) {
- result.push_back(matched_setting_with_context.value());
+ result.push_back(matched_setting.value());
} else {
// Cannot find a match for this requirement
// Immediately return