Fix crash issue on test case RadioHidlTest_v1_5#startNetworkScan. am: a2881ffbd0 am: 4dc8eaba99 am: 0e10316efa

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2496776

Change-Id: I8cad7dab8887cf979e25f4fe689218800d5950f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Chen Baoyu 2023-03-24 19:25:41 +00:00 committed by Automerger Merge Worker
commit 5a9285f1a0

View file

@ -565,9 +565,9 @@ TEST_P(RadioHidlTest_v1_5, startNetworkScan) {
serial = GetRandomSerialNumber();
::android::hardware::radio::V1_5::RadioAccessSpecifier::Bands band17;
band17.eutranBands() = {::android::hardware::radio::V1_5::EutranBands::BAND_17};
band17.eutranBands({::android::hardware::radio::V1_5::EutranBands::BAND_17});
::android::hardware::radio::V1_5::RadioAccessSpecifier::Bands band20;
band20.eutranBands() = {::android::hardware::radio::V1_5::EutranBands::BAND_20};
band20.eutranBands({::android::hardware::radio::V1_5::EutranBands::BAND_20});
::android::hardware::radio::V1_5::RadioAccessSpecifier specifier17 = {
.radioAccessNetwork = ::android::hardware::radio::V1_5::RadioAccessNetworks::EUTRAN,
.bands = band17,