Skip to content

RDKEMW-24199: GetKnownSSIDs in RDKV returning Empty upon Disconnected - #348

Open
me-ha-p wants to merge 5 commits into
developfrom
feature/RDKEMW-24199
Open

RDKEMW-24199: GetKnownSSIDs in RDKV returning Empty upon Disconnected#348
me-ha-p wants to merge 5 commits into
developfrom
feature/RDKEMW-24199

Conversation

@me-ha-p

@me-ha-p me-ha-p commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Reason for change: GetKnownSSIDs must return stored WiFi Profile information.
Priority: P2
Test Procedure: Refer ticket
Risks: Low

Signed-off-by: Mehavarshni_Palaniswamy@comcast.com

mpalan315 and others added 4 commits September 3, 2026 18:36
Reason for change: GetKnownSSIDs must return stored WiFi Profile information.
Priority: P2
Test Procedure: Refer ticket
Risks: Low

Signed-off-by: Mehavarshni_Palaniswamy@comcast.com
Reason for change: GetKnownSSIDs must return stored WiFi Profile information.
Priority: P2
Test Procedure: Refer ticket
Risks: Low

Signed-off-by: Mehavarshni_Palaniswamy@comcast.com
Reason for change: GetKnownSSIDs must return stored WiFi Profile information.
Priority: P2
Test Procedure: Refer ticket
Risks: Low

Signed-off-by: Mehavarshni_Palaniswamy@comcast.com
Copilot AI lite review requested due to automatic review settings September 8, 2026 12:31
@me-ha-p
me-ha-p requested a review from a team as a code owner September 8, 2026 12:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The current handling of “no known SSIDs” can incorrectly return a list containing an empty string ([""]) instead of an empty list ([]), which is a behavioral bug for API consumers.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the NetworkManager plugin’s “known SSIDs” retrieval to return saved WiFi profile information even when the device is disconnected (notably on RDKV), by switching the RDK backend to query the paired/saved SSID rather than the currently connected SSID.

Changes:

  • Add an IARM API identifier for retrieving the saved/paired SSID on RDK (getPairedSSID).
  • Update the RDK implementation of GetKnownSSIDs to call getPairedSSID instead of getConnectedSSID.
  • Adjust the GNOME implementation of GetKnownSSIDs to always build an iterator (even when no SSIDs are found).
File summaries
File Description
plugin/rdk/NetworkManagerRDKProxy.h Adds the new IARM API string constant for getPairedSSID.
plugin/rdk/NetworkManagerRDKProxy.cpp Switches GetKnownSSIDs to use the paired/saved SSID IARM call.
plugin/gnome/NetworkManagerGnomeProxy.cpp Refactors GetKnownSSIDs iterator creation flow when the known-SSID list is empty.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread plugin/gnome/NetworkManagerGnomeProxy.cpp
Comment thread plugin/rdk/NetworkManagerRDKProxy.cpp
Reason for change: GetKnownSSIDs must return stored WiFi Profile information.
Priority: P2
Test Procedure: Refer ticket
Risks: Low

Signed-off-by: Mehavarshni_Palaniswamy@comcast.com
Copilot AI review requested due to automatic review settings September 9, 2026 05:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Both RDK and GNOME paths can return a single empty-string SSID ([""]) instead of an empty list when no SSID is available, which is incorrect output for an SSID list.

Review details

Suppressed comments (2)

plugin/rdk/NetworkManagerRDKProxy.cpp:1051

  • GetKnownSSIDs currently unconditionally pushes the returned pairedSsid.ssid into ssidList. If the IARM call succeeds but there is no paired SSID (empty string), this will serialize as [""] instead of an empty list, which is not a valid SSID value and can confuse clients.
                auto &pairedSsid = param.data.getPairedSSID;
                std::list<string> ssidList;
                ssidList.push_back(string(pairedSsid.ssid));

plugin/gnome/NetworkManagerGnomeProxy.cpp:773

  • When ssidList is empty, this code inserts an empty string element. That will make the RPC/JSON response contain [""] instead of an empty array, which is semantically different and treats "no SSIDs" as a single SSID with an empty name.
                if (ssidList.empty())
                {
                    NMLOG_INFO("known ssids not found !");
                    ssidList.push_back(string());
                }
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

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