Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-13268
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Jan 4, 2024
1 parent fa6d0aa commit 35aa6fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/AP_WS_LookForUpgrade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ namespace OpenWifi {
}

Config::Config Cfg(D.Configuration);
if(D.UUID==0 && UUID == Cfg.UUID()) {
D.UUID = UpgradedUUID = UUID;
Cfg.SetUUID(UUID);
D.Configuration = Cfg.get();
StorageService()->UpdateDevice(Session, D);
ConfigurationCache().Add(SerialNumberInt_, UUID);
std::cout << __LINE__ << ": " << SerialNumber_ << " GoodConfig: " << GoodConfig << " UUID:" << UUID << " Pending:" << State_.PendingUUID << std::endl;
return false;
}


if (UUID > D.UUID) {
// so we have a problem, the device has a newer config than we have. So we need to
// make sure our config is newer.
Expand Down

0 comments on commit 35aa6fb

Please sign in to comment.