mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-02 11:37:49 +00:00
WIFI-2052: Country Code displayed in UI doesn't match AP
Signed-off-by: Mike Hansen <mike.hansen@connectus.ai>
This commit is contained in:
@@ -265,7 +265,7 @@ public class OvsdbDaoBase {
|
||||
}
|
||||
}
|
||||
|
||||
void fillInRadioInterfaceNames(OvsdbClient ovsdbClient, ConnectNodeInfo ret) {
|
||||
void fillInRadioInterfaceNamesAndCountry(OvsdbClient ovsdbClient, ConnectNodeInfo ret) {
|
||||
try {
|
||||
List<Operation> operations = new ArrayList<>();
|
||||
List<Condition> conditions = new ArrayList<>();
|
||||
@@ -273,6 +273,7 @@ public class OvsdbDaoBase {
|
||||
|
||||
columns.add("freq_band");
|
||||
columns.add("if_name");
|
||||
columns.add("country");
|
||||
|
||||
operations.add(new Select(wifiRadioStateDbTable, conditions, columns));
|
||||
CompletableFuture<OperationResult[]> fResult = ovsdbClient.transact(ovsdbName, operations);
|
||||
@@ -292,6 +293,7 @@ public class OvsdbDaoBase {
|
||||
for (Row row : ((SelectResult) result[0]).getRows()) {
|
||||
ret.wifiRadioStates.put(getSingleValueFromSet(row, "freq_band"),
|
||||
getSingleValueFromSet(row, "if_name"));
|
||||
ret.country = getSingleValueFromSet(row, "country");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ public class OvsdbNode extends OvsdbDaoBase {
|
||||
}
|
||||
fillInLanIpAddressAndMac(ovsdbClient, ret, defaultLanInterfaceType);
|
||||
|
||||
fillInRadioInterfaceNames(ovsdbClient, ret);
|
||||
fillInRadioInterfaceNamesAndCountry(ovsdbClient, ret);
|
||||
|
||||
} catch (OvsdbClientException | TimeoutException | ExecutionException | InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
||||
Reference in New Issue
Block a user