Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-13507
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Mar 15, 2024
1 parent 05b6a94 commit 6595b37
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/storage/storage_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,10 +582,18 @@ namespace OpenWifi {
Config::Config NewConfig(DefConfig.Configuration);
NewConfig.SetUUID(Now);
D.Configuration = NewConfig.get();
} else if (!Found && Caps.Platform()==Platforms::AP) {
Config::Config NewConfig;
NewConfig.SetUUID(Now);
D.Configuration = NewConfig.get();
} else if (!Found) {
if(Caps.Platform()==Platforms::AP) {
Config::Config NewConfig;
NewConfig.SetUUID(Now);
D.Configuration = NewConfig.get();
} else {
Poco::JSON::Object Obj;
Obj.set("uuid", Now);
std::ostringstream os;
Obj.stringify(os);
D.Configuration = os.str();
}
}

// We need to insert the country code according to the IP in the radios section...
Expand Down

0 comments on commit 6595b37

Please sign in to comment.