Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(web2): separation between wlan channel configuration and status #5140

Merged

Conversation

sfiorani
Copy link
Contributor

This PR improves the separation between the WLAN Channel configuraion and status: the Wireless tab will now always show the selected option in the WLAN channles list box, while in the Hardware tab e new entry WLAN Channel was added, showing which is the used channel by the interface.

Related Issue:

Description of the solution adopted:

Screenshots:

Manual Tests:

Any side note on the changes made:

}
if (TabWirelessUi.this.channelList.getItemCount() != 0) {
selectedChannelValue = this.channelList.getSelectedIndex();
this.channelList.clear();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is best to clear outside this if, otherwise you will end up duplicate elements when changing radio mode.


if (logger.isDebugEnabled()) {
Optional<WifiAccessPoint> activeAP = wifiInterfaceInfo.getActiveWifiAccessPoint();
activeAP.ifPresent(accessPoint -> logger.debug("Wifi Interface Info: {}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a more meaningful message, like WiFi current channel status info: {}, or just remove the logging

List<Integer> activeChannel = gwtConfig.getChannels();
if (activeChannel != null && activeChannel.size() == 1) {
channelsBuilder.setActiveChannel(activeChannel.get(0));
Optional<WifiAccessPoint> activeAP = wifiInterfaceInfo.getActiveWifiAccessPoint();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be put in common with the method above setWifiMasterStateProperties ?

@@ -239,6 +239,14 @@ public void setHwRssi(String rssi) {
set("hwRssi", rssi);
}

public String getHwWlanChannel() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use a more menaningful name, like currentHwWifiChannel

@@ -562,6 +562,7 @@ netHwRadio=Radio
netHwBand=Frequency Band
netHwLAC=LAC
netHwCI=CI
netHwWlanChannel=WLAN Channel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As in comment above, I would use a more menaningful name. Remember to update also the japanese version (just use google translate, I will ask for review later).

@MMaiero MMaiero merged commit fad4584 into eclipse-kura:develop Feb 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants