mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
[hardware][interfaces][wifi] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order unlike C99. Bug: 139945549 Test: mm Change-Id: If22be04df7d2d0aae9ed50fada53d0ccd4edc9d1 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
@@ -170,12 +170,14 @@ TEST_F(HidlStructUtilTest, canConvertLegacyLinkLayerStatsToHidl) {
|
||||
|
||||
legacy_hal::wifi_channel_stat channel_stat1 = {
|
||||
.channel = {legacy_hal::WIFI_CHAN_WIDTH_20, 2437, 2437, 0},
|
||||
.on_time = 0x1111,
|
||||
.cca_busy_time = 0x55,
|
||||
.on_time = 0x1111};
|
||||
};
|
||||
legacy_hal::wifi_channel_stat channel_stat2 = {
|
||||
.channel = {legacy_hal::WIFI_CHAN_WIDTH_20, 5180, 5180, 0},
|
||||
.on_time = 0x2222,
|
||||
.cca_busy_time = 0x66,
|
||||
.on_time = 0x2222};
|
||||
};
|
||||
radio.channel_stats.push_back(channel_stat1);
|
||||
radio.channel_stats.push_back(channel_stat2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user