Skip to content

Commit e9b67ca

Browse files
bohu-googlecjreynol
authored andcommitted
[skip ci] Merge "Revert "Fix the kDefaultModemTechnoloy value"" into main
GitOrigin-RevId: 19b76b2
1 parent 0ae2d28 commit e9b67ca

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

staging/host/commands/modem_simulator/network_service.h

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,6 @@ class NetworkService : public ModemService, public std::enable_shared_from_this<
6161
void OnDataRegisterStateChanged();
6262
void OnSignalStrengthChanged();
6363

64-
enum ModemTechnology {
65-
M_MODEM_TECH_GSM = 1 << 0,
66-
M_MODEM_TECH_WCDMA = 1 << 1,
67-
M_MODEM_TECH_CDMA = 1 << 2,
68-
M_MODEM_TECH_EVDO = 1 << 3,
69-
M_MODEM_TECH_TDSCDMA = 1 << 4,
70-
M_MODEM_TECH_LTE = 1 << 5,
71-
M_MODEM_TECH_NR = 1 << 6,
72-
};
73-
7464
enum RegistrationState {
7565
NET_REGISTRATION_UNREGISTERED = 0,
7666
NET_REGISTRATION_HOME = 1,
@@ -284,6 +274,15 @@ class NetworkService : public ModemService, public std::enable_shared_from_this<
284274
NetworkRegistrationStatus voice_registration_status_;
285275
NetworkRegistrationStatus data_registration_status_;
286276

277+
enum ModemTechnology {
278+
M_MODEM_TECH_GSM = 1 << 0,
279+
M_MODEM_TECH_WCDMA = 1 << 1,
280+
M_MODEM_TECH_CDMA = 1 << 2,
281+
M_MODEM_TECH_EVDO = 1 << 3,
282+
M_MODEM_TECH_TDSCDMA= 1 << 4,
283+
M_MODEM_TECH_LTE = 1 << 5,
284+
M_MODEM_TECH_NR = 1 << 6,
285+
};
287286
ModemTechnology current_network_mode_;
288287
int preferred_network_mode_;
289288
int modem_radio_capability_;

staging/host/commands/modem_simulator/nvram_config.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
#include "common/libs/utils/files.h"
2525
#include "host/commands/modem_simulator/device_config.h"
26-
#include "host/commands/modem_simulator/network_service.h"
2726

2827
namespace cuttlefish {
2928

@@ -35,7 +34,7 @@ static constexpr char kPreferredNetworkMode[] = "preferred_network_mode";
3534
static constexpr char kEmergencyMode[] = "emergency_mode";
3635

3736
static constexpr int kDefaultNetworkSelectionMode = 0; // AUTOMATIC
38-
static constexpr int kDefaultModemTechnoloy = NetworkService::M_MODEM_TECH_LTE;
37+
static constexpr int kDefaultModemTechnoloy = 0x10; // LTE
3938
static constexpr int kDefaultPreferredNetworkMode = 0x13; // LTE | WCDMA | GSM
4039
static constexpr bool kDefaultEmergencyMode = false;
4140

0 commit comments

Comments
 (0)