Skip to content

RDKB-64863 GUI displays incorrect security mode [Open (Risky)] after …#123

Open
pavankumar464 wants to merge 2 commits into
developfrom
bug/RDKB-64863
Open

RDKB-64863 GUI displays incorrect security mode [Open (Risky)] after …#123
pavankumar464 wants to merge 2 commits into
developfrom
bug/RDKB-64863

Conversation

@pavankumar464
Copy link
Copy Markdown
Contributor

…a Factory Reset

Copilot AI review requested due to automatic review settings May 25, 2026 09:09
@pavankumar464 pavankumar464 requested review from a team as code owners May 25, 2026 09:09
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to fix cases where the WebUI shows an incorrect Wi‑Fi security mode (e.g., “Open (risky)”) after a factory reset by centralizing/making consistent the mapping between ModeEnabled + EncryptionMethod and the UI’s security-mode representation, including handling for AES+GCMP.

Changes:

  • Replaced inline security mapping logic in multiple wireless edit pages with a shared mapping helper call.
  • Removed duplicated security_mode() implementations from action handlers and moved/centralized the function into a shared include.
  • Updated encrypt_map() to normalize AES+GCMP for display purposes.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
source/Styles/xb6/jst/wireless_network_configuration_edit.jst Switches $security computation to a shared mapping helper.
source/Styles/xb6/jst/wireless_network_configuration_edit_onewifi.jst Switches $security computation to a shared mapping helper (OneWiFi variant).
source/Styles/xb6/jst/actionHandler/ajaxSet_wireless_network_configuration_edit.jst Removes local security_mode() to rely on shared include.
source/Styles/xb6/jst/actionHandler/ajaxSet_wireless_network_configuration_edit_onewifi.jst Removes local security_mode() to rely on shared include (OneWiFi variant).
source/Styles/xb3/jst/wireless_network_configuration_edit.jst Switches $security computation to a shared mapping helper.
source/Styles/xb3/jst/includes/utility.jst Updates encrypt_map() to normalize AES+GCMP and refactors normalization logic.
source/Styles/xb3/jst/includes/actionHandlerUtility.jst Adds centralized security_mode() implementation used by action handlers.
source/Styles/xb3/jst/actionHandler/ajaxSet_wireless_network_configuration_edit.jst Removes local security_mode() to rely on shared include.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 189 to 192
if ("1-11"==$possible_channels)
$possible_channels = "1,2,3,4,5,6,7,8,9,10,11";
$security = "None";
if ("WPA2-Personal" == $encrypt_mode){
if ("TKIP" == $encrypt_method){
$security = "WPA2_PSK_TKIP";
}
else if ("AES" == $encrypt_method){
$security = "WPA2_PSK_AES";
}
}else if ("WPA3-Personal" == $encrypt_mode){
if ("AES" == $encrypt_method)
$security = "WPA3-Personal Only";
}else if ("WPA3-Personal-Transition" == $encrypt_mode){
if ("AES" == $encrypt_method)
$security = "WPA3-Personal Transition";
}
else{
$security = "None";
}
$security = encrypt_map($encrypt_mode, $encrypt_method);

Comment on lines 199 to 202
if ("1-11"==$possible_channels)
$possible_channels = "1,2,3,4,5,6,7,8,9,10,11";
$security = "None";
if ("WPA2-Personal" == $encrypt_mode){
if ("TKIP" == $encrypt_method){
$security = "WPA2_PSK_TKIP";
}
else if ("AES" == $encrypt_method){
$security = "WPA2_PSK_AES";
}
}else if ("WPA3-Personal" == $encrypt_mode){
if ("AES" == $encrypt_method)
$security = "WPA3-Personal Only";
}else if ("WPA3-Personal-Transition" == $encrypt_mode){
if ("AES" == $encrypt_method)
$security = "WPA3-Personal Transition";
}else if ("WPA3-Personal-Compatibility" == $encrypt_mode){
if ("AES" == $encrypt_method)
$security = "WPA3-Personal Compatibility";
}
else{
$security = "None";
}
$security = encrypt_map($encrypt_mode, $encrypt_method);

Comment on lines +160 to +161
$security = encrypt_map($encrypt_mode, $encrypt_method);

Comment on lines +395 to +410
if ("AES" == $encrypt_method)
$security = "WPA3-Personal Only";
else if("AES+GCMP" == $encrypt_method)
$security = "WPA3-Personal Only AES_GCMP";
}
else if ("WPA3-Personal-Transition" == $encrypt_mode){
if ("AES" == $encrypt_method)
$security = "WPA3-Personal Transition";
else if("AES+GCMP" == $encrypt_method)
$security = "WPA3-Personal Transition AES_GCMP";
}
else if ("WPA3-Personal-Compatibility" == $encrypt_mode){
if ("AES" == $encrypt_method)
$security = "WPA3-Personal Compatibility";
else if("AES+GCMP" == $encrypt_method)
$security = "WPA3-Personal Compatibility AES_GCMP";
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.

2 participants