-
Notifications
You must be signed in to change notification settings - Fork 314
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
feat(web2): separation between wlan channel configuration and status #5140
Conversation
Signed-off-by: SimoneFiorani <[email protected]>
} | ||
if (TabWirelessUi.this.channelList.getItemCount() != 0) { | ||
selectedChannelValue = this.channelList.getSelectedIndex(); | ||
this.channelList.clear(); |
There was a problem hiding this comment.
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: {}", |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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).
Signed-off-by: SimoneFiorani <[email protected]>
Signed-off-by: SimoneFiorani <[email protected]>
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: