Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-13110
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Nov 17, 2023
1 parent aa2c283 commit 7a8a05d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/AP_WS_Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ namespace OpenWifi {

if(AP_WS_Server::IsSim(CN_)) {
State_.VerifiedCertificate = GWObjects::SIMULATED;
Simulated_ = true;
}

std::string reason, author;
Expand Down
1 change: 1 addition & 0 deletions src/AP_WS_Connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ namespace OpenWifi {
bool hasGPS=false;
std::double_t memory_used_=0.0, cpu_load_ = 0.0, temperature_ = 0.0;
std::uint64_t uuid_=0;
bool Simulated_=false;
};

} // namespace OpenWifi
2 changes: 1 addition & 1 deletion src/AP_WS_Process_connect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ namespace OpenWifi {
StorageService()->UpdateDevice(DeviceInfo);
}

if(!DeviceInfo.simulated) {
if(!Simulated_) {
uint64_t UpgradedUUID = 0;
LookForUpgrade(UUID, UpgradedUUID);
State_.UUID = UpgradedUUID;
Expand Down
8 changes: 5 additions & 3 deletions src/AP_WS_Process_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ namespace OpenWifi {
UUID, request_uuid));
}

uint64_t UpgradedUUID;
LookForUpgrade(UUID, UpgradedUUID);
State_.UUID = UpgradedUUID;
if(!Simulated_) {
uint64_t UpgradedUUID;
LookForUpgrade(UUID, UpgradedUUID);
State_.UUID = UpgradedUUID;
}
SetLastStats(StateStr);

GWObjects::Statistics Stats{
Expand Down

0 comments on commit 7a8a05d

Please sign in to comment.